LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2006, 03:32 PM   #1
jdiemer
LQ Newbie
 
Registered: Aug 2004
Distribution: Redhat Enterprise
Posts: 15

Rep: Reputation: 0
Grub menu not showing up


I'm trying to configure a dual-boot machine, 2 SATA drives. Sda contains WindowsXP. Sdb has Centos. The bios has boot option where one can boot from either hard drive.

The computer folks here really like XP, and have the ability to push out new XP images at any time. Therefore, Linux must be on sdb, and the bootloader for linux must also reside on the same drive (or when they push out a new XP image, they'll reformat sda, and destroy the linux bootloader there).

Ok, so I think I've explained why I need the bootloader on sdb.

So here's what's going on. Grub won't show it's menu. When I select to boot drive 2, it simply takes me to the grub command line. From there, I can type in the following:

root (hd0,0)
kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/sdb2 rhgb quiet
initrd /initrd-2.6.9-34.ELsmp.img

And Linux runs beautifully.

You might notice that I'm using hd0, when Linux resides on sdb. When I try to tell grub to use (hd1,0) , it complains about the partition type. It appears that grub(or the bios) is perhaps switching hd0/hd1? However, it is still referred to as /dev/sdbX correctly.

grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/sdb2
# initrd /initrd-version.img
#boot=/dev/sdb1

default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz

title CentOS-4 x86_64 (2.6.9-34.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/sdb2 rhgb quiet
initrd /initrd-2.6.9-34.ELsmp.img
title CentOS-4 x86_64-up (2.6.9-34.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-34.EL.img


device.map:

# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb

filesystem:
/dev/sdb2 /
/dev/sdb1 /boot
none /dev/shm
/dev/sdb6 /home
/dev/sdb5 /var


Any thoughts on why grub's pretty menu won't show up?

Thanks!
 
Old 11-24-2006, 04:18 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
What /dev/sdb* is your /boot directory on?

Brian
 
Old 11-24-2006, 04:20 PM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,587

Rep: Reputation: 121Reputation: 121
I had the same problem with my Linux partitions on sda and two IDE harddisks set prior in boot order by the BIOS. I have to admit I didn't try too long, but I didn't get it to work. It seemed that GRUB indeed saw my sda (put first in boot order) as hd(0) when booting but after booting as hd(2).
There might be a way by changing /boot/grub/devices.map but I did not want to try it and ended up with restoring the "original" boot sequence and install the GRUB loader to hda. If you had the possibility to boot from floppy or even better an USB stick that might make it much easier I guess.
 
Old 11-24-2006, 05:16 PM   #4
jdiemer
LQ Newbie
 
Registered: Aug 2004
Distribution: Redhat Enterprise
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Brian1
What /dev/sdb* is your /boot directory on?

Brian
I have a separate boot partition at /dev/sdb1
 
Old 11-24-2006, 09:28 PM   #5
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
First, the "boot" lines are missing from your grub.conf:
Code:
title CentOS-4 x86_64 (2.6.9-34.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/sdb2 rhgb quiet
initrd /initrd-2.6.9-34.ELsmp.img
boot

title CentOS-4 x86_64-up (2.6.9-34.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-34.EL.img
boot
What FS is your /boot?

Oh, and sometimes, the splashimage causes problems. try commenting it out

Last edited by burninGpi; 11-25-2006 at 02:13 PM.
 
Old 11-24-2006, 10:02 PM   #6
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
try putting this in your grub.conf:
Code:
...
title CentOS-4 x86_64 (2.6.9-34.ELsmp)
map (hd1) (hd0)
root (hd1,0)
kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/sdb2 rhgb quiet
initrd /initrd-2.6.9-34.ELsmp.img
boot

Last edited by burninGpi; 11-25-2006 at 02:13 PM.
 
Old 11-28-2006, 01:30 PM   #7
jdiemer
LQ Newbie
 
Registered: Aug 2004
Distribution: Redhat Enterprise
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by burninGpi
First, the "boot" lines are missing from your grub.conf:
Code:
title CentOS-4 x86_64 (2.6.9-34.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/sdb2 rhgb quiet
initrd /initrd-2.6.9-34.ELsmp.img
boot

title CentOS-4 x86_64-up (2.6.9-34.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-34.EL.img
boot
What FS is your /boot?

Oh, and sometimes, the splashimage causes problems. try commenting it out
I added the boot lines, commented out the splashimage, and added the map command...and the menu still does not show up. It only takes me to the grub command prompt.

My /boot is on ext3.
 
  


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
Grub - Delay before showing boot menu IK81 Linux - General 3 10-02-2006 12:02 PM
Kaffeine (DVB menu) not showing. apinta10 Slackware 8 10-11-2005 02:28 PM
Programs Showing Up Oddly in Menu VxJasonxV Mandriva 0 05-19-2004 07:58 PM
Enlightenment menu text not showing up! Aman9090 Linux - Software 0 05-09-2004 02:08 PM
start menu not showing up twilightened Linux - Software 0 11-09-2003 07:20 AM


All times are GMT -5. The time now is 12:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration