[Lvlug] Detecting new bad blocks on a disk while a system is running?

Mark mstanley at technologist.com
Wed Dec 20 12:56:57 EST 2006


On Saturday 16 December 2006 13:31, Randy Kramer wrote:
> And, if I find out that something like that has occurred, what should I do
> at that point?   (Create a new partition and move the files from the old to
> the new partition?)

That's one way and I've had to do that with a bad /var partition.  /var 
changes frequently which is why we chose to copy files, edit fstab and 
reboot.

>
> Does an fsck deal with this kind of occurrence?  Should I run fsck at
> regular intervals (maybe most easily by rebooting)?

It does but you actually need to 'remount' the partition as read-only.  That 
way fsck can do its thing without the system or users changing any files.  
fsck will work on a read-only partition.

When you are done then remount again with read/write.

-Mark


More information about the Lvlug mailing list