Microsoft
Software
Hardware
Network
Question : restoring a tar from a tape with an unreadable section
I need to restore some files that have been 'tar'ed to tape using an IBM RISC/6000 AIX 5.2. When I do a 'tar -xvf /dev/rtm0' or 'tar -tvf /dev/rmt0 a few files are read, but each time, at the same spot, I get "tar: 0511-193 An error occurred while reading from the media.' I've tried the tape in multiple tape drives and get the same error at the same point.
I'm looking for some sort of way to skip over what I hope is just this one unreadable section. I don't need all the files on the tape, just a few. Is there some method or utility that will allow me to do this? (Other than sending the tape to a data recovery company.) A colleague's job is at stake.
I've tried all the tctl, and mt options for moving the tape to a specific file mark, but without success.
Thanks for you help,
Don
Answer : restoring a tar from a tape with an unreadable section
dd if=/dev/rmt0 ibs=4096 conv=noerror,notruncate | tar xf -
tar will complain on damaged section, but rest will be fine. probably gnu tar goes better. You will have 4k damaged in one file
Random Solutions
how to sum top 3 columns values in mysql query?
Backup Exec - Exchange 2007 / Poor Performance and Eventual Exhaustion of RAM Backing up Information Store
SQL Reporting Services: The permissions granted to user "<server>"\IUSR_<username><wbr />" are insufficient for performing this operation.
Compress FAT32 drive
Bind Listbox to Different Table and Have it Show Relationship Data
Query assistance!
Getting Red Alert 2 game to work on my Win XP PC
Outlook Public folder calendar as a resource for scheduling meetings from users Outlook
vbscript, domain authentication for non-domain computer
Read Stored procedure text from java code.