Skip to contentSkip to conversation

ext2fs disaster - how to recover some files ?

DISCUSSION [email protected] 1 participant 1 message Nov 1, 2000 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · Andreas Dilger

Since you have a filesystem > 500MB it will default to having 4kB blocks, and the backup superblocks will be aligned on 32768 block boundaries. Try "e2fsck -B 4096 -b 32768" (or 98304, 163840, 229376, 81920) to see if that works. I think I will submit a patch to Ted which offers more suggestions than 8193 for backup blocks, since not too many people know where the backups are located on more recent filesystems since they will normally have 4kB blocks these days.

This is a known bug; it's fixed (incorrectly) in 1.19, and will be fixed in 1.20.

You don't have to specify -B 4096. "e2fsck -b 32768" is sufficient, as e2fsck will automatically figure out the proper blocksize.

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/