Post #290,422
8/6/07 10:49:17 PM
|
Got some VERY hot SATA disks.
Very sad.
How do I map sectors to files?
I/O error, dev sdc, sector 243776633
|
Post #290,424
8/6/07 11:52:34 PM
|
Depends on the filesystem(s) used
Simplest thing is running fsck on the partitions on the disk and let the tool do the work.
If you're already beyond that, the contents of /etc/fstab and/or /etc/mtab contain the filesystem types for all partitions the computer knows about. Alternatively, "df -T" can be used to show the filesystem types on the currently mounted devices.
From there, it strongly depends on the filesystem type. xfs has tools to let you navigate the whole tree at will, but AFAIK, the other types will involve lots of manual labor.
|
Post #290,426
8/6/07 11:55:19 PM
8/7/07 12:09:08 AM
|
ext3
What next?
Right now I'm rsyncing to another disk. The rsync hangs on the bad sector files. I add the file to the exclude list, break the rsync, and start over.
Edited by crazy
Aug. 7, 2007, 12:09:08 AM EDT
|
Post #290,431
8/7/07 3:52:21 AM
|
That is about all I'd be doing.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwethey PGP key: 1024D/B524687C 2003-08-05 Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C Alternate Fingerprint: 09F9 1102 9D74 E35B D841 56C5 6356 88C0 Alternate Fingerprint: 455F E104 22CA 29C4 933F 9505 2B79 2AB2
|
Post #290,520
8/8/07 11:48:12 PM
|
About all you can do
Running e2fsck in repair mode will give dump data beyond damaged directory nodes in lost+found, but it is unlikely to be in usable condition. You may be able to recover some text based files from there, but binary data is pretty much a lost cause.
There are a couple of programs that can recover files from a damaged image which work reasonably well on small files with a wellknown structure (like JPEG images).
Testdisk (Debian's package name. No idea what the others call it) has a scanner that works specifically with photo files.
[link|http://foremost.sourceforge.net|Foremost] works by extracting everything that fits the signatures you specify, but that includes all echos caused by editing, moving, deleting, etc.
|
Post #290,521
8/8/07 11:56:57 PM
|
I wasn't planning on recovering them
I simply wanted a listing of what files were affected. I knew it was only a few based on the sector count, so I was hoping to avoid the multiple restart of rsync.
That's OK. All fixed now.
|
Post #290,540
8/9/07 11:11:19 AM
|
I think I found what you're looking for...
[link|http://smartmontools.sourceforge.net/BadBlockHowTo.txt|http://smartmontools...BadBlockHowTo.txt]
|
Post #290,560
8/9/07 10:27:44 PM
|
Yup. Thanks.
|
Post #290,490
8/8/07 8:35:33 AM
|
Restore from tape?
*flees*
Peter [link|http://www.no2id.net/|Don't Let The Terrorists Win] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes! [link|http://kevan.org/brain.cgi?pwhysall|A better terminal emulator] [image|http://i66.photobucket.com/albums/h262/pwhysall/Misc/saveus.png|0|Darwinia||]
|
Post #290,522
8/8/07 11:57:41 PM
|
Not necessary
Not possible either.
Fling! (you forgot to duck)
|