LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   did e2fsck mark any blocks bad? how do i check? (https://www.linuxquestions.org/questions/linux-hardware-18/did-e2fsck-mark-any-blocks-bad-how-do-i-check-476936/)

whysyn 08-24-2006 08:53 AM

did e2fsck mark any blocks bad? how do i check?
 
(or: How do I view the bad blocks list)

In my continuing saga of hard drive problems (2006 has been a rough year), I started getting read errors on a database table and found SCSI errors being spit out by the kernel.

Because these errors were on a table stored on the root partition, I downed the system and booted off a CD with some utilities.

"e2fsck -c -c /dev/sda3"

Did do a read/write bad block check on the drive, taking almost four hours. It said it finished the bad block scan, but did not say whether it actually added any to the bad block list.

Is there a command that will display the bad block list from the filesystem? I'd rather make sure it found some than wait for another crash...

Thanks much!

ramram29 08-24-2006 10:19 AM

Try runnning 'dumpe2fs -b /dev/sda3 | less'. It should tell you if it finds any bad blocks.


All times are GMT -5. The time now is 07:51 PM.