LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 10-19-2003, 03:32 PM   #1
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Rep: Reputation: 15
Bad Magic Number?


I can't boot into Linux, I'm running Mandrake 9.1, here's a copy of what it says during boot:

fsck.ext3: Bad magic number in the super-block while trying to open /dev/hda1
fsck.ext3: Bad magic number in the super-block while trying to open /dev/hdb5
/dev/hdb5: The superblock could not be read or does not describe a correct ext2 filesystem.
If the device is not valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might want to try running e2fsck with an alternative superblock:
e2fsck -b 8193 <device>

fsck.ext3: Bad magic number in superblock while trying to open /dev/hdb5
/dev/hda6: clean, 1488/387840 files, 49517/775128 blocks
[FAILED]

Now as for me I don't have a clue what all this means, but hopefully someone who read this will. Alternatively I'll just put my computer into early retirement until I get a copy of Mandrake 9.2 (since I'm not interested in reformatting as a solution to this problem). Also, I do have data I would prefer not to lose, though its not "mission critical" (my collection of divx and ogg files)
 
Old 10-19-2003, 03:47 PM   #2
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Just thought I'd come back and add some more info on this. I've just deleted a 2 NTFS partitions, one of which was loaded with Windows XP Pro. Both partitions were much bigger than the ext3 partitions aswell. I've reformatted them as ext2 or 3 (whichever the mandrake control panel's utility would have selected as default). Also, when I told it to do this it was very very fast (didn't appear to do anything!). If you've got any questions you need to ask to give me any sort of answer fire away.
 
Old 10-19-2003, 03:48 PM   #3
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
you do get the option to provide the root password after the messages, right? Type in the root password and you will get ot a prompt. Do what it suggests:
e2fsck -b 8193 /dev/hdb5
and
e2fsck -b 8193 /dev/hda1

Actually, do you have two harddrives and set up so that you have two linux partitions on one hd, and a third one on the second? Or is one of those partitions windows formatted (i.e. ntfs or fat32)?
 
Old 10-19-2003, 04:26 PM   #4
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Actually my partition tables got about 7 partitions at the moment (or something daft like that) cos its a mess! I'll do as you've suggested and tell u what happens. Thanx
 
Old 10-19-2003, 04:31 PM   #5
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
I just logged in as root and executed the commands suggested, but I got error messages identical to those above . I'm downloading Knoppix 3.3 btw (it'll be downloaded in 3 hours, but I'll have gone to bed by then since I have college at 0900 in the morning tomorrow (its 2230 at the moment)
 
Old 10-19-2003, 04:44 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
it could be that the partition table got mixed up (the numbering changes when you delete partitions). Once you login as root, take look at /etc/fstab. If /dev/hda1 and /dev/hdb5 (these are the trouble ones, right) are mounted to inessential places (not /, not /var, not /etc), then place a # in front of the lines for them.
You might have to remount your root partition r/w. The fstab will tell what your / partition is.
mount -o remount -o rw {root partition)
 
Old 10-19-2003, 04:59 PM   #7
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Thanks I'll go try that now I don't know much about how fstab works but I know that the numbers were deff changed when i deleted those NTFS partitions and created ext2/3 ones, and maybe they weren't given new mount points, I'll go look... thanks again, hopefully I'll have better luck this time
 
Old 10-19-2003, 05:22 PM   #8
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
OK I got as far as the etc folder and I cant do"vi fstab" what other text editors are there that i can launch without a graphical interface cos gedit fstab don't work and I'll go try emacs... nope, suggestions? (im sure this is just cos of my unfamiliarity with the command line actually, thats the pitfall of running distros like mandrake methinks...
 
Old 10-19-2003, 05:26 PM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
stick with vi. Press I or Insert (the key) and you can start editing. When you are done, press ESC, and then type ':wq' (w/o the quotation marks) and it will save and quit. If it says that it could not write, quit by typing ':q!' and then remount your root partition read-write (see above).
 
Old 10-19-2003, 05:33 PM   #10
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
No im used to having to press I to insert text etc, its just that the command vi is not found!!
 
Old 10-19-2003, 05:35 PM   #11
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
Oh sorry. Try
/bin/vi /etc/fstab
 
Old 10-19-2003, 05:41 PM   #12
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Thanks I'll go try that now
 
Old 10-19-2003, 05:43 PM   #13
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
nope - /bin/vi doesn't exist
 
Old 10-19-2003, 05:46 PM   #14
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
that's strange. How about
/usr/bin/vi /etc/fstab

Do you have anything in those directories. If you created separate partitions for those, you'll have to mount them first.
 
Old 10-19-2003, 05:46 PM   #15
Thewyzewun
Member
 
Registered: Sep 2003
Location: London, UK
Distribution: Mandrake 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
I'm guessing thats a bad thing hehe
i also tried navigating to /etc/bin and then trying vi and it isn't there, theres something called vi@ in there tho (is that the wrong place?)
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bootsplash and Bad Magic Number raid517 Linux - Software 3 10-21-2005 08:55 AM
bad magic number in superblock crazynachos Linux - Games 1 04-15-2004 01:43 PM
bad magic number in superblock crazynachos Linux - Newbie 1 04-14-2004 02:09 AM
Bad Magic Number joseph Linux - Software 1 01-05-2004 03:22 AM
Kernel, Bad Magic Number Alybyzrp Linux - Newbie 0 10-29-2003 01:29 PM


All times are GMT -5. The time now is 01:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration