LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2012, 04:26 PM   #1
sanjeev taran
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 0
Superblock Corruption


I have and esata drive that I mounted to linux using an esata-usb cable. I see that sdb is available usning dmesg but the 3 partitions sdb1, sdb2 and sdb3 are not available. Disk /dev/sdb doesn't contain a valid partition table


When I tried to mount I get an error that the superblock is corrupted. I tried to run fsck -p /dev/sdb on the HD and I get this:
Bad magic number in super-block while trying to open /dev/sdb
/dev/sdb:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 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>

Next I tried to get the superblocks with mkfs -n /dev/sdb and it fails - so I do not know the bacup superblocks.

I tried to run e2fsck using these standard superblock numbers but these commands also fail. so at this stage, I am unable to access these partitions - I know I had 3 partitions - one for linux and one for swap and third for data. Is there any way I can savlage the data partitions.

Thanks a lot for any assistance anyone can provide.

Sanjeev Taran






dumpe2fs /dev/sda2
 
Old 03-03-2012, 04:37 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
This is a great tool to help http://www.cgsecurity.org/wiki/TestDisk
 
Old 03-03-2012, 04:47 PM   #3
sanjeev taran
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Tried this - the problem is that the disk does not show up on windows or linux. I am using the esata-usb cable with the drive, the drive is not spinning.
Thanks for your reply.
-ST
 
Old 03-03-2012, 04:52 PM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
the drive is not spinning.
That would worry me...is it an external thing? Check the power supply. Had that on my Prestige too. No spin-up.

Eh, just thinking out loud...got cool music here too...

Thor
 
Old 03-03-2012, 05:04 PM   #5
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
You say the drive in not showing up, but, in you initial post you indicated that you were able to run fdisk against it, albeit with a erroneous result. Testdisk can be run against the raw disk just like you did with fdisk. It does not have to show up as a mounted partition (if that's what you mean?).
 
Old 03-03-2012, 05:32 PM   #6
sanjeev taran
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Original Poster
Rep: Reputation: 0
On Windows: I tried testdisk on windows.The drive is not showing up on the windows platform.
On linux I see sdb but not the sdb1, sdb2 and sdb3 partitions. fdisk on linux does not show the partitions - hence the error on linux

Both cases, I do not hear any spin.

Thanks for your responses.
-ST
 
Old 03-04-2012, 03:52 AM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
Both cases, I do not hear any spin.
...powersupply...
 
Old 03-04-2012, 06:41 AM   #8
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
What does the output of dmesg show and lshw (if installed)
 
  


Reply

Tags
corrupt, partitioning, superblock



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
Repeatable RAID 0 Superblock Corruption wpeloqui Linux - Hardware 1 09-14-2007 02:32 PM
file corruption!! vishamr2000 Linux - General 5 05-12-2006 01:45 AM
bootsector corruption ragchan Linux - Newbie 4 07-29-2004 02:16 PM
Recovering from superblock corruption? Wellamo Linux - General 0 07-05-2004 05:00 PM
superblock corruption carbone Linux - Software 2 08-18-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 PM.

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
Open Source Consulting | Domain Registration