Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.


Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.


Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.


Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Filesystems

Dealing with ReiserFS bad blocks

Submitted by on March 24, 2008 – 6:42 pm One Comment

The following is a procedure for recovering a ReiserFS filesystem with bad blocks. If this is a system FS and cannot be unmounted, the box needs to be booted from the latest version of Knoppix Live CD that has ReiserFS tools available.

Determine the blocksize for your device (default is 4096):

debugreiserfs  | grep -i 'blocksize'

Scan the device and record a list of bad blocks:

badblocks -n -b 4096 -o badblocksfile

Fix whatever can be fixed and mark the rest of the bad blocks as unusable:

reiserfsck --fix-fixable --badblocks badblocksfile
Print Friendly, PDF & Email

One Comment »

Leave a Reply

%d bloggers like this: