Command

Find Alternative Superblocks and Repair

Before running dumpe2fs, make sure to run df -hT command to know the filesystem device name

$ sudo dumpe2fs /dev/sdaX | grep -i superblock

dumpe2fs 1.41.11 (14-Mar-2019)
  Primary superblock at 0, Group descriptors at 1-29
  Backup superblock at 32768, Group descriptors at 32769-32797
  Backup superblock at 98304, Group descriptors at 98305-98333
  Backup superblock at 163840, Group descriptors at 163841-163869
  Backup superblock at 229376, Group descriptors at 229377-229405
  Backup superblock at 294912, Group descriptors at 294913-294941
  Backup superblock at 819200, Group descriptors at 819201-819229
  Backup superblock at 884736, Group descriptors at 884737-884765
  Backup superblock at 1605632, Group descriptors at 1605633-1605661
  Backup superblock at 2654208, Group descriptors at 2654209-2654237
  Backup superblock at 4096000, Group descriptors at 4096001-4096029
  Backup superblock at 7962624, Group descriptors at 7962625-7962653
  Backup superblock at 11239424, Group descriptors at 11239425-11239453
  Backup superblock at 20480000, Group descriptors at 20480001-20480029
  Backup superblock at 23887872, Group descriptors at 23887873-23887901
  Backup superblock at 71663616, Group descriptors at 71663617-71663645
  Backup superblock at 78675968, Group descriptors at 78675969-78675997
  Backup superblock at 102400000, Group descriptors at 102400001-102400029

$ sudo umount /dev/sdaX

$ sudo e2fsck -f -b 32768 /dev/sdaX

$ sudo mkdir -p /media/data

$ sudo mount -o sb=32768 /dev/sdaX /media/data

Leave a Reply

Your email address will not be published. Required fields are marked *