Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB menu disappeared. Please help.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Sat Jan 22, 2005 11:46 pm    Post subject: GRUB menu disappeared. Please help. Reply with quote

I screwed up my /boot yesterday.
I managed to fix almost everything.

After using the LiveCD to make a new filesystem in /boot. Then following the handbook with grub installation after copying over the kernel to /boot.
I did an emerge -C grub, then emerge grub. Made a new grub conf.
Now when I reboot the system, I get no menu. There is only the grub prompt. If I type in all the commands to boot gentoo, it works. How do I get the menu back?

Quote:
root@gen2 farid # mount /boot/
root@gen2 farid # ls -alF /boot/
total 1713
drwxr-xr-x 4 root root 1024 Jan 23 00:20 ./
drwxr-xr-x 20 root root 456 Jan 21 20:43 ../
-rw-r--r-- 1 root root 641649 Jan 22 23:10 System.map-2.6.10-r1
drwxr-xr-x 3 root root 1024 Jan 23 00:20 boot/
drwxr-xr-x 2 root root 1024 Jan 23 00:18 grub/
-rw-r--r-- 1 root root 1098647 Jan 22 23:10 linux-2.6.10-r1
root@gen2 farid # ls -alF /boot/grub/
total 862
drwxr-xr-x 2 root root 1024 Jan 23 00:18 ./
drwxr-xr-x 4 root root 1024 Jan 23 00:20 ../
-rw-r--r-- 1 root root 11264 Jan 23 00:13 e2fs_stage1_5
-rw-r--r-- 1 root root 10256 Jan 23 00:13 fat_stage1_5
-rw-r--r-- 1 root root 9248 Jan 23 00:13 ffs_stage1_5
-rw-r--r-- 1 root root 455 Jan 23 00:14 grub.conf
-rw-r--r-- 1 root root 1495 Jan 23 00:13 grub.conf.sample
-rw-r--r-- 1 root root 11488 Jan 23 00:13 jfs_stage1_5
lrwxr-xr-x 1 root root 9 Jan 23 00:13 menu.lst -> grub.conf
-rw-r--r-- 1 root root 9632 Jan 23 00:13 minix_stage1_5
-rwxr-xr-x 1 root root 201540 Jan 23 00:13 nbgrub*
-rwxr-xr-x 1 root root 202564 Jan 23 00:13 pxegrub*
-rw-r--r-- 1 root root 12896 Jan 23 00:13 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Jan 23 00:13 splash.xpm.gz
-rw-r--r-- 1 root root 512 Jan 23 00:13 stage1
-rw-r--r-- 1 root root 137004 Jan 23 00:13 stage2
-rwxr-xr-x 1 root root 201636 Jan 23 00:13 stage2.netboot*
-rw-r--r-- 1 root root 8896 Jan 23 00:13 vstafs_stage1_5
-rw-r--r-- 1 root root 12840 Jan 23 00:13 xfs_stage1_5
root@gen2 farid # ls -alF /boot/boot/
total 3
drwxr-xr-x 3 root root 1024 Jan 23 00:20 ./
drwxr-xr-x 4 root root 1024 Jan 23 00:20 ../
drwxr-xr-x 2 root root 1024 Jan 23 00:20 grub/
root@gen2 farid # ls -alF /boot/boot/grub/
total 230
drwxr-xr-x 2 root root 1024 Jan 23 00:20 ./
drwxr-xr-x 3 root root 1024 Jan 23 00:20 ../
-rw-r--r-- 1 root root 64 Jan 23 00:20 device.map
-rw-r--r-- 1 root root 11264 Jan 23 00:20 e2fs_stage1_5
-rw-r--r-- 1 root root 10256 Jan 23 00:20 fat_stage1_5
-rw-r--r-- 1 root root 9248 Jan 23 00:20 ffs_stage1_5
-rw-r--r-- 1 root root 11488 Jan 23 00:20 jfs_stage1_5
-rw-r--r-- 1 root root 9632 Jan 23 00:20 minix_stage1_5
-rw-r--r-- 1 root root 12896 Jan 23 00:20 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Jan 23 00:20 stage1
-rw-r--r-- 1 root root 137004 Jan 23 00:20 stage2
-rw-r--r-- 1 root root 8896 Jan 23 00:20 vstafs_stage1_5
-rw-r--r-- 1 root root 12840 Jan 23 00:20 xfs_stage1_5
root@gen2 farid # cat /boot/grub/grub.conf
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 3
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux linux-2.6.10-r1
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /linux-2.6.10-r1 root=/dev/hda2
root@gen2 farid #
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Jan 23, 2005 12:01 am    Post subject: Reply with quote

