Grub and ubuntu

Karl Larsen k5di at zianet.com
Sun Mar 16 12:03:05 UTC 2008


    I just discovered a bad situation. Go back a few weeks when I used 
dd to copy my ubuntu from /dev/hda2 to /dev/hda8 and I changed the root 
calls in menu.lst so grub will boot the copied version on /dev/hda8. It 
seemed to work.

    But noticed when I used df that it said it was using /dev/hda2. I 
wondered why df was wrong.

    I learned yesterday that the grub call below was booting /dev/hda2 
instead of /dev/hda8 as it is expected to.


title           Ubuntu 7.10, kernel 2.6.22-14-generic
root            (hd0,7)
kernel          /boot/vmlinuz-2.6.22-14-generic 
root=UUID=a9c1cb61-ddfd-44f6-88b
0-6dc976daf9ca ro quiet splash
initrd          /boot/initrd.img-2.6.22-14-generic

For some reason this was booting /dev/hda2 which is a mystery to me.

    When I decided to delete the ubuntu on /dev/hda2 even stranger 
things happened. I now look at menu.lst and it has NO instructions on 
where to find kernel! The whole thing is # out.

    So I need to believe df and fix a problem right away. My fix is not 
good although it seems to work. I think ubuntu changed the menu.lst and 
made a menu.lst.old which now exists.

    I think it must be the darn UUID label that has /dev/hda2 within it. 
How do I change this?

Karl

-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
   PGP 4208 4D6E 595F 22B9 FF1C  ECB6 4A3C 2C54 FE23 53A7





More information about the ubuntu-users mailing list