Quote:
Originally Posted by kosmo333
sdb3 ext4 filesystem.
|
The HOWTO instructions for ext2/3 should still apply.
- Sector offset = 241896648-7010304 = 234886344
- FS block = 234886344/8 = 29360793
- Running "debugfs /dev/sdb3" and then its "testb 29360793" command should reveal which, if any, inode is using the block. You can then use the "icheck" command to reveal which named file is affected.
Note that if the bad sector is actually holding filesystem metadata, "testb" will indicate no inode is using the block (it only checks for mapped data blocks). Determining just what metadata is using that block is difficult, but you can just zero the bad sector and let
fsck figure out and correct what is now wrong with the filesystem.