dj_farid,

You need to reinstall grub too. Grub cheats for loading. When you install it, it creates a block list of where some of the files in /boot are so that it can use the BIOS to load them. Remaking /boot will have moved them around, so the files will not be where grub is looking.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Sun Jan 23, 2005 12:26 am    Post subject: Reply with quote

I don't understand what you mean.
My /boot partiton got wiped out completely.
I re-made it. emerge -C grub. Emerge grub. New grub.conf. Then "grub-install --root-directory=/boot /dev/hda".

Why does the grub faq talk about /boot/grub/menu.lst? I have always used /boot/grub/grub.conf before as according to the handbook. Is this only for older versions of grub, or something true only for gentoo?


The most important question: How do I fix my menu?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Jan 23, 2005 12:25 pm    Post subject: Reply with quote

dj_farid,

It looks like you have done all the right things. The menu.lst symbolic link points to grub.conf and you should not need it. (Thats menul.Lst with a lowercase 'L'). Give it a try though.

When you install grub it puts several files into /boot/grub, using the ordinary filesystem manipulation commands, supported by the kernel.
When it reads these files at boot time, the kernel is not loaded and the filesystem is not mounted. Grub has to make other arrangements.

You appear to have too many boots and it looks like they are both real. The actual boot should contain a symbolic link to . thats back to itself. You said:-
Quote:
root@gen2 farid # ls -alF /boot/
total 1713
drwxr-xr-x 4 root root 1024 Jan 23 00:20 ./
drwxr-xr-x 20 root root 456 Jan 21 20:43 ../
-rw-r--r-- 1 root root 641649 Jan 22 23:10 System.map-2.6.10-r1
drwxr-xr-x 3 root root 1024 Jan 23 00:20 boot/
drwxr-xr-x 2 root root 1024 Jan 23 00:18 grub/
-rw-r--r-- 1 root root 1098647 Jan 22 23:10 linux-2.6.10-r1


drwxr-xr-x 3 root root 1024 Jan 23 00:20 boot/ should be a symbolic link, or missing altogether. Its no longer clear to me where your grub.conf is?
In /boot/grub/ or in /boot/boot/grub ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Sun Jan 23, 2005 3:27 pm    Post subject: Reply with quote

Yes I thought that I have one boot too much. I tried to reisntall grub one more time, but it makes the same thing. The structure looks like this:
Quote:

/boot/boot/boot/grub
------/grub

I don't understand why it does like it does. My /boot was empty before I installed grub.

I put my grub.conf into /boot/grub
:?:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Jan 23, 2005 5:08 pm    Post subject: Reply with quote

dj_farid,

Here is /boot from one of my systems
Code:
ls /boot -al
total 3679
drwxr-xr-x   4 root root    1024 Jan  2 14:49 .
drwxr-xr-x  19 root root    4096 Jul 15  2004 ..
-rw-r--r--   1 root root       0 Dec 31 19:58 .keep
-rw-r--r--   1 root root  839768 May 31  2004 2.4.20-gentoo-r6
-rw-r--r--   1 root root 1055768 Jan  2 14:49 2.6.10-gentoo-r1
-rw-r--r--   1 root root  989982 Aug 14 15:31 2.6.7-gentoo-r14
lrwxrwxrwx   1 root root       1 Aug 23  2003 boot -> .
-rw-r--r--   1 root root  839768 Aug 25  2003 bzImage
drwxr-xr-x   2 root root    1024 Oct 13 02:21 grub
drwx------   2 root root   12288 Aug 23  2003 lost+found
It contains a symbolic link to itself called boot.
It contains a directory called lost+found which only appears on real partitions. You don't have that on your first post, from which I conclude you installed grub into the directory /boot on your root partition because the boot partition was not mounted.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum