IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Got some VERY hot SATA disks.
Very sad.

How do I map sectors to files?

I/O error, dev sdc, sector 243776633
New 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.
New 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.
Expand Edited by crazy Aug. 7, 2007, 12:09:08 AM EDT
New 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
New 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.
New 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.
New I think I found what you're looking for...
[link|http://smartmontools.sourceforge.net/BadBlockHowTo.txt|http://smartmontools...BadBlockHowTo.txt]
New Yup. Thanks.
New 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||]
New Not necessary
Not possible either.

Fling! (you forgot to duck)
     Got some VERY hot SATA disks. - (crazy) - (9)
         Depends on the filesystem(s) used - (scoenye) - (6)
             ext3 - (crazy) - (5)
                 That is about all I'd be doing. -NT - (folkert)
                 About all you can do - (scoenye) - (3)
                     I wasn't planning on recovering them - (crazy) - (2)
                         I think I found what you're looking for... - (scoenye) - (1)
                             Yup. Thanks. -NT - (crazy)
         Restore from tape? - (pwhysall) - (1)
             Not necessary - (crazy)

It'll be gradual, but faster than you expect. One day it won't be there, and the next day you'll be surprised at just how fast it still isn't.
65 ms