Skip to content

Instantly share code, notes, and snippets.

@dungmanh88
Created October 1, 2016 15:14
Show Gist options
  • Save dungmanh88/b413db815c171f1987f3952ade53e98c to your computer and use it in GitHub Desktop.
Save dungmanh88/b413db815c171f1987f3952ade53e98c to your computer and use it in GitHub Desktop.
Recovery bad super block
Umount /dev/sda1
fsck -V /dev/sda1 to get the location of bad super block
mke2fs -n /dev/sda1 to get the location of backup super block
e2fsck -b <the location of backup super block in output of mke2fs -n> /dev/sda1 to replace bad super block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment