[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

grub2; unknown command initrd



I have debian 5 on /dev/sda1 and ubuntu 10.04 on /dev/sda3

here are my grub.cfg
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --fs-uuid --set da13d632-e65a-4128-9b06-0ec24a5d390f
if font /usr/share/grub/ascii.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,1)
search --fs-uuid --set da13d632-e65a-4128-9b06-0ec24a5d390f
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.26-2-amd64" {
set root=(hd0,1)
search --fs-uuid --set da13d632-e65a-4128-9b06-0ec24a5d390f
linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=da13d632-e65a-4128-9b06-0ec24a5d390f ro  
initrd /boot/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-2-amd64 (single-user mode)" {
set root=(hd0,1)
search --fs-uuid --set da13d632-e65a-4128-9b06-0ec24a5d390f
linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=da13d632-e65a-4128-9b06-0ec24a5d390f ro single 
initrd /boot/initrd.img-2.6.26-2-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-amd64" {
set root=(hd0,1)
search --fs-uuid --set da13d632-e65a-4128-9b06-0ec24a5d390f
linux /boot/vmlinuz-2.6.26-1-amd64 root=UUID=da13d632-e65a-4128-9b06-0ec24a5d390f ro  
initrd /boot/initrd.img-2.6.26-1-amd64
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-amd64 (single-user mode)" {
set root=(hd0,1)
search --fs-uuid --set da13d632-e65a-4128-9b06-0ec24a5d390f
linux /boot/vmlinuz-2.6.26-1-amd64 root=UUID=da13d632-e65a-4128-9b06-0ec24a5d390f ro single 
initrd /boot/initrd.img-2.6.26-1-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries

menuentry "Ubuntu, with Linux 2.6.32-15-generic" {
        recordfail
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 76fe9a67-1168-4154-b994-4b466e92f7df
linux /boot/vmlinuz-2.6.32-15-generic root=UUID=76fe9a67-1168-4154-b994-4b466e92f7df ro   quiet splash
initrd /boot/initrd.img-2.6.32-15-generic
}
menuentry "Ubuntu, with Linux 2.6.32-15-generic (recovery mode)" {
        recordfail
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 76fe9a67-1168-4154-b994-4b466e92f7df
echo Loading Linux 2.6.32-15-generic ...
linux /boot/vmlinuz-2.6.32-15-generic root=UUID=76fe9a67-1168-4154-b994-4b466e92f7df ro single 
echo Loading initial ramdisk ...
initrd /boot/initrd.img-2.6.32-15-generic
}

### END /etc/grub.d/40_custom ###

whenever i choose to boot ubuntu, i got "unknown comand 'initrd' " but it is fine when i boot debian but not after i failed to boot ubuntu, debian would fail to boot too with the same message. How do i go about this?

--
Regards,

Umarzuki Mochlis
http://debmal.my

Reply to: