LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools
Old 09-15-2007, 08:56 AM   #1
asi
LQ Newbie
 
Registered: Oct 2004
Location: Zurich, Switzerland
Posts: 6
Thanked: 0
grub does not load menu.lst


[Log in to get rid of this advertisement]
hy together,

I'm fighting with grub again. I want to boot my servers from a storage volume. the server is connected with a fibre channel adapter to the storage and the FCA is configured with BIOS enabled and so on.

I installed grub on this new volume, which looks like this:

sdd1 -> /boot
sdd2 -> LVM2
sdd3 -> SWAP

LVM2 has a volume group vgos, and a logical volume slash (my /). while working on the "local" os, sdd is (hd3). I did mounted vgos/slash to /mnt/newslash, sdd1 to /mnt/newslash/boot, also /proc and /dev. i made a change root to /mnt/newslash and installed grub:

grub
> root (hd3,0)
> setup (hd3)
> quit

everything worked fine for me. I changed the grub.conf to this:

Code:
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-55.0.6.ELsmp)
       root (hd0,0)
       kernel /vmlinuz-2.6.9-55.0.6.ELsmp ro root=/dev/vgos/slash rhgb quiet
       initrd /initrd-2.6.9-55.0.6.ELsmp.img
#title Red Hat Enterprise Linux AS (2.6.9-55.0.6.ELsmp)
#       root (hd0,0)
#       kernel /vmlinuz-2.6.9-55.0.6.ELsmp ro root=/dev/vg00/lv00 rhgb quiet
#       initrd /initrd-2.6.9-55.0.6.ELsmp.img
#title Red Hat Enterprise Linux AS (2.6.9-55.0.6.EL)
#       root (hd0,0)
#       kernel /vmlinuz-2.6.9-55.0.6.EL ro root=/dev/vg00/lv00 rhgb quiet
#       initrd /initrd-2.6.9-55.0.6.EL.img
title Red Hat Enterprise Linux AS (2.6.9-22.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-22.ELsmp ro root=/dev/vg00/lv00 rhgb quiet
        initrd /initrd-2.6.9-22.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-22.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-22.EL ro root=/dev/vg00/lv00 rhgb quiet
        initrd /initrd-2.6.9-22.EL.img
then i also altered my /etc/fstab to the new volumes, recreated my initrd file and rebooted.

now, what happens: the server boots and the only thing I see is the grub console. If I enter the following commands, my server boots to the "new" OS on the new starge volume:

Code:
> root (hd0,0)
> kernel /vmlinuz-2.6.9-55.0.6.ELsmp ro root=/dev/vgos/slash rhgb quiet
> initrd /initrd-2.6.9-55.0.6.ELsmp.img
> boot
and it works. So, my question is: Why does grub NOT load my config file? all the paths are okay (doublechecked that), also the filenames of the kernel and the initrd file as well...

any suggestions?

thanks in advance. asi
asi is offline     Reply With Quote
Old 09-15-2007, 09:07 AM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA
Distribution: Debian Squeeze, SuSE 11.0, F8, F10, F11 x86_64
Posts: 1,130
Thanked: 16
You might also look at '/etc/fstab'. I believe the LVMs need to be defined as such there also.
AwesomeMachine is offline     Reply With Quote
Old 09-15-2007, 09:18 AM   #3
asi
LQ Newbie
 
Registered: Oct 2004
Location: Zurich, Switzerland
Posts: 6
Thanked: 0

Original Poster
This is the contenct of my fstab now:

Code:
LABEL=/BOOT             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP              swap                    swap    defaults        0 0
#/dev/vg02/lv20         /u01            ext3    defaults        1 2
#/dev/vg00/lv00         /               ext3    defaults        1 2
/dev/vgos/slash         /               ext3    defaults        1 2
#/dev/vg01/lv10         /u00            ext3    defaults        1 2
/dev/hda                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
I have implemented this "storage boot" on 3 other servers so far. i had nothing else to cofigure therefore. if the LVM Modules are loaded they'll find the volumes, so that always worked for me so far.

the problem is, if I located the problem right, not my fstab, more somthing with grub. I'm not sure if it is looking on the wrong partition for it's config, cause at boot time it needs (hd0), but I instaled grub on (hd3). it is in fact the same device, but I'm not sure what exaclty grub does if I install it on (hd3), respectively which path's are configured.
asi is offline     Reply With Quote
Old 09-15-2007, 09:52 AM   #4
asi
LQ Newbie
 
Registered: Oct 2004
Location: Zurich, Switzerland
Posts: 6
Thanked: 0

Original Poster
I tried something else, but no success with that. I unpresented all other devices on the storage, so sdd goes to sda.
grub
> root (hd0,0)
> setup (hd0)
> quit

but no success with that. exaclty the same behaviour. grub console on boot time, with manual config it works fine
asi is offline     Reply With Quote
Old 09-15-2007, 11:53 AM   #5
asi
LQ Newbie
 
Registered: Oct 2004
Location: Zurich, Switzerland
Posts: 6
Thanked: 0

Original Poster
Found it:

There was something wrong with the setup command (it runs an install). I had to run the install command again, but for the configfile i removed the /boot.
asi is offline     Reply With Quote
Old 11-22-2007, 11:33 PM   #6
CaptainMorgan
LQ Newbie
 
Registered: Nov 2007
Posts: 5
Thanked: 0
Quote:
Originally Posted by asi View Post
Found it:

There was something wrong with the setup command (it runs an install). I had to run the install command again, but for the configfile i removed the /boot.

Why did you remove /boot from the command ? Isn't that where your menu.lst is located: /boot/grub/menu.lst ? That's where mine is located and I can't load it, whether I try configfile or setup or install... none of it loads the menu... and I'm not getting any errors either, just being pushed back to the grub> prompt.
CaptainMorgan is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
fc6 grub menu.lst won't load jpgold881 Linux - Newbie 7 06-15-2009 01:42 AM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 02:29 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 09:42 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 10:02 AM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM


All times are GMT -5. The time now is 02:49 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration