[xen-tools-discuss] Defining Partitions

Simon Iremonger wiltslug at iremonger.me.uk
Fri Oct 22 19:04:05 CEST 2010


> I'd like to define several partitions, like root , /boot and swap, so I
> I had to remove all occurrences of "/boot" to get the vm booting:
> title           Ubuntu 10.04 LTS
> root            (hd0,0)
> kernel          /boot/vmlinuz-2.6.32-25-server root=/dev/xvda2 ro
> initrd          /boot/initrd.img-2.6.32-25-server
> Is this a bug or did I forget anything?

Think about it.  If this is anything like boting a real machine
   (which I think it is' for these purposes).

When GRUB/pygrub reads the _first_ partition on the
   disk [(hd0,0)] (be it real or xen virtual-disk-partitions)
   it then, in the case of a system with separate /boot
   it then needs to look in the root of that /boot filesystem,
   i.e. /vmlinuz-2.6.32- ....  Whereas with a single /
   filesystem, the /boot/ is needed to look in the right place!

I have seen systems where "ln -s ../ /boot/boot"  has been done
   to create a link to avoid this problem... Typically grub
   willunderstand the relative symlink within the single filesystem
   with no issues.


Hope that makes sense!

--Simon







More information about the xen-tools-discuss mailing list