All new docs in the last five days are gone!
Brian McKee
brian.mckee at gmail.com
Fri Feb 20 01:31:42 UTC 2009
>>
>> Perhaps 'sudo e2fsck -cc /dev/<device>' would be easier/better?
>>
>> man e2fsck:
>> -c This option causes e2fsck to use badblocks(8) program to do a
>> read-only scan of the device in order to find any bad blocks.
>> If any bad blocks are found, they are added to the bad block
>> inode to prevent them from being allocated to a file or direcâ€
>> tory. If this option is specified twice, then the bad block
>> scan will be done using a non-destructive read-write test.
>>
>
> Nae. If a modern hard drive starts getting bad blocks that are visible
> to the OS (ie, it can't remap the clusters itself transparently), the
> bin is the correct remedy, not trying to map the filesystem around it.
Further to this - if I don't run Spin Rite on a drive I just dd
if=/dev/zero of=/dev/theDrive until it errors out of space at least
once. That way it writes to every block it can and the drive can find
and remap all the bad blocks.
Brian
More information about the ubuntu-users
mailing list