Sie sind nicht angemeldet.

1

22.06.2005, 19:16

grub macht kein menu

Moin

Mein Grub gibt mir bei booten immer nur die Shell und nicht das Menu. Das schlimme ist das ich keine Ahnung habe warum das so ist. Hier mal nen kleiner Auszug aus den relevanten Dateien:

/boot/grub/grub.conf:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Fallback to the second entry.
#fallback 1

# For booting gent00
title  Gentoo 2.6.11-r11
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r11 root=/dev/hda2 vga=792


title  Gentoo 2.6.11-r9
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r9-vpn root=/dev/hda2 vga=792
#initrd /initrd.img


/etc/fstab:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to 
# switch between notail and tail freely.

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1               /boot           ext2            defaults,noatime1 2
/dev/hda2               /               reiserfs        noatime         0 1
/dev/hda3               /home           reiserfs        defaults        0 0
/dev/hda6               none            swap            sw              0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). 
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults        0 0


ls -l /boot/grub/menu.lst

Quellcode

1
lrwxrwxrwx  1 root root 9 22. Jun 18:38 /boot/grub/menu.lst -> grub.conf


Hab sogar schon grub und /boot/grub gelöscht und danach alles neu gebaut und eingerichtet.

Das einzige was ich noch nich probiert habe is den MBR komplett zu löschen und dann grub neu zu installieren, glaube aber das hat auch keine Wirkung.

Weiß jemand evtl noch was anderes? Permanent alles von Hand in die grub-shell tippen damit das system bootet nervt irgendwie.

Ach ja und ich benutze udev...aber ich glaube das macht keinen großen unterschied, weils mit devfsd auch schon nich ging.

MfG

MueLLe
Yes, maybe life sucks! But at least I don't have to use Windows!

2

22.06.2005, 19:46

grub macht kein menü

Hallo MueLLe,

also, ich bin zwar kein grub-Experte, aber auf Anhieb würde ich sagen:

Bei

Quellcode

1
title Gentoo 2.6.11-r11
müsste es eigentlich

Quellcode

1
title =Gentoo 2.6.11-r11
heissen. (Das "=" Gleichheitszeichen fehlt).

Desweiteren hast Du bei der Zeile

Quellcode

1
kernel /kernel-2.6.11-gentoo-r9-vpn root=/dev/hda2 vga=792
hd(0,0) vergessen einzufügen. Also:

Quellcode

1
kernel hd(0,0)/kernel-2.6.11-gentoo-r9-vpn root=/dev/hda2 vga=792


Ich hoffe, das hilft!

Viele Grüsse,
BigFish
Where there's a will, there's a way.

amielke

unregistriert

3

22.06.2005, 19:54

hd(0,0) vergessen einzufügen. Also:
code:


kernel hd(0,0)/kernel-2.6.11-gentoo-r9-vpn root=/dev/hda2 vga=792




das hd(0,0) ist nicht zwingend notwendig sollte auch so gehen, so lange von hd0,0 gebootet wird.

gruß Andreas

4

22.06.2005, 20:24

Hmm ok werd ich beides mal versuchen.
nur auf meinem Laptop hab ich auch gentoo und auch grub und eigentlich die gleiche config, und da funzt das menu auch.
...obwohl ich seh grad das ich da das Gleichzeichen hinter title habe.
Ich teste das Morgen mal und werd mich denn nochma melden.


Bis denne

MueLLe
Yes, maybe life sucks! But at least I don't have to use Windows!

amielke

unregistriert

5

23.06.2005, 18:52

Hallo,

kurze frage, hast Du den Grub auch installiert ??

grub-install /dev/hda

6

24.06.2005, 13:36

Wenn ja, war das vom selben System? Mach einfach noch einen grub-install!
AMD Sempron 2200+
768 MB RAM
gentoo-sources-2.6.16-r4 + reiser4 patch

My Projects:
Gentoo Configurations Auto Cleaner

7

24.06.2005, 14:36

So...
hab das mit title geändert...erfolglos.

Das mit

Quellcode

1
kernel (hd0,0)/kernel...
macht eigentlich keinen Unterschied, da ich ja mittels

Quellcode

1
root (hd0,0)
schon impliziere das / = (hd0,0) ist. Ich habs trotzdem erfolglos probiert :(

Natürlich ist der grub installiert, sonst würd ich ja nich mal in die grub-shell kommen.
Ein grub-install, bzw in der grub-shell

Quellcode

1
2
root (hd0,0)
setup (hd0)
ändert auch nix.

Ich glaub vorm nächsten reboot werd ich mal ein

Quellcode

1
2
$ dd if=/dev/zero of=/dev/hda bs=446 count=1
$ grub-install --no-floppy /dev/hda

ausführen und gucken ob es was bringt

Bis denne
MueLLe
Yes, maybe life sucks! But at least I don't have to use Windows!

amielke

unregistriert

8

24.06.2005, 16:50

hallo,

hast Du auf deiner Festplatte auch das Boot-Flag gesetzt ??