1833582 Members
3827 Online
110061 Solutions
New Discussion

tar problem! help.

 
SOLVED
Go to solution
rveri
Super Advisor

tar problem! help.

Hi All,

I am copying file and its copying fine uwing tar. While retriving its giving error, this is a new drive on a new server.

# tar -cvf /dev/rmt/0mn /home/*
...
...
Fine copied all.

# tar -tvf /dev/rmt/0mn
Tar: blocksize=0; broken pipe?
#

What is worng, whats the problem?

Thanks,
5 REPLIES 5
Jeff_Traigle
Honored Contributor
Solution

Re: tar problem! help.

You created the archive using the no-rewind device so you're trying to read the index while the tape is positioned after the archive. Rewind the tape first:

mt -f /dev/rmt/0m rewind
tar tvf /dev/rmt/0m

You should get your listing.
--
Jeff Traigle
A. Clay Stephenson
Acclaimed Contributor

Re: tar problem! help.

Best guess: Notice that you used the norewind device. It is not clear that you started at the beginning of the tape or somewhere in the middle for the original backup. You probably need to use the mt command to position the tape to the desired starting point. This is why it is not always smart to put more than one backup image on a tape. It is extremely easy to "get lost" on a tape or (worse) to overwrite a valueable backup.
If it ain't broke, I can fix that.
rveri
Super Advisor

Re: tar problem! help.

Many Thanks Jeff and Clay , I will check with rewinding thee tape and update.
rveri
Super Advisor

Re: tar problem! help.

it works, thanks.
rveri
Super Advisor

Re: tar problem! help.

.