LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-09-2019, 07:35 PM   #1
FrizzledOldButt
Member
 
Registered: Dec 2015
Posts: 74

Rep: Reputation: Disabled
HDD recovery from Bad Superblock


I recently had a HDD failure in an LVM (ext4) array.

After sorting out the array, I thought I'd stick the drive into a docking station to have a closer look.

e2fsck reported a bad superblock and "no such directory" for the device.

I spent a couple of fruitless days with our friend e2fsck, mkfs, Google, Gparted, Gnome-disk-util and finally testdisk researching and testing to see if the HDD could be revived and reformatted.

Testdisk finally informed me that the disk might be unrecoverable and lost.

About to give up I plugged the docking station into a Win10 machine and opened Disk Manager. It told me the HDD needed initialisation.

I did that, and it was back. I formatted it to NTFS. That took awhile, but all good. Further checks with SMART and other utilities tell me HDD is fine, although SMART says there was one failure in the past

To my question; is there a utility or command under Linux that would do what Win10 did, i.e. "initialise" a HDD in this simple manner?

Thanks
 
Old 09-09-2019, 07:53 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,080

Rep: Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900Reputation: 2900
If it was part of an array under LVM, there was a bunch of (incomplete) meta-data that various components were trying to make sense of. Win10 just ignored it. To do the same simply use dd to zero the first few hundred MB of the disk. Then use gparted/fdisk to set up a partition table, then proceed as normal.
 
1 members found this post helpful.
Old 09-09-2019, 08:24 PM   #3
FrizzledOldButt
Member
 
Registered: Dec 2015
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
simply use dd to zero the first few hundred MB of the disk. Then use gparted/fdisk to set up a partition table, then proceed as normal.
Thanks
 
  


Reply


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
HDD isn't mounting (wrong fs type, bad option, bad superblock...) MinasFilm Linux - Hardware 10 01-24-2016 03:12 PM
Problem mounting CD-ROM: wrong fs type, bad option, bad superblock on /dev/cdrom Oooska Linux - Newbie 7 07-10-2013 11:37 AM
Bad mount of .mdf - "wrong fs type, bad option, bad superblock, on /dev/loop0" Maybe-not Linux - General 2 02-29-2008 01:30 PM
wrong fs type, bad option, bad superblock on /dev/cdrom, or too many mounted file sy TheCyberDude Linux - Software 1 02-11-2002 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:48 AM.

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