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 02-18-2006, 01:46 AM   #1
matttail
Member
 
Registered: Jan 2004
Posts: 36

Rep: Reputation: 15
boot loader FUBAR


So, I've got a dual boot between windose and Debian, my computer locked up and I hard powered off. Now when I turn the computer back on it gets all the way up to loading the boot loader (grub I believe) and the system reboots. No error messages or anything, just reboots and starts counting memory again.

I believe all Hardware stuff is good to go becuase I'm using the computer right now wiht knoppix booted up. There's 4 partitions on the primary hard drive. hda1 is linux, 2 is linux swap, 3 windose, and 4 is a common storage area. I can access hda3 and 4, but I can't mount hda1 I get this error:
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

So I try fsck to see if it will help out. I tried fsck /dev/hda1 and get this:
fsck 1.38-WIP (09-May-2005)
e2fsck 1.38-WIP (09-May-2005)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hda1

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>

I thought this was an ext3, but I'm not sure. Regardless I thougth I'd try and add some optiosn to let fsck know it's ext3. But no matter what I try - -A or -t ext3 all I get in response is fsck 1.38-WIP (09-May-2005). I'm no expert, but I'm fairly used to passing options to commands, and I check the man page for this and as far as I can tell it should be working.

Next I tried e2fsck -b 8193 /dev/hda1, but I also get an error:
e2fsck 1.38-WIP (09-May-2005)
e2fsck: Bad magic number in super-block while trying to open /dev/hda1

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>

I read that I should try -b 32768 instead, but that doesn't make any difference.

Next I rad to try ""mke2fs -S /dev/hdaXX", followed by an immediate "e2fsck -f /dev/hdaXX"" but this just seemed a little severe to me, and I wanted to ask if that's what I should be doing. I don't have any data I'm overly partial to on hda1, but hda3 and 4 and very dear to me. I can reinstall debian easly enough if need be, but I'd rather not. Thanks for any help and sigguestions.
 
Old 02-18-2006, 04:06 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You said that you would duel boot between Windows and Linux. Normally that means that /hda1 would be windows. Please double check whether you are correct on what you think your partitions are. You can use the "fdisk" command to list the partitions.

If you can get as far as a boot menu, since you use grub, you can boot from the grub shell. There are two handy features that help out when you can't boot normally. First, you can use auto-completion to locate the drive and partition containing the kernel and ramdisk. Second, using auto-completion, if you can locate the /boot/grub/menu.lst file, you can load it in and boot from a grub menu.
 
Old 02-18-2006, 05:03 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Having Windows in hda2, hda3 or hda4 are acceptable. I wouldn't worry about it at all.

It looks to me the hda1 filing system may be damaged and I would go for a reinstallation as it will not harm hda3 and hda4.

In fact since you are familar with Knoppix it may be better to put Knoppix into hda1. Afterall Knoppix is a modern variant of Debian as it uses a newer kernel. In you click to knoppix command mode these 2 lines will fire its installer up
Code:
su
knoppix-installer
Just keep an eye on the choice of the root partition and make absolutely sure it is hda1. Knoppix will pick hda2 swap and use it.
 
Old 02-18-2006, 01:32 PM   #4
matttail
Member
 
Registered: Jan 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks, I'll go ahead and re-install then. Any idea how things got messed up? I didn't think windose locking up would be able to effect my linux partition and the MBR.
 
Old 02-18-2006, 03:34 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Any OS locking up can mess up lots of things. While it is fun to argue that Windows is a worse offender, I doubt the reality of this. Remember that random forces of nature can flip bits in RAM and cause errors on hard drives.
A common urban legend which I have found consistently true is that it pays to re-install Windows at least once per year. I have no idea if this will be true for Linux as well.
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 07:08 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - General 1 09-25-2005 07:07 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

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

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