mt -f /dev/st0 status //for status
mt -f /dev/st0 rewind // rewind the tape
mt -f /dev/st0 fsf1 // forward 1
mt -f /dev/st0 rewoffl // rewind and eject
mt -f /dev/st0 retension // forward and rewind
mt -f /dev/st0 erase // erase tape
mt exits with a status of 0 if the operation succeeded, 1 if the operation or device name given was invalid, or 2 if the operation failed.
find blocksize of tape:
dd if=/dev/st0 of=/tmp/dummy bs=128k count=1
Thursday, September 21, 2006
Subscribe to:
Post Comments (Atom)
2 comments:
example of verifying
mt rewind
for path in $backupdirs
do
echo "Verifying $path...."
if tar tf /dev/nst0 1>/dev/null; then
echo "$path: verified" 1>&2
else
echo "$path: error(s) in verify" 1>&2
fi
mt fsf 1
done
don't know why everytime I cpio backuped to tape /dev/st0 not found.
and I need to close the console and reopen another one.
Post a Comment