Operating System - Tru64 Unix
1752604 Members
4381 Online
108788 Solutions
New Discussion юеВ

Re: mt -fsf command

 
SOLVED
Go to solution
Bruno Vilardo
Regular Advisor

mt -fsf command

HEllo all ..

I have been trying to get into the tape using this command.

mt -fsf 0 but it gives me the following error message.
What this could be ?
What is the right command to get into the tape?

Regards
Bruno
14 REPLIES 14
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Sorry i forgot to post the message .. here we go ...


/dev/nrmt0h fsf 1 failed: I/O error


Thanks a lot ..

Bruno
Mohamed  K Ahmed
Trusted Contributor
Solution

Re: mt -fsf command

Bruno

the default for the mt command is /dev/nrmt0h tape drive
Check the name of your tape drive, if it is not nrmt0h, then the command would be

mt -f /dev/nrmt0h fsf n

By the way, there is not fsf 0, fsf means it will go through the tape and stop after the n-th file marker

Check the man mt


Mohamed
Mohamed  K Ahmed
Trusted Contributor

Re: mt -fsf command

Also, mt command is just for moving through the savesets on the tape....what do you mean by "get into the tape"?
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Hi
I want to move through the saveset on the tape.

I also try

mt -f /dev/nrmt0h fsf n

but it gives me the same error message .

Thanks
Bruno
Mohamed  K Ahmed
Trusted Contributor

Re: mt -fsf command

What is the version of unix you are running?
Bruno Vilardo
Regular Advisor

Re: mt -fsf command

TRU64 4.0g

Bruno Vilardo
Regular Advisor

Re: mt -fsf command

Hi ,

I use the vdump command to do the backup.

here is the following command that i use.


/sbin/vdump -0uf /dev/nrmt0h /

Thanks

Bruno
Mohamed  K Ahmed
Trusted Contributor

Re: mt -fsf command

Bruno,
You have some options:

check the name of the tape drive, make sure it is nrmt0h
check the tape itself ( issue command mt -f tape_drive status) and see if there is output, it may be a bad tape, replace it and try again.
may be there is only one saveset on the tape, try writing 2 save set and try mt fsf 1 again

Mohamed



Mohamed  K Ahmed
Trusted Contributor

Re: mt -fsf command

put a new tape in
run command
/sbin/vdump -0uf /dev/nrmt0h /
then
/sbin/vdump -0uf /dev/nrmt0h /usr

then
mt rewind
then
mt fsf 1
then
vrestore -i
then
ls

you should see the /usr files that were backed up

Mohamed