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
norewind_close_disabled(5)					File Formats Manual					norewind_close_disabled(5)

NAME
norewind_close_disabled - determine whether access to tape device special files without the no-rewind-on-close option is allowed VALUES
Default Allowed values DESCRIPTION
Note: this tunable was named in releases prior to HP-UX 11i v3. This tunable notifies the tape driver whether it should allow access to device special files without the no-rewind-on-close option. When this tunable is on, the tape driver will fail any open on a tape device special file that does not have the no-rewind-on-close option (that is, or with a status of The tunable allows the safe sharing of tape devices in SAN tape backup solution configurations. The disabling of device special files without no-rewind-on-close in a SAN tape backup solution configuration prevents the accidental sending of a rewind command on close from HP-UX systems via standard tape commands like which would corrupt a backup in process. Who Is Expected to Change This Tunable? Anyone. Restrictions on Changing Changes to this tunable take effect immediately. When Should the Tunable Be Turned On? This tunable should be turned on if the system is going to be used in a SAN tape backup solution configuration. What Are the Side Effects of Turning the Tunable On? The tape driver will fail any open to a tape device special file that does not have the no-rewind-on-close option with a status of This behavior prevents the usage of any tape device special file without the no-rewind-on-close option. When Should the Tunable Be Turned Off? This tunable should be turned off if the system is not part of a SAN tape backup solution configuration or the system utilizes will not function unless it has access to device special files without the no-rewind-on-close option. What Are the Side Effects of Turning the Tunable Off? A rewind may be issued accidentally from this system on close, possibly corrupting a backup being issued from another system on the SAN. What Other Tunables Should Be Changed at the Same Time? None. EXAMPLES
Query the current value of the tunable: Set the value of the tunable to To save the value of the tunable across reboots: WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by Hewlett-Packard. SEE ALSO
scsi_tape(7), scsimgr_estape(7). Tunable Kernel Parameters norewind_close_disabled(5)