Linux 101 : Error : tune2fs: Bad magic number in super-block while trying to open /dev/sda3



Tune2fs is a great tool for listing and modifying the parameters of the ext2, ext3 and ext4 filesystems, like the maximum mount count before the filesystem is checked, the amount of space allocated to certain processes or the labels given to filesystems.

Tune2fs error:
 
When we list the parameters of a filesystem using the below command, we get an error:


The command fails most of the times because the file system we are running the command on is not and "ext" filesystem as show below:


In our case we will need to use the "brtfstune" command, because we have a btrfs on the "/dev/sda3":


The above command helps us tune the settings of a btrfs filesystem features on an unmounted device

Comments

Leave as a comment:

Archive