Operating System - HP-UX
1826214 Members
2665 Online
109691 Solutions
New Discussion

Re: tar: cannot open /dev/rmt/0m

 
SOLVED
Go to solution
mehul_3
Regular Advisor

tar: cannot open /dev/rmt/0m

Could someone give me the exact reason and resolution for the mention problem?
Can I re-install device file for TAPE for the following command to resolve the issue.
# insf –e

Waiting for reply.
5 REPLIES 5
MarkSyder
Honored Contributor

Re: tar: cannot open /dev/rmt/0m

What is the result of the following command?

ioscan -fnC tape

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
mirco_1
Valued Contributor
Solution

Re: tar: cannot open /dev/rmt/0m

you can reinstall the special file with the -e option
DM.
Hoang Chi Cong_1
Honored Contributor

Re: tar: cannot open /dev/rmt/0m

Hi

In general, there are two reson that cause this error:
1. There isn't any tape in tape's drive (sometime, you forgot insert the tape :))
2. The tape's device file is not correct or hasn't installed on OS.
As above mentions, first you need to check the tape drive, does it work well (The power etc,...)? then need to check for the tape device file.
You can remove the old tape device file and reinstall again.

To remove the old device file, using:
#rm -f /dev/rmt/*
To reinstall tape device file, using:
#insf -eC tape

Check again and I sure it works!

Hope this helps
Best and regard,
Hoang Chi Cong
Looking for a special chance.......
Devender Khatana
Honored Contributor

Re: tar: cannot open /dev/rmt/0m

Hi,

Recreating the device file will not solve the issue here. This is either media or drive failure. Try this

#mt -t /dev/rmt/0mn status

#mt -t /dev/rmt/0mn fsf 1

What does it indicates ?

Regards,
Devender
Impossible itself mentions "I m possible"
mehul_3
Regular Advisor

Re: tar: cannot open /dev/rmt/0m

Problem has been resolved by keeping cleaning DAT into DAT drive.

Rgds,
Mehul