LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-03-2003, 01:10 AM   #1
LGBR
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
ext2 partition screwed?


I'm using Debian Woody 3.0 on my machine, and I installed it two weeks ago. And now it's having some trouble with the ext2 partition on there. When I boot it says:

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>

so I run
e2fsck -b 8193 /dev/hda2

and I got:

e2fsck 1.27 (8-Mar-2002)
e2fsck: Bad magic number in super-block while trying to open /dev/hda2

Same thing happend when I tried just /dev/hda. What should I do?
 
Old 08-03-2003, 03:50 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
I knew I should have written this down. I run debian unstable, and the same thing happened to me about a month ago. Although I can't really help(I've been drinking--it is saturday night , I can tell you that it's not something that you need to reinstall debian for, or risk losing your information. If I recall right, it was because my version of lilo was screwed up. When I did my usual updates, I couldn't boot back in.

While I'm not sure that's your case, it could also be a bad kernel config. If you're new at linux, and you don't have anything to lose, a reinstall won't kill you, and might be easier (although it pains me to say that, windows users don't seem to mind). If you're competent with linux, or at least willing to play with linux a little, you might want to look into chroot. I think I fixed it by chrooting into my system from a boot disk, then running lilo from a different version of lilo than I'd just installed.

Like I said, this is a guess, and I've been drinking, so I'm sorry if this doesn't help. The main reason I posted it was to let you know that it's just an oddball error, not something that means your system is trashed, or really hard to fix. It took me only a couple minutes to fix it once I understood what was wrong...and of course, I forgot to write it down.
 
Old 08-03-2003, 06:42 AM   #3
zero_copy
Member
 
Registered: Aug 2003
Location: CT
Distribution: Slackware
Posts: 45

Rep: Reputation: 15
if you boot with lilo, then try this:

if you can, check the lilo.conf file and make sure that the info specifying boot partitions is correct, if it is go ahead and run 'lilo' to reinstall your bootloader(if your using lilo).

hope that helps....
 
Old 08-03-2003, 05:13 PM   #4
LGBR
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
nothing worked. my lilo.conf looks fine. I'm assuming I have to reformat or something?
 
Old 08-03-2003, 08:27 PM   #5
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
Before doing anything as drastic as that, can we see your /etc/fstab?

And fsck works on file systems in partitions /dev/hda1, /dev/sda1 etc not on whole disks /dev/hda, /dev/sda etc.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! partition table screwed up CARLiCiOUS Linux - Software 2 04-15-2005 03:25 PM
What to do when a partition is screwed. waterox LinuxQuestions.org Member Success Stories 6 08-12-2004 01:35 PM
How To Format A Partition Into Ext2 ? Help lemon_hou Linux - Hardware 1 04-27-2004 04:30 AM
how to resize a ext2 partition? Thievery Linux - Newbie 3 03-21-2002 05:19 AM
Resizing an Ext2 partition PuterFreaK Linux - General 8 03-15-2002 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:56 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
Open Source Consulting | Domain Registration