You are not logged in.

#1 2009-08-09 00:56:36

mrpringle
Member
Registered: 2009-07-11
Posts: 74

GRUB2 won't boot

Hi,
GRUB2 doesn't want to load my grub.cfg file when I boot.
None of my menu entries appear. Only the default arch linux entry.

Is there anything I've missed.

Here is /boot/grub/grub.cfg.

# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg

# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,2)
#  /dev/sda3       (hd0,3)
#

# Timeout for menu
set timeout=5

# Set default boot entry as Entry 0
set default=0

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,5)
linux /vmlinuz26 root=/dev/sda7 ro
initrd /kernel26.img
}

# (1) Arch Linux Fallback
menuentry "Arch Linux Fallback" {
set root=(hd0,5)
linux /vmlinuz26 root=/dev/sda7 ro
initrd /kernel26-fallback.img
}

Offline

#2 2009-08-09 01:23:27

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: GRUB2 won't boot

I'm confused. What other menu entries? You have the two default Arch entries listed above.

Offline

#3 2009-08-09 01:28:03

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: GRUB2 won't boot

When grub starts it comes up with a single menu entry called Arch Linux, and if I click boot it say "error: you need to load the kernel first"
So I guess the first problem is my Fallback entry isn't appearing.

If I edit (by pressing e in grub) the Arch Linux entry it has the following:

set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda1 ro
initrd /kernel26.img

Where did it get this entry from? Not my grub.cfg.

Currently to boot my PC I need to change the boot and root partitions.

Offline

#4 2009-08-09 01:40:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: GRUB2 won't boot

I understand now.

I don't remember what I did after I made changes to the file, but here's mine anyway. Hope it helps:

# Timeout for menu
set timeout=5

# Set default boot entry as Entry 0
set default=0

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda3 ro vga=792 logo.nologo
initrd /kernel26.img
}

# (1) Arch Linux
menuentry "Fallback" {
set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26-fallback.img
}

Offline

#5 2009-08-09 06:30:57

pjnsmb
Member
From: Solihull.U.K
Registered: 2009-02-05
Posts: 29

Re: GRUB2 won't boot

mrpringle wrote:

When grub starts it comes up with a single menu entry called Arch Linux, and if I click boot it say "error: you need to load the kernel first"
So I guess the first problem is my Fallback entry isn't appearing.

If I edit (by pressing e in grub) the Arch Linux entry it has the following:

set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda1 ro
initrd /kernel26.img

Where did it get this entry from? Not my grub.cfg.

Currently to boot my PC I need to change the boot and root partitions.

from;

http://wiki.archlinux.org/index.php/Gru … oot_Record

If you do not have a separate boot-partition, /boot must be added to grub.cfg. Example:

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,1)
linux /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/kernel26.img
}


It sounds like you do have a separate /boot partition so the above is not the problem ...........

but remembering that Grub2 has a different numbering convention what are you having to change boot and root to ?

At the moment it looks like you are not progressing past the initial boot screen to see your choice of  "Arch" or "Fallback"


pjnsmb

Man is still the most extraordinary computer of all.
Kennedy, John F.

Offline

#6 2009-08-09 13:32:20

mrpringle
Member
Registered: 2009-07-11
Posts: 74

Re: GRUB2 won't boot

I found the problem. It was my fault of course. When I ran grub-install I didn't have the /boot partition mounted and hence the grub files weren't being installed on the root partition.

It took me a while to figure out :-)

Offline

Board footer

Powered by FluxBB