Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 badblock inode).

Now I'd like to get badblock information to know if there are any problems with the harddrive. 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 bruden on the system.

  2. Somehow extract information about badblocks from the filesystem iteself.

How can I view known badblocks registered in mounted filesystem?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Try

dumpe2fs -b /dev/<WHATEVER>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.