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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prblem restoring files from Floppy - checksum error !

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a floppy disk that I have copied some files (from an aix 4.3.3 server). I am now trying to copy these files into another AIX box. It looks like all the files are there and are copied to a specified directory, when I restore it from SMIT. But I cannot find these files when I go to that directory... From Smitty-> System Storage mgmt -> Files & Directories -> Restore a File or a directory menu:


Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

[TOP]
x /home/workshop
x /home/workshop/alloc
x /home/workshop/ex11_cpu
x /home/workshop/ex11_disk
x /home/workshop/ex11_job
x /home/workshop/ex11_memory
x /home/workshop/ex11_prog1
....



I get the following when I use tar command:

# tar -xvf /dev/fd0 /home/Test
tar: 0511-169 A directory checksum error on media; 1701732181 not equal to 20399.

But the files are there..

# restore -Tvdq /dev/fd0
New volume on /dev/rfd0:
Cluster size is 4608 bytes (9 blocks).
The volume number is 1.
The backup date is: Fri Nov 30 13:41:38 CST 2001
Files are backed up by name.
The user is root.
0 /home/workshop
4485 /home/workshop/alloc
170 /home/workshop/ex11_cpu
209 /home/workshop/ex11_disk
226 /home/workshop/ex11_job
620 /home/workshop/ex11_memory
149 /home/workshop/ex11_prog1
.....


Any input would be appreciated... Thanks!
 
Looks like files from an AIX class :)

The floppy is not a tar backup. It is backup/restore format.

Get rid of the "T" in your restore command. That only lists files in the archive. It doesn't actually do the restore.

Bill.
 
Tried it... stil fails!!!!!

# restore -vdq /dev/fd0 /home/Test
New volume on /dev/rfd0:
Cluster size is 4608 bytes (9 blocks).
The volume number is 1.
The backup date is: Fri Nov 30 13:41:38 CST 2001
Files are backed up by name.
The user is root.
The total size is 0 bytes.
The number of restored files is 0.
#
 
Try using the raw device
tar -xvfi /dev/rfd0
-----------------
Do you know what format it was created in? tar, cpio? backup? pax?

------------------
0511-169 A directory checksum error on media: MediaName not equal to Number
Possible Causes

From the command line, you issued the tar command to extract files from an
archive that was not created with the tar command. You issued the tar
command for a file that became damaged while being copied over the network.

You issued the tar command for a file that was copied over the network,
using the ftp command, but did not specify the binary flag.

Procedures for Recovery

Ensure that the file is in the correct format by running the cpio or
the restore command. Run the sum command on the copied file and also on the original file. Recopy the file if the sizes are different.
Rerun the ftp command using the binary flag to copy the file,
then rerun the tar command.
-------------------
 
No - on a restore, you need to specify a "." as part of the filespec.

Try

restore -vdq /dev/fd0 ./home/Test

backup always backs up from "/", so a "." is required.

Bill.
 
tried it... but for some reason it did not work...

# restore -vdq /dev/fd0 ./home/Test
New volume on /dev/rfd0:
Cluster size is 4608 bytes (9 blocks).
The volume number is 1.
The backup date is: Fri Nov 30 13:41:38 CST 2001
Files are backed up by name.
The user is root.
The total size is 0 bytes.
The number of restored files is 0.
#


Anyway... I could restore it from SMIT (I guess all along). But I can not find these files in the specified "directory"... Looks like the files are restored under the "/home/workshop" directory. NOT the the /home/Test directory that I had specified in smit menu... don't know why though?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top