LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-19-2004, 03:56 PM   #1
mark_nl
LQ Newbie
 
Registered: Jul 2004
Distribution: SuSE 9.0
Posts: 6

Rep: Reputation: 0
Red face GRUB doesn't boot linux when I enter "boot" at its prompt


Hi everyone,

I've got a problem with Grub. Here's the situation:

I've got a dual boot system with suse linux 9.0 and win xp pro. I had to reinstall xp but when that was done, i realised that xp destroyed my MBR which previously gave me the fantastic choice between xp and suse.

So, I thought, let's try to get GRUB (running from rescue mode of the suse image cd) booting into my (still exsisting) Linux distro. I read the documentation about grub and all seem pretty easy, so I gave it a shot with the following commands in my grub prompt:

1. root (hd0,6)
2. kernel /boot/vmlinuz root=/dev/hde7
3. initrd /boot/initrd
4. boot

The entering of the boot-command (point 4) seems to be the problem and I just can't understand why, because my series of grub commands is exactly like they say in the documentation. (I even tried all the options from my grub.conf file)

After typing boot and pressing enter, grub just says nothing and exits. Bringing me back to the rescue shell from which I started grub. Of course, the suse system I intended to start, doesn't start at all. I've given it various tries, but all were negative. I just can't figure why, so I really hope someone out there, knows what to do next.

A quick overview of my partitions:

/dev/hde1 = win xp (ntfs)
/dev/hde7 = suse 9.0 (reiser fs)

(note: since the xp reinstall, my partition table has NOT changed, so that shouldn't be the problem)

Thanx a lot for any help!!
 
Old 07-19-2004, 05:38 PM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Is that the only disk in your machine?
 
Old 07-19-2004, 06:37 PM   #3
azure
LQ Newbie
 
Registered: Jul 2004
Distribution: FC2
Posts: 3

Rep: Reputation: 0
maybe you can use the rescue mode to mkbootdisk and that will help you create a floppy that'll get you into your real linux, as opposed to the rescue mode linux. once your there, u could fix your MBR with grub
 
Old 07-19-2004, 11:41 PM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
try this.............

1. root (hd4,6)
2. kernel /boot/vmlinuz root=/dev/hde7
3. initrd /boot/initrd
4. boot

/dev/hde7 and (hd0,6) don't match!!!


OR try this..........

1. root (hd4,6)
2. kernel /boot/vmlinuz root=/dev/hde7
3. initrd /boot/initrd
4. boot /dev/hde7

OR this...........
1. root (hd4,6)
2. kernel /boot/vmlinuz root=/dev/hde7
3. initrd /boot/initrd
4. boot hde7





Last edited by 320mb; 07-19-2004 at 11:48 PM.
 
Old 07-20-2004, 05:21 AM   #5
mark_nl
LQ Newbie
 
Registered: Jul 2004
Distribution: SuSE 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Thanx for all the help but it still doesn't work.

I tried the root (hd4,6) but then grub says that it doesn't recognize that disk. When I think about it, it is quite logical, because since I only have one hard drive it really should be hd0. (hd4 should be the 5th harddisk, I think.)
And root (hd0,6) is recognized as my intended reiser fs partition with suse. Also the kernel loading and initrd commands proceed succesfully, but afterall it still doesn't boot when I type boot.
 
Old 07-20-2004, 06:00 AM   #6
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
If you just put in root (hd0, and then use TAB completion, what options does it show?

Last edited by oneandoneis2; 07-20-2004 at 07:09 AM.
 
Old 07-20-2004, 06:14 AM   #7
mark_nl
LQ Newbie
 
Registered: Jul 2004
Distribution: SuSE 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Hi,

I've got more than one partition;for clarity i've made a screendump of my partition table:

Disk /dev/hde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hde1 * 1 4865 39078081 7 HPFS/NTFS
/dev/hde2 4866 9729 39070080 f Win95 Ext'd (LBA)
/dev/hde5 4866 6501 13141138+ c Win95 FAT32 (LBA)
/dev/hde6 6502 6613 899608+ 82 Linux swap
/dev/hde7 6614 9728 25021206 83 Linux

as you can see, I need hde7.
 
Old 07-20-2004, 07:08 AM   #8
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
What is the wording of the error? Is your initrd symlink simply "initrd"? Or is it "initrd.img"? Are you able to mount your partition under Suse to look at? Go to your /boot partition and write down the exact name of your kernel and initrd. Then try booting the actual file instead of the symlinks.
 
Old 07-20-2004, 07:26 AM   #9
mark_nl
LQ Newbie
 
Registered: Jul 2004
Distribution: SuSE 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
thanx,

but already tried the full names of kernel and initrd. Nevertheless I just noted a few strange things in the log:

can't locate module block major <numbers>

Could have something to do with it? But what does it mean exactly? I'm stuck, again
 
Old 07-20-2004, 10:34 AM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
To be sure, your drive lettering is strange but if that worked before then it should work again. Also, you stated at first that you where using the MBR before so that also should work again. I think you are over complicating your list of commands when restoring the grub.
If indeed the / ( root ) is located at /dev/hde7 , note: this can be verified with the command: rdev
here are the commands you need..........
Code:
grub
root (hd0,6)
setup (hd0)
quit
reboot

Last edited by homey; 07-20-2004 at 10:39 AM.
 
Old 07-20-2004, 12:19 PM   #11
mark_nl
LQ Newbie
 
Registered: Jul 2004
Distribution: SuSE 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Fantastic!!!

those commands were exactly what I needed. Everything works like it used to do. Thank you!
 
Old 07-20-2004, 12:36 PM   #12
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Cool!
 
Old 07-20-2004, 01:39 PM   #13
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Now take a look at the /boot/grub/menu.lst file and tell us what you were doing wrong, cuz it had all of us beat
 
Old 07-20-2004, 05:22 PM   #14
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Quote:
Originally posted by homey
To be sure, your drive lettering is strange but if that worked before then it should work again.
Likely a raid-enabled motherboard (or SATA). The ATA controllers start at a,b,c,d, but raid controllers usually start at e.
 
Old 09-17-2004, 11:05 PM   #15
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
vectordrake and mark_nl

Only just come across this thread.

What was the answer?

I would have thought that the homey solution using the root command has worked

therefore my tutorial on grub on detected drives needs no update for raid.


Am I right?
 
  


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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
How to "dual boot" linux (debian) and Freebsd using Grub? hkl8324 Debian 4 06-15-2005 02:32 PM
Dual-boot install: "Could not find kernel image: linux / boot:" JEBBEDIAH C Linux - Newbie 16 02-02-2005 08:25 PM
where is the "enter root password or Contrl-D to continue" after FS repair at boot jg167 Red Hat 0 11-17-2004 01:20 AM
"Disk boot failure. Enter system disk and press enter" Fear58 Linux - Hardware 3 06-25-2004 05:17 PM

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

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