bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB and menu interface


From: Florian Hatat
Subject: Re: GRUB and menu interface
Date: Wed, 28 Feb 2001 18:41:37 +0100
User-agent: Mutt/1.2.2i

Dans son message du mercredi 28 février 2001, Ivan Passos écrivait:
> My guess is that this is happening because the /boot directory is mounted
> in a partition different from the root partition.

You're right.

> - If the latter is the case, what can I do to fix the problem (removing 
>   /dev/hda1 and making /boot local to /dev/hda2 is not an option :) ??
> I hope such a simple thing is not enough to kill this GRUB 
> functionality ...

GRUB loads the file /boot/grub/menu.lst. If it fails, then the command
line is displayed.
In your case, menu.lst is in /grub/menu.lst for GRUB, there is no
/boot/grub/menu.lst file then.

There are two solutions:
- move everything in /boot/boot/grub/ directory (it's the easiest
solution, but not the best !)
- tell GRUB to search /grub/menu.lst instead of /boot/grub/menu.lst
First, your /boot/grub directory should look like this :
# ls -al /boot/grub/
total 123
drwxr-----   2 root     root         1024 jan 12 21:12 .
drwxr-----   6 root     root         1024 jan 12 20:43 ..
-rw-r-----   1 root     root         7708 jan 12 20:29 e2fs_stage1_5
-rw-r-----   1 root     root         7244 jan 12 20:29 fat_stage1_5
-rw-r-----   1 root     root         6684 jan 12 20:29 ffs_stage1_5
-rw-r-----   1 root     root          349 jan 12 21:12 menu.lst
-rw-r-----   1 root     root         6908 jan 12 20:29 minix_stage1_5
-rw-r-----   1 root     root         9308 jan 12 20:29 reiserfs_stage1_5
-rw-r-----   1 root     root          512 jan 12 20:29 stage1
-rw-r-----   1 root     root        79648 jan 12 20:29 stage2

Some *stage1_5 can be missing, but you need stage1, stage2 and it's
better to have e2fs_stage1_5 if /boot filesystem is ext2.

Restart your computer. You should see the "grub>" prompt.
Type:
root (hd0,0)
setup (hd0)

And now everything should work, because the "setup" command /knows/
that many computers have a separate /boot partition.

I hope this long answer will help, but you could have found your
solution in either the manual, or the FAQ. You should read these
next time :-).

> Otherwise, GRUB is not that good after all, IMHO. ;)

GRUB is the best bootloader, IMHO.

-- 
Florian,
xbill level 21, 22674
http://www.linux-france.org/article/mininet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]