Repair a Damaged Extended File System
We will replace its primary superblock assuming that it is corrupted, and then mount the file system back. 1. Unmount the /dev/sda/test file system using the umount command: # umount /dev/sda/test 2. Execute the e2fsck command on its logical volume device file /dev/sda/test # e2fsck /dev/sda/test /dev/sda/test: clean, 11/73728 files, 13789/288768 blocks This e2fsck utility is hard linked to fsck.ext3 and fsck.ext4 commands that may be used instead on the specific file system type. 3. Obtain the list of backup superblock locations for this file system using the dumpe2fs command: # dumpe2fs /dev/sda/test| grep superblock Primary superblock at 0, Group descriptors at 1-1 Backup superblock at 32768 , Group descriptors at 32769-32769 Backup superblock at 98304, Group descriptors at 98305-98305 Backup superblock at 163840, Group des...