LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-05-2003, 10:27 PM   #1
ocularbob
Member
 
Registered: Nov 2002
Location: brooklyn NYC
Distribution: gentoo
Posts: 212

Rep: Reputation: 30
need help saving hard drive!?


I have an IDE with an ext3 partition that has no sys just tons of files. during boot it is reported to have problems run e2fsck.
the disk mounts just fine but any command run on one of the dir's hangs up.
e2fsck di this:
bigblack:/home/scott # fsck -y /dev/hdc
fsck 1.28 (31-Aug-2002)
e2fsck 1.28 (31-Aug-2002)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hdc

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>

fsck.ext2 /dev/hdc failed (status 0x8). Run manually!


any ideas?
thanks alot
 
Old 02-05-2003, 10:51 PM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 460

Rep: Reputation: 42
e2fsck != fsck

Specifically the output you included suggests:
"e2fsck -b <blocknum> <device>"

Whether 8193 is correct, well, I don't know if this number is hardcoded as an example or if it is a valid suggestion. For that you can always read the source.

The man page for e2fsck says about the -b:

-b superblock
Instead of using the normal superblock, use an
alternative superblock specified by superblock.
This option is normally used when the primary
superblock has been corrupted. The location of the
backup superblock is dependent on the filesystem's
blocksize. ....

It goes on and suggests methods of determining the location of backup superblocks. I suggest reading it. Good Luck.
 
Old 02-06-2003, 06:37 PM   #3
ocularbob
Member
 
Registered: Nov 2002
Location: brooklyn NYC
Distribution: gentoo
Posts: 212

Original Poster
Rep: Reputation: 30
hey thanks I saved the sucker!
turns out that 8193 is hard coded but i found a backup superlock at 32 and fsck worked perfectly.
and the beat goes on.................
 
Old 02-07-2003, 12:33 AM   #4
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 460

Rep: Reputation: 42
Cool, glad I could help. Might I also suggest a backup if you don't have one? I've myself have had bad experiences with IDE, once they start failing they have gone quickly on me (for SCSI, the whine of the bearing usually becomes too unbearable before the drive itself flames out :-)
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM
saving mp3 data on another hard-drive jamaso Linux - General 2 03-31-2002 09:41 PM

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

All times are GMT -5. The time now is 05:19 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