Sounds like a possible problem with either the drive or the tape. When you're issuing the fsf 1 command, are you sure there's another logical tape to find? Does the command complain if you do an mt -f /dev/rmt/0 rewind command? There are more questions than answers as they say!
what does this command do?
mt -f /dev/rmt/0 status
(It should tell you the type of tape drive and other info)
If not then cd to /dev/rmt and do a ls
Do you see other device listed, such as 0 , 1, 2 or others.
If so then you have other tape devices, do a mt -f /dev/rmt/? status (other device number until you find the right one)
The mt -f /dev/rmt/? status will certainly tell you when
it finds a drive with a tape in it.
But also, when you do the mt -f /dev/rmt/0 fsf 1, you
should be using the norewind device, in this case:
/dev/rmt/0n, otherwise the tape will try to rewind after
the operation completes.
If it's the wrong device, you should get a message like
"No tape loaded or device offline" or
"No such file or directory".
Finally, the tar xvf command you entered was trying to
extract files FROM the tape, is that what you wanted? or
was it to backup files TO the tape, in which case you would
want tar cvf /dev/rmt/0 <files/directories to backup>
Hope this helps
Good luck
hi, thx for your replies.
There is only one DDS4 tape driver attached to the system.
I tried this morning, find that I can copy files from some DDS3 tapes , but from DDS4 tapes, it still returns "tar: blocksize=0".
what is wrong?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.