Grub2 problems

Alan McKay alan.mckay at gmail.com
Wed Apr 10 19:40:41 UTC 2013


Hey folks,

So I wanted to resize my root LVM which requires a reboot into a LIve CD.
All went well - and while I was in there I wanted to rename it too
since now that I've decided to use this machine for virtualization it
makes sense to have the LV's named with the name of the domX in the
name.   So I renamed it from LogVol01 to Dom0LV01

And I followed these instructions to update grub :
http://askubuntu.com/questions/145241/how-do-i-run-update-grub-from-a-livecd

sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo mount /dev/sdaX /mnt/boot
sudo chroot /mnt
sudo update-grub

In my case it is not sdaX it is an mdadm RAID1.  No biggie.  It
worked.  I verified that /mnt/dom0root/boot/grub/grub.cfg had all
references to the new names.  Great.   Reboot and grub complains about
the old names.  Can't boot.

So I boot the Live CD again and verify it all and the new names are
there!   WTF?

The only thing I can think of is that grub still has the old info on
one or both of the physical drives in the RAID1 in addition to on the
md device or something like that.

Any other ideas?

I know I could always just go rename my LVs back to what they were but
I want to figure this out.


--
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"




More information about the ubuntu-users mailing list