| From | Sent On | Attachments |
|---|---|---|
| Eugeny N Dzhurinsky | Mar 8, 2010 2:26 am | |
| Alexander Motin | Mar 8, 2010 2:31 am | |
| Eugene Dzhurinsky | Mar 8, 2010 2:52 am | |
| Eugene Dzhurinsky | Mar 8, 2010 2:54 am | |
| Eugene Dzhurinsky | Mar 8, 2010 3:08 am | |
| Miroslav Lachman | Mar 8, 2010 3:21 am | |
| Wes Morgan | Mar 8, 2010 3:46 am | |
| Eugene Dzhurinsky | Mar 8, 2010 3:50 am | |
| Miroslav Lachman | Mar 8, 2010 5:28 am | |
| Alex Keda | Mar 8, 2010 12:14 pm | |
| Ulrich Spörlein | Mar 11, 2010 5:47 am | |
| Dag-Erling Smørgrav | Mar 11, 2010 7:20 am | |
| Svein Skogen (Listmail Account) | Mar 11, 2010 7:23 am | |
| Miroslav Lachman | Mar 13, 2010 12:44 pm | |
| Dag-Erling Smørgrav | Mar 13, 2010 1:24 pm | |
| Miroslav Lachman | Mar 14, 2010 1:54 am | |
| Gary Jennejohn | Mar 14, 2010 4:38 am | |
| Miroslav Lachman | Mar 14, 2010 9:18 am | |
| Gary Jennejohn | Mar 14, 2010 10:47 am | |
| Dag-Erling Smørgrav | Mar 17, 2010 3:58 am | |
| Miroslav Lachman | Mar 17, 2010 4:35 am | |
| Miroslav Lachman | Mar 17, 2010 4:41 am | |
| Dag-Erling Smørgrav | Mar 17, 2010 4:59 am | |
| Gary Jennejohn | Mar 17, 2010 5:05 am | |
| Miroslav Lachman | Mar 18, 2010 3:29 am | |
| Miroslav Lachman | Mar 18, 2010 3:32 am | |
| Dag-Erling Smørgrav | Mar 18, 2010 4:10 am | |
| Pieter de Goeje | Mar 18, 2010 4:33 am | |
| Miroslav Lachman | Mar 18, 2010 4:45 am | |
| Dag-Erling Smørgrav | Mar 18, 2010 5:17 am |
| Subject: | Re: A tool for remapping bad sectors in CURRENT? | |
|---|---|---|
| From: | Dag-Erling Smørgrav (de...@des.no) | |
| Date: | Mar 13, 2010 1:24:26 pm | |
| List: | org.freebsd.freebsd-current | |
Miroslav Lachman <000....@quip.cz> writes:
So... can somebody with enough knowledge write some docs / script how to find the affected file based on LBA read error from messages / SMART log?
ZFS will tell you straight away, but I guess if you used ZFS, you wouldn't be asking :)
For FFS, you can unmount the file system (boot from a CD or memory stick or whatever if that file system is / or /usr), run fsdb on the failing disk, use findblk to look up the inode number for the file that contains the bad sector. Note that you have to convert the LBA to an offset relative to the start of the partition.
Unfortunately, you can't easily go from inode to file name; you have to mount the file system and use something like find -inum.
DES
-- Dag-Erling Smørgrav - de...@des.no
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "free...@freebsd.org"





