You are not logged in.

#1 2009-01-20 10:43:38

gmhafiz
Member
From: Sydney
Registered: 2008-07-19
Posts: 27
Website

[SOLVED] grub2 - error you need to load the linux kernel first

I can boot into windows just fine but ran into this error when I try to boot into archlinux. I've tried both root=/dev/disk/by-uuid/69a3679e-f730-4ccc-8977-c0ef89bdea8a and root=/dev/sda6 but they do not work.

$ sudo fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009e647

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       13416   107763988+   7  HPFS/NTFS
/dev/sda2           13417       38913   204804652+   f  W95 Ext'd (LBA)
/dev/sda5           13417       13678     2104483+  82  Linux swap / Solaris
/dev/sda6           13679       37638   192458668+  83  Linux
/dev/sda7           37639       38913    10241406   83  Linux

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c28df

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       38913   312568641   83  Linux

/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
set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,5)
linux /vmlinuz26 root=/dev/disk/by-uuid/69a3679e-f730-4ccc-8977-c0ef89bdea8a ro
initrd /kernel26.img
}

## (1) Windows
menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}

old menu.lst that worked

# 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,5)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/69a3679e-f730-4ccc-8977-c0ef89bdea8a ro
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,5)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/69a3679e-f730-4ccc-8977-c0ef89bdea8a ro
initrd /boot/kernel26-fallback.img

title        Linux Mint, kernel 2.6.24-16-generic
root        (hd0,6)
kernel        /boot/vmlinuz-2.6.24-16-generic root=/dev/sda7 ro quiet splash
initrd        /boot/initrd.img-2.6.24-16-generic

title        Linux Mint, kernel 2.6.24-16-generic (recovery mode)
root        (hd0,6)
kernel        /boot/vmlinuz-2.6.24-16-generic root=/dev/sda7 ro single
initrd        /boot/initrd.img-2.6.24-16-generic

title        Linux Mint, kernel memtest86+
root        (hd0,6)
kernel        /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title        Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title        Microsoft Windows XP Professional
root        (hd0,0)
savedefault
makeactive
chainloader    +1

# (1) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1

Last edited by gmhafiz (2009-01-20 11:19:29)

Offline

#2 2009-01-20 10:55:59

biagio
Member
From: Florence - Italy
Registered: 2008-02-29
Posts: 49

Re: [SOLVED] grub2 - error you need to load the linux kernel first

look at the difference between the grub.cfg and menu.lst # DEVICE NAME CONVERSIONS
and try:

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,6)
linux /boot/vmlinuz26 root=/dev/disk/by-uuid/69a3679e-f730-4ccc-8977-c0ef89bdea8a ro
initrd /boot/kernel26.img
}

Last edited by biagio (2009-01-20 11:03:28)

Offline

#3 2009-01-20 11:18:51

gmhafiz
Member
From: Sydney
Registered: 2008-07-19
Posts: 27
Website

Re: [SOLVED] grub2 - error you need to load the linux kernel first

I missed that, it works now. Thanks

Offline

Board footer

Powered by FluxBB