15

I've ran fsck -c on the (unmounted) partition in question a while ago. The process was unattended and results were not stored anywhere (except the bad block inode).

Now I'd like to get bad block information to know if there are any problems with the hard drive. Unfortunately, partition is used in the production system and can't be unmounted.

I see two ways to get what I want:

  1. Run badblocks in read-only mode. This will probably take a lot of time and cause unnecessary burden on the system.

  2. Somehow extract information about bad blocks from the filesystem itself.

How can I view known bad blocks registered in mounted filesystem?

1 Answer 1

20

Have you looked into dumpe2fs? You can use it as follows:

dumpe2fs -b /dev/$partition

E.g.

dumpe2fs -b /dev/sdd1
1
  • @Gareth Thanks for the edit, this is my first time on the site. I'm still trying to get used to it. Have a good day.
    – darkdragn
    May 28, 2011 at 17:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .