On ihan pieniä ongelmia saada tuo grub2 toimimaan kunnolla. Päivitin grubin grub2:een koska hommasin uudeksi roottilevyksi SSD-levyn ja pyhänä aikeena oli saada siitä (ext4) levy ja grub toimimaan jne.
Edestakaisen tappelun jälkeen tilanne on se, että tuo ssd-levy on mountattuna root-partitioksi, mutta vanha juurilevy on oltava koneessa kiinni että saan bootattua.
- Jos ajan grub-mkconfig:in, niin /boot/grub/grub.cfg:n header-osuuteen tulee seuraava entry:
### 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=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
Siitä huolimatta että tuo on sen entisen juurikovalevyn UUID:
ll /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 160 2009-12-28 19:22 .
drwxr-xr-x 5 root root 100 2009-12-28 19:22 ..
lrwxrwxrwx 1 root root 10 2009-12-28 19:22 16174387-d37d-4d7a-8ffe-e2a0ca170a32 -> ../../sdc3
lrwxrwxrwx 1 root root 10 2009-12-28 19:22 2c9fc6db-1b63-4896-a9e5-482d0a988093 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2009-12-28 19:22 53d89a08-74fc-4900-8ceb-e5025429e4a0 -> ../../sdd1
lrwxrwxrwx 1 root root 9 2009-12-28 19:22 5bcb45fb-8945-4eaa-b075-f2ed00c7fed5 -> ../../sda
lrwxrwxrwx 1 root root 9 2009-12-28 19:22 73b81c3b-bac4-4373-b81c-5b48257280ce -> ../../sdb
lrwxrwxrwx 1 root root 10 2009-12-28 19:22 f3f41ed1-09b6-4696-9a27-002525b5a66a -> ../../sdd5
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 9232600 6189880 2573728 71% /
udev 1030668 356 1030312 1% /dev
none 1030668 136 1030532 1% /dev/shm
tmpfs 1030668 8832 1021836 1% /tmp
none 1030668 232 1030436 1% /var/run
none 1030668 0 1030668 0% /var/lock
none 1030668 0 1030668 0% /lib/init/rw
/dev/sdc3 20515836 1856740 17616948 10% /home
/dev/sda 480721640 52135932 404166380 12% /media/disk1
tmpfs 1030668 0 1030668 0% /var/tmp
/dev/sdb 480721640 155472488 300829824 35% /media/disk2
/dev/sdd1 112420772 8136688 98573380 8% /media/old_1
Tuon lisäksi grub.cfg:n boottientryt ovat muutenkin ihan reisillä:
### BEGIN /etc/grub.d/10_linux.alkup ###
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.31-16-generic root=/dev/sdd1 ro nosplash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.31-16-generic root=/dev/sdd1 ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.31-15-generic root=/dev/sdd1 ro nosplash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.31-15-generic root=/dev/sdd1 ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
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=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sdd1 ro nosplash
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=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sdd1 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.28-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.28-16-generic root=/dev/sdd1 ro nosplash
initrd /boot/initrd.img-2.6.28-16-generic
}
menuentry "Ubuntu, Linux 2.6.28-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd3,1)
search --no-floppy --fs-uuid --set 53d89a08-74fc-4900-8ceb-e5025429e4a0
linux /boot/vmlinuz-2.6.28-16-generic root=/dev/sdd1 ro single
initrd /boot/initrd.img-2.6.28-16-generic
}
### END /etc/grub.d/10_linux.alkup ###
### 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 "Ubuntu, Linux 2.6.31-16-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro nosplash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro nosplash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro nosplash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.28-16-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.28-16-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro nosplash
initrd /boot/initrd.img-2.6.28-16-generic
}
menuentry "Ubuntu, Linux 2.6.28-16-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.28-16-generic root=UUID=2c9fc6db-1b63-4896-a9e5-
482d0a988093 ro single
initrd /boot/initrd.img-2.6.28-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro nosplash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro nosplash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro nosplash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.28-16-generic (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.28-16-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro nosplash
initrd /boot/initrd.img-2.6.28-16-generic
}
menuentry "Ubuntu, Linux 2.6.28-16-generic (recovery mode) (on /dev/sdc1)" {
insmod ext2
set root=(hd2,1)
search --no-floppy --fs-uuid --set 2c9fc6db-1b63-4896-a9e5-482d0a988093
linux /boot/vmlinuz-2.6.28-16-generic root=UUID=53d89a08-74fc-4900-8ceb-
e5025429e4a0 ro single
initrd /boot/initrd.img-2.6.28-16-generic
}
### END /etc/grub.d/30_os-prober ###
Eli noita UUID:ita ja levyjen osotteita on ristiin ja rastiin. En edes ymmärrä miksi nuo UUID:t ilmestyvät, koska /etc/default/grub:issa on poistettu kommentti rivin GRUB_DISABLE_LINUX_UUID=true
alusta.
/etc/grub -hakemistossa ei ole tiedostoa 10_linux.alkup, mutta kappas vaan, jostain on vaan sellainenkin ylläoleviin entryihin keksitty.
Kerneleitä ei ole tarjolla kuin 31-16 -versio mutta jostain tuo junkki sinne kerääntyy
ls /boot/
abi-2.6.31-16-generic memtest86+.bin
boot System.map-2.6.31-16-generic
config-2.6.31-16-generic vmcoreinfo-2.6.31-16-generic
grub vmlinuz-2.6.31-16-generic
initrd.img-2.6.31-16-generic
Mikä menee pieleen?
- PEtri