Friday, October 10, 2014

tune2fs: Bad magic number in super-block while trying to open ... Couldn't find valid filesystem superblock

I was getting this error because I was using it on a exFat ssd hard drive which is used for windows and linux compatibility. If you want to change the label use instead exfatlabel. for instance


sudo exfatlabel /dev/sdb1 ssd

(If exfatlabel is not installed on your system you just need to do: 
 sudo apt-get install exfat-util)

you can also use sudo fdsik -l to see your hard drives and know which one you need to rename. And use  sudo blkid /dev/sdb1 for instance to know what kind of file system you have if you have ntfs you might need to do for instance.

sudo ntfslabel /dev/sdb2 hd1