[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] pygrub lvm partition & grub.cfg question
I install a domU using:Â During the install I see the partition map as: ~ # sfdisk -d /dev/sda Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. # partition table of /dev/sda
unit: sectors /dev/sda1 : start= Â Â 2048, size= Â9226240, Id=83 /dev/sda2 : start= Â9230334, size= Â 532482, Id= 5 /dev/sda3 : start= Â Â Â Â0, size= Â Â Â Â0, Id= 0
/dev/sda4 : start= Â Â Â Â0, size= Â Â Â Â0, Id= 0 /dev/sda5 : start= Â9230336, size= Â 532480, Id=82 sda1 = / sda5 = swap so far so good.
After running partprobe, I see the embedded partitions: brw-rw---- 1 root disk 250, Â4 Jul 10 12:06 system-dpm_0 brw-rw---- 1 root disk 250, Â8 Jul 10 09:25 system-dpm_0p1
brw-rw---- 1 root disk 250, Â9 Jul 10 09:25 system-dpm_0p2 brw-rw---- 1 root disk 250, 10 Jul 10 09:25 system-dpm_0p5 Still OK. Now it gets weird. I mount the domU / to edit grub.cfg:
# mount /dev/mapper/system-dpm_0p1 /mnt/dpm # vi /mnt/dpm/boot/grub/grub.cfg -- add a new boot entry -- # umount /mnt/dpm pygrub /dev/mapper/dpm_0:
ÂÂ ÂpyGRUB Âversion 0.6 Ââââââââââââââââââââââââââ Ââ dpm-domu , with Linux 2.6.32.16 Â Â Â ÂÂ The 2nd boot entry is missing - why is it not seeing the embedded partition?
But if I run pygrub /dev/mapper/dpm_0p1, I see the new boot entry:: ÂÂ ÂpyGRUB Âversion 0.6 Ââââââââââââââââââââââââââ
Ââ dpm-domu , with Linux 2.6.32.16Â Ââ dpm-domu , with Linux 2.6.32 Â Â Â Shouldn't pygrub see the 2nd boot entry when pointed at the lvm partition /dev/mapper/system-dpm_0Â
as opposed to the embedded partitionÂpygrub /dev/mapper/dpm_0p1 ? Where is the second copy of the grub.cfg? I thought there was no boot sector grub.cfg anymore. Is that not the case? -Bruce
_______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |