LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 04-15-2007, 05:50 PM   #1
General
Member
 
Registered: Aug 2005
Distribution: Debian 6.0
Posts: 465

Rep: Reputation: 31
Restore old corrupt files?


I am trying to restore three old MS Works WPS documents. Ten years ago they were saved to floppy disk, then a few years later, transfered to CD-R. Somewhere along the line, they became corrupted. Nautilus says they have a definite file size, but I can't copy them off of the CD and attempts at reading the contents with 'less' and 'cat' return "read error (press RETURN" and "cat: FILE1.WPS: Input/output error". Anyone have any suggestions for how to recover this data?
 
Old 04-15-2007, 06:29 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The first thing to try is to clean the CD. A smudge or scratch may be what is corrupting the data. If the files were corrupted when transferring them from floppy to CD, you may be out of luck if there was information loss.

You might try using ddrescue to copy an image of the CD to a file and play with that. Ddrescue will make several attempts to read bad areas.

You can mount the image as if it were a CD.
mkdir cddir
sudo mount -t iso9660 cdimage.iso cddir/ -o ro,loop,unhide

A text file would be easier to rescue, because you could search for the patterns you are interested in. This would allow you to copy portions of text from the image to a file. If you are lucky and the problem is with the filesystem, but the file itself is intact and not fragmented, you can use dd to copy a range from the image to a file.
 
Old 04-15-2007, 06:56 PM   #3
General
Member
 
Registered: Aug 2005
Distribution: Debian 6.0
Posts: 465

Original Poster
Rep: Reputation: 31
Thanks much! Did the trick.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to copy files/folders but skip bad/corrupt files?? leemoreau Linux - Newbie 2 04-02-2007 03:27 PM
Files corrupt on FTP Server randaddyz Linux - Newbie 3 07-18-2006 08:19 PM
Samba and corrupt files Wordan Linux - Networking 4 11-05-2004 07:51 AM
Problems with corrupt files/logging in Atmchicago Slackware 9 06-08-2004 02:19 PM
Passwd files corrupt - I am locked out. Need Help!!! cloy Linux - Newbie 4 02-16-2001 05:25 PM


All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration