fsck disk cannot run due to "Bad magic number in super-block" Disk is an external one (WD passport HDD), connected through usb port. It is mounted normally. I can write / delete / play / run files normally (except in a particular directory).
I would like to run fsck that may fix that problem. However, i confronted that problem.
Using sudo e2fsck /dev/sdc
, with different numbers didnt work.
What to do?
"sudo fsck /dev/sdc"
elias@eliasc:/home$ sudo fsck /dev/sdc
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdc
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Found a gpt partition table in /dev/sdc
sudo fdisk -l
Disk /dev/sdc: 931.5 GiB, 1000170586112 bytes, 1953458176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 66BAEFE2-F3F9-491C-B40F-C964F28AE483
Device Start End Sectors Size Type
/dev/sdc1 2048 1953456127 1953454080 931.5G Microsoft basic data
UPDATE: I Posted the solution and it was deleted. What I found out was that the linux utils of ntfs (and much more) was unable to fix my disk. Therefore, I created a virtual environment of VirtualBox running Windows enterprise Free trial edition. I run Checkdsk and my problem was fixed.
UPDATE 2: After fixing NTFS, i formatted to Ext4, entire disk. Bye bye NTFS problem. As I read, it does not need defragmation as Ext4.
fsck
on the disk instead of the partition... If it's NTFS make sure you have the fsck.ntfs helper – Ginnungagap Jul 15 '20 at 11:08