GRUB & LVM MBR recovery notes
This is mostly just as a quick reminder to myself, since this has come up twice in the past month while I've been testing out Windows 7 RC and Windows 7 RTM. At least on my (complex) multi-boot laptop setup with LVM, I keep forgetting some of the steps, and thought putting them all in one place, might help others too. They aren't very explanatory, so not for newbies, but hopefully helpful to some.
boot with rescue disk
modprobe dm-mod # load module
lsmod | grep dm # verify module is loaded
pvscan
vgscan
lvscan -D
lvdisplay /dev/sda5 # or whever the lvm is
lvdisplay system # shows the contents of the lvm named "system"
lvscan
mkdir /mnt/root # remember /dev/system/home is usually crypto, don't need it for rescue anyway
mount /dev/system/root /mnt/root
# if above doesn't work, then kind of "reset" everything and try again with the following:
vgscan --mknodes
vgchange -a n # deactivate
vgexport -a
vgimport -a
vgchange -a y #activate
mount /dev/system/root /mnt/root #remember to create /mnt/root dir before mounting
#### GRUB now make changes to /boot/grub/menu.1st as needed (may need to mount /dev/sda6 /mnt/root/boot )
# tried chroot to /mnt/root, but then can't see /dev/sda anymore at all with fdisk -l /dev/sda... weird
#ok, without chroot try:
ln -s /mnt/root/sbin/yast2 /sbin/.
ln -s /mnt/root/etc/grub.conf /etc/.
ln -s /mnt/root/boot /.
grub-install /dev/sda
# now manually unmount everything, and then reboot (without cd), and all should be working... assuming you edited menu.1st correctly of course...

