Extracting files from corrupted tape


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Extracting files from corrupted tape
# 1  
Old 03-28-2008
Extracting files from corrupted tape

I've got a backuptape in cpio format that was accidentally overwritten with a very small batch file. As I assume that the cpio header has been overwritten, I cannot extract files from the backup in the conventional manner:

( cpio -itv </dev/rct0
cpio: this is not a cpio file, bad header)

I've tried dd if=/dev/rct0 of=output which has produced a single large file The cpio actually records the contents of three directories. As these are large I'm hoping that I can recover data from the second and third directories.

Is there a specific dd expression (or any other expression) that I can use to strip out the contents ?

All suggestions appreciated. Thanks.

Martin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get CRC check sum of files in java EAR file without extracting .jar/.war files to disk.?

unzip -v gives CRC info of each file in a zip(in my case .EAR) file. # unzip -v my-application.ear Archive: my-application.ear Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies

2. Hardware

Files getting corrupted

$ uname -a Linux darksun 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:45 UTC 2014 i686 athlon i686 GNU/Linux My files are getting corrupted on a frequent basis. $ sudo fdisk -l /dev/sda Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total... (10 Replies)
Discussion started by: rlopes
10 Replies

3. Shell Programming and Scripting

Extracting specific files from multiple .tgz files

Hey, I have number of .tgz files and want to extract the file with the ending *results.txt from each one. I have tried for file in *.tgz; do tar --wildcards -zxf $file *results.txt; doneas well as list=$(ls *.tgz) for i in $list; do tar --wildcards -zxvf $i *.results.txt; done... (1 Reply)
Discussion started by: jfern
1 Replies

4. Shell Programming and Scripting

Extracting/condensing text from multiple files to multiples files

Hi Everyone, I'm really new to all this so I'm really hoping someone can help. I have a directory with ~1000 lists from which I want to extract lines from and write to new files. For simplicity lets say they are shopping lists and I want to write out the lines corresponding to apples to a new... (2 Replies)
Discussion started by: born2phase
2 Replies

5. HP-UX

WinRAR files are corrupted after FTP

In my Windows 2003 server machine I have a winrar or winzip file that i around 3GB. This zip/rar file is ftped to a unix mahine (HPUX) . FTP is successful. But when it get this file to check if its has been ftped correctly, the file is corrupted. Is there something wrong that i am doing while... (4 Replies)
Discussion started by: maroli
4 Replies

6. Solaris

PAM login library files corrupted, have ILOM, can I get root?

I was installing sfw sudo and its dependencies (libiconv, libintl, libgcc)on Solaris 10, running on an x86 x4200 and I corrupted some PAM library files. It's a standard Solaris 10 base install, with some added software & libraries from a vendor. I am on console trying to get root access back,... (1 Reply)
Discussion started by: Mariognarly
1 Replies

7. Shell Programming and Scripting

Fixing corrupted vcard files.

KDE's Kontact PIM breaks quoted-printable vcard files because it linebreaks in the middle of a word. Take this text for example: NOTE;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D7=A9=D7=95=D7=A8=D7=94 =D7=A 8=D7=90=D7=A9=D7=95=D7=A0=D7=94.\n=D7=94=D7=A9=D7=95=D7=A8=D7=94 =D7=94=D7= ... (7 Replies)
Discussion started by: dotancohen
7 Replies

8. UNIX for Advanced & Expert Users

Reading from a corrupted tape

I've got a backuptape in cpio format that was accidentally overwritten with a very small batch file. As I assume that the cpio header has been overwritten, I cannot extract files from the backup in the conventional manner: ( cpio -itv </dev/rct0 cpio: this is not a cpio file, bad header) ... (0 Replies)
Discussion started by: mart4179
0 Replies

9. UNIX for Dummies Questions & Answers

Corrupted files from Windows to Unix Sco

I downloaded some applications from CD on a windows2000 PC to a Unix Sco machine using the WS-FTP program. When I tried to run the applications on the Unix machines I got an error. The files must have been corrupted in the process of transferring files from a Windows 2000 to a Unix Sco... (9 Replies)
Discussion started by: BAM
9 Replies

10. UNIX for Dummies Questions & Answers

extracting file form tape

Hello all, I have done a search and follow the direction on how to extract a file form tar tape. With 1.) tar xf /dev/rmt/0 <filename> 2.) tar xf /dev/rmt/0 <fullpath/filename> Both of these do not seem to work. Heres the scope I do daily backup of a 10g disk on to a DDS4 tape. With... (4 Replies)
Discussion started by: larry
4 Replies
Login or Register to Ask a Question
cpio.h(3HEAD)							      Headers							     cpio.h(3HEAD)

NAME
cpio.h, cpio - cpio archive values SYNOPSIS
#include <cpio.h> DESCRIPTION
Values needed by the c_mode field of the cpio archive format are described as follows: Name Description ----------------------------------------------------------- C_IRUSR Read by owner C_IWUSR Write by owner C_IXUSR Execute by owner C_IRGRP Read by group C_IWGRP Write by group C_IXGRP Execute by group C_IROTH Read by others C_IWOTH Write by others C_IXOTH Execute by others C_ISUID Set user ID C_ISGID Set group ID C_ISVTX On directories, restricted deletion flag C_ISDIR Directory C_ISFIFO FIFO C_ISREG Regular file C_ISBLK Block special C_ISCHR Character special C_ISCTG Reserved C_ISLNK Symbolic link C_ISSOCK Socket The header defines the symbolic constant: MAGIC "070707" ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
pax(1), attributes(5), standards(5) SunOS 5.11 10 Sep 2004 cpio.h(3HEAD)