Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tar: tape read error

Status
Not open for further replies.

inma

Technical User
Apr 5, 2001
49
0
0
ES
When I want to list the table of a tape writed with a tar command like this:
tar -tvf /dev/rmt/1n

this message appears:

tar: tape read error

Anybody can help me?

Thanks,
 
Are you sure the tape has been rewound? The "n" /dev/rmt/1n implies "norewind", so if that's the device you normally use perhaps the head is still positioned at the end of the tape? Try the mt rewind command perhaps.

Annihilannic.
 
Hi Annihilannic, I have tried with both ways (1 and 1n), and always I write "mt -f /dev/rmt/1 rewind" before.

Inma
 
Dodgy tape? Have you tried with another tape? Can you dd off the tape?

Annihilannic.
 
Are you sure the tape was written successfully?

Show command used to create the tar tape please?


HTH,

p5wizard
 
Hi Annihilannic, another tape works well.
I have used dd if=/dev/rmt/1 of=kk and dd if=/dev/rmt/1 of=kk conv=swab, and this message appears:

read: I/O error
0+0 records in
0+0 records out
 
Hi p5wizard, the tape was written successfully because the first time I used the same command as now:
tar tvf /dev/rmt/1n, 2 times and finally tar tvf /dev/rmt/1 but always show the message tar: tape read error.

To create the tape I used:
tar cvf /dev/rmt/1n disk1
tar cvf /dev/rmt/1n disk2
tar cvf /dev/rmt/1 disk3

Thanks for all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top