I just changed both my disks, 2 SATA drives. Then I installed Windows on /dev/sda and Karmic on /dev/sdb. All worked well.
Then I added a partition on sda and installed a second Karmic (backup) there. It also worked well.
Then I booted Gparted and added a partition at the end of /deb/sdb.
Now I can boot the new Kubuntu on /dev/sda, but when I pick the one on /dev/sdb in Grub, I get the above error: You need to load the kernel first.
I don't know if the problem came about because of the additional Kubuntu system of the added partition.
I suppose I am in Grub2, but I have managed to stay fairly ignorant of Grub and its workings ... up til now.
Here is my grub.cfg:
/boot/grub$ cat grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 4556eed5-9fca-40d7-a19c-bc21790f52bc
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 4556eed5-9fca-40d7-a19c-bc21790f52bc
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4556eed5-9fca-40d7-a19c-bc21790f52bc ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 4556eed5-9fca-40d7-a19c-bc21790f52bc
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4556eed5-9fca-40d7-a19c-bc21790f52bc ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set a618a12f18a0ff83
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode) (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
Another post made me think this might be important, but I do not know what to make of it:
/boot/grub$ sudo blkid -c /dev/null
/dev/sda1: UUID="A618A12F18A0FF83" TYPE="ntfs"
/dev/sda2: UUID="4556eed5-9fca-40d7-a19c-bc21790f52bc" TYPE="ext3"
/dev/sda3: UUID="bbf1b63a-bc8e-4716-b64c-96304e2fa73f" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: UUID="3a6e6e4e-c7e0-4ba0-8ca2-ba6b16f30fc4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: UUID="33ce7944-af41-4bad-bddb-2f82a6cf1d13" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: UUID="ff960a6d-637c-4b15-b606-7d9de4107582" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: UUID="1e181bc6-2eac-4433-adb8-59cc50d84075" TYPE="ext3"
/dev/sdb3: UUID="0c26d059-2639-4f77-bf7f-6dc30e402854" TYPE="swap"
/dev/sdb5: UUID="6900cfe5-d288-4cfb-8918-bd5613ddc0f1" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb6: UUID="9010e109-01f1-4c7c-a04f-80fc6bdfef59" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb7: UUID="49937d79-2912-4803-b397-b9eef0794050" SEC_TYPE="ext2" TYPE="ext3"
Then I added a partition on sda and installed a second Karmic (backup) there. It also worked well.
Then I booted Gparted and added a partition at the end of /deb/sdb.
Now I can boot the new Kubuntu on /dev/sda, but when I pick the one on /dev/sdb in Grub, I get the above error: You need to load the kernel first.
I don't know if the problem came about because of the additional Kubuntu system of the added partition.
I suppose I am in Grub2, but I have managed to stay fairly ignorant of Grub and its workings ... up til now.
Here is my grub.cfg:
/boot/grub$ cat grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 4556eed5-9fca-40d7-a19c-bc21790f52bc
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 4556eed5-9fca-40d7-a19c-bc21790f52bc
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4556eed5-9fca-40d7-a19c-bc21790f52bc ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set 4556eed5-9fca-40d7-a19c-bc21790f52bc
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4556eed5-9fca-40d7-a19c-bc21790f52bc ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set a618a12f18a0ff83
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode) (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sdb2)" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 1e181bc6-2eac-4433-adb8-59cc50d84075
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=1e181bc6-2eac-4433-adb8-59cc50d84075 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
Another post made me think this might be important, but I do not know what to make of it:
/boot/grub$ sudo blkid -c /dev/null
/dev/sda1: UUID="A618A12F18A0FF83" TYPE="ntfs"
/dev/sda2: UUID="4556eed5-9fca-40d7-a19c-bc21790f52bc" TYPE="ext3"
/dev/sda3: UUID="bbf1b63a-bc8e-4716-b64c-96304e2fa73f" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: UUID="3a6e6e4e-c7e0-4ba0-8ca2-ba6b16f30fc4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: UUID="33ce7944-af41-4bad-bddb-2f82a6cf1d13" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: UUID="ff960a6d-637c-4b15-b606-7d9de4107582" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: UUID="1e181bc6-2eac-4433-adb8-59cc50d84075" TYPE="ext3"
/dev/sdb3: UUID="0c26d059-2639-4f77-bf7f-6dc30e402854" TYPE="swap"
/dev/sdb5: UUID="6900cfe5-d288-4cfb-8918-bd5613ddc0f1" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb6: UUID="9010e109-01f1-4c7c-a04f-80fc6bdfef59" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb7: UUID="49937d79-2912-4803-b397-b9eef0794050" SEC_TYPE="ext2" TYPE="ext3"
Comment