Grub and ubuntu
tony.arnold at manchester.ac.uk
Sun Mar 16 18:18:26 UTC 2008
Karl Larsen wrote:
> Tony Arnold wrote:
>> Karl Larsen wrote:
>>> 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
>>> 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.
>> Did you fix up /etc/fstab to mount / from hda8 as well?
> I do not know how to do that. Here is my /etc/fstab:
> # /etc/fstab: static file system information.
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> # /dev/hda8
> UUID=a9c1cb61-ddfd-44f6-88b0-6dc976daf9ca / ext3
> # /dev/hda1
> UUID=7915f630-518c-425b-9fea-0ef07e50d0f9 none swap sw
> # /dev/sda2
> UUID=7d8c37ed-b2ec-4008-a137-f24c6659c5ab none swap sw
> /dev/hdb /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
> LABEL=f7-home /f7home ext3 defaults 1 2
> /dev/hda9 /home ext3 defaults 1 2
> I don't know how to change this:
> UUID=a9c1cb61-ddfd-44f6-88b0-6dc976daf9ca /
sudo vol_id --uuid /dev/hda8
will tell you the partition's uuid that you can cut an dpaste into
/etc/fstab. Partition names, e.g., /dev/hda8, are no longer used in fstab.
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold
More information about the ubuntu-users