Operating System - HP-UX
1748183 Members
3581 Online
108759 Solutions
New Discussion юеВ

Re: Directory checksum Error - tar -tvf ...

 
vat
Advisor

Directory checksum Error - tar -tvf ...

Dear All,

I am trying to list the file in the tape drive.
using following command :

tar -tvf /dev/rmt/0mn

it gives following error :

Tar: blocksize = 10
directory checksum error


How to restore one file from tape to disk ?

Regards,

Nirav
4 REPLIES 4
Sunil Sheoran
Frequent Advisor

Re: Directory checksum Error - tar -tvf ...

Hi

It seems that you have taken backup using some other utility (I mean not using tar). That could be one of the reason that you are getting "directory checksum error" error. or it can be due to media or drive bad issue also.

How to restore one file from tape to disk ?

It depend how you have taken backup. if you have taken uing tar with relative path restore the files at alternet location & copy one file from their to orignal location

Thanks
Sunil
vat
Advisor

Re: Directory checksum Error - tar -tvf ...

Hi Sunil

Thanks for you quick response.

Yes I have taken backup using 'dd' i.e. also from SAP.

This is a oracle database backup. I want to restore only one archive log file which is needs for our test database.

How can I restore that?

I am not good on HP-Unix.

Regards,

Nirav

Dennis Handly
Acclaimed Contributor

Re: Directory checksum Error - tar -tvf ...

>I have taken backup using 'dd' i.e. also from SAP.

(What do you mean "also from SAP"?
What were the exact commands you used to write to the tape? Unless you used dd(1) in a pipe, you are going to have problems getting it off.

>I want to restore only one archive log file which is needs for our test database.

If you have multiple files on your tape, you should use a tool like tar, pax, cpio or fbackup.
Patrick Wallek
Honored Contributor

Re: Directory checksum Error - tar -tvf ...

If you used 'dd' to take the backup, you can NOT use tar to restore. You must use the same tool to restore, ie. dd.