Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-11-2014, 03:05 PM   #1
Registered: Apr 2013
Posts: 47

Rep: Reputation: Disabled
Hard Drive Invalid Superblock


I got an issue, my HDD superblock is over destroyed and so I cannot do anything.
Here are the outputs I get:

# e2fsck -f /dev/sdc1
e2fsck 1.42.9 (4-Feb-2014)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdc1

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>
    e2fsck -b 32768 <device>
So I tried trying to 'recover' it with backup blocks with the command displaying backups, none of them worked.

What I'd like to do: make this hard drive work again, I don't mind about the datas that were on it, it's even better if it's all wiped. How could I make it work again ? Thanks.
Old 10-11-2014, 04:06 PM   #2
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Can you delete the partition and create a new one in the same location?

You could boot a live linux DVD that has gparted, or the gparted live CD ( )
and delete that partition, or all the partitions, and then create the new partitions you want.

The last resort is to wipe the partition (or drive) clean with the dd command:
dd if=/dev/zero of=/dev/sdc1 bs=4096
dd if=/dev/zero of=/dev/sdc bs=4096
You are writing zeros to every sector, so with a big partition or hard drive it could take, like, forever to complete - hours and hours.
Old 10-11-2014, 05:08 PM   #3
Registered: Apr 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thank you for your answer.
I prefered to do the 'dd' command.
The system is on a server, fortunately with SSD of 120GB.

Both commands were performed:

# dd if=/dev/zero of=/dev/sdc1 bs=4096
dd: error writing ‘/dev/sdc1’: No space left on device
29304951+0 records in
29304950+0 records out
120033075200 bytes (120 GB) copied, 871.969 s, 138 MB/s

# dd if=/dev/zero of=/dev/sdc bs=4096
dd: error writing ‘/dev/sdc’: No space left on device
29305207+0 records in
29305206+0 records out
120034123776 bytes (120 GB) copied, 870.753 s, 138 MB/s
However, the issue is persisting, it's still not working.
Here is what I get with with the demsg command:

# dmesg | tail
EXT4-fs (sdc1): VFS: Can't find ext4 filesystem
Is there any way to fix that ?
Old 10-11-2014, 06:27 PM   #4
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
It seems that the drive is not partitioned and not formatted. If you are working command line, use cfdisk for partitioning, then mkfs -t ext4 for formatting.

Note: I see that somehow the system refers to /dev/sdc1. Altough you cleaned the partition table with the dd command. If cfdisk complains, start with cfdisk -z /dev/sdc. This ignores any remnants of partition information.

I assume /dev/sdc is your disk. Double check.

Old 10-16-2014, 10:06 AM   #5
Registered: Apr 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled

Sorry for the late answer, when I wished to reply, I got an 'Internet Server Error'.
Thank you a lot for your answer: mkfs -t ext4 did the trick !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Repair FAT hard drive superblock conormacaoidh Linux - Hardware 5 01-14-2012 05:10 AM
Can't read superblock on primary hard drive Duron Linux - Hardware 13 10-20-2006 09:40 AM
Hard drive failure? No Superblock, Mandrake kwalker Linux - Hardware 10 02-19-2005 05:01 PM
Upgrade Hard Drive Invalid SuperBlock sephiro499 Mandriva 5 10-18-2004 08:08 AM
Upgrade Hard Drive Invalid SuperBlock sephiro499 Linux - Hardware 1 10-17-2004 09:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration