You are not logged in.

#1 2008-06-06 13:29:00

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Grub Prompt

I was updating my menu.lst file  and then thought I had to run grub-install so I ran the following command

sudo grub-install --root-directory=/boot hd0

No Errors.

But when I rebooted I was presented not with my menu.lst, but the GRUB prompt.

I manually ran the menu.lst commands into grub and then booted successfully.

But every time that I reboot I get the grub prompt.

I have a separate boot partition on /dev/sda1 (I only have one hardisk).

Offline

#2 2008-06-06 14:20:31

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Grub Prompt

Firstly, you don't have to run grub-install after editing menu.lst.

If anything is displayed before the grub prompt appears, post it, along with your menu.lst and your partition table.

And just for clarity - entering commands at the grub prompt has no effect on menu.lst.

Offline

#3 2008-06-06 14:40:09

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Grub Prompt

Firstly, you don't have to run grub-install after editing menu.lst. -- I know that now . . .

# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS 
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/hda        (hd0)
#  /dev/hdb2       (hd1,1)
#  /dev/hda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+

# general configuration:
timeout   5
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro vga=773
initrd /kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26-fallback.img

# (1) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1
/dev/sda3 on / type ext3 (rw)
none on /dev type ramfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext2 (rw)
/dev/sda4 on /home type ext3 (rw)

I do understand about the grub prompt. I am becoming better and better at it.

Offline

#4 2008-06-06 17:06:24

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Grub Prompt

I figured it out.

My problems first started by following the arch wiki . . . GRUB Install

The wiki states:

"If you have a separate boot partition mounted at /boot, do one of the following"

grub-install --root-directory=/boot '(hd0)'

This is wrong, by running the exact command above I created a second boot directory under my "real" boot directory

/boot/boot/grub

Obviously my menu.lst would not be in the new boot directory. As soon as I moved my menu.lst file into /boot/boot/grub it began to work.

I then moved the files and directories around a bit, and then ran the correct command

grub-install hd0

Then rebooted. This command worked perfectly(as it should).

I am changing the wiki page (linked above) to fix this error. If I have come to the wrong conclusions please feel free to re-edit the wiki.

Thanks everybody, here and on irc for the help.

Offline

Board footer

Powered by FluxBB