Operating System - HP-UX
1834019 Members
2892 Online
110063 Solutions
New Discussion

tar error cannot open /dev/rmt/0m

 
Donald Thaler
Super Advisor

tar error cannot open /dev/rmt/0m

when i try to do: tar xvm sam.tar i get:
cannot open /dev/rmt/Om.. the file was created on one server and rcp'd to the server i'm trying to do the tar on

2 REPLIES 2
Patrick Wallek
Honored Contributor

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

If you are trying to extract a tar file, you need to use the 'f' flag. Try this:

tar -xvf sam.tar

If you would prefer a listing before you extract:

tar -tvf sam.tar
Steven Schweda
Honored Contributor

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

"man tar"?

tar xvmf sam.tar

Without "f", it uses the default tape drive.