Page 1 of 1

tune2fs: "bad magic number in super-block"

Posted: Sun Oct 06, 2019 2:35 am
by ^rooker
[PROBLEM]
I was trying to set a fsck on next reboot on my / partition.
So I did:

Code: Select all

$ sudo tune2fs -c 1 /dev/sdb1
...and my heart almost stopped when I got this error :shock: :
tune2fs: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.
[SOLUTION]
The boot partition created by Xubuntu Xenial (16.04) on EFI is vfat formatted.

tune2fs works only with ext2, ext3 and ext4 formatted partition. In my case, this was (surprise!) /dev/sdb2


Have a great day! :D