Announcement

Collapse
No announcement yet.

SOLVED: grub problem (always only starts grub-shell)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SOLVED: grub problem (always only starts grub-shell)

    alright: problem solved.

    i realized i had stage files copied in both /boot/grub and /boot/boot/grub.
    the latter may be the result of running
    grub-install --root-directory=/boot /dev/hda
    as per grub doc.

    solution:
    root> rm -rf /boot/boot
    root> grub
    grub> root (hd0,8)
    grub> setup (hd0)
    grub> ...
    grub> quit
    root> init 6

    et voilà...the menu now comes up as it should.

    cheers.

    ***********************************

    i installed grub.
    i'm trying to set things up, so that i can boot different images from a menu.
    i read the doc.
    thought it was pretty straightforward.
    after reboot, i always find myself into grub-shell.
    i always need to enter all the boot parameters manually.
    would like the menu to come up with the options i put in menu.lst.
    what am i missing?
    cheers!

    /boot is /dev/hda9 ... (hd0,8)
    my kubuntu / is /dev/hda10 ... (hd0,9)

    here's what i did:
    1) apt-get install grub ...
    2) cp /lib/grub/i386-pc/*stage* /boot/grub
    3) prepared /boot/grub/menu.lst (see below)
    4) entered grub-shell and...

    grub> root (hd0,8)
    Filesystem type is xfs, partition type 0x83

    grub> setup (hd0)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/xfs_stage1_5" exists... yes
    Running "embed /boot/grub/xfs_stage1_5 (hd0)"... 18 sectors are embedded.
    succeeded
    Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p (hd0,8)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
    Done.

    grub> quit

    here's my menu.lst
    --- quote ------------------------------------------------------
    # Boot automatically after n secs.
    timeout 10

    # By default, boot the first entry.
    default 0

    # Fallback to the second entry.
    fallback 1

    # Splash
    splashimage=(hd0,8)/grub/splashimages/kubuntucrystal.xpm.gz

    # Images
    title Ubuntu, kernel 2.6.15-23-386 Default
    root (hd0,8)
    kernel /vmlinuz root=/dev/hda10 ro quiet splash vga=791
    initrd /initrd.img
    savedefault
    boot

    title Ubuntu, kernel 2.6.15-23-386 Default (recovery mode)
    root (hd0,8)
    kernel /vmlinuz root=/dev/hda10 ro single
    initrd /initrd.img
    boot
    --- unquote ------------------------------------------------------
Working...
X