kenyee
December 7th, 2011, 02:32 AM
Anyone have tips on how to debug the boot process?
I think I shot myself in the foot migrating my root (11.10) over to MDRAID/LVM.
The original root was in two partitions...one /boot and the rest for root.
I added a 2nd disk, created two mdraid partitions (with the new drive but not the old) on it for /boot and lvm.
Then mounted up everything in a new /mnt/root dir, chroot'd to it, did an update-initramfs, then update-grub w/o errors.
It boots up, I can choose the kernel in the grub menu, checked the boot settings (though the set root command seems to be using a UUID instead of just "(md0)" but the vmlinux kernel is pointed to /dev/mapper/datavg-root as expected) and can't find anything wrong.
I tried adding "set debug=all" and got rid of "quiet nosplash" to see how far it got and it looks like it found the mdraid array, creates enough memory for the initial ramdisk, then jumps to it and....blank screen :-P
I'm surprised I can't even boot to the non-LVM kernel (it's on /dev/sda2 according to the grub menu).
Any suggestions? I think update-initramfs failed to create a good boot ramdisk image is the only guess I have at this point...
I could reinstall, but don't want to lose all the configuration I've done..I've done this before w/ a Debian box, but never hit the blank screen issue...
I think I shot myself in the foot migrating my root (11.10) over to MDRAID/LVM.
The original root was in two partitions...one /boot and the rest for root.
I added a 2nd disk, created two mdraid partitions (with the new drive but not the old) on it for /boot and lvm.
Then mounted up everything in a new /mnt/root dir, chroot'd to it, did an update-initramfs, then update-grub w/o errors.
It boots up, I can choose the kernel in the grub menu, checked the boot settings (though the set root command seems to be using a UUID instead of just "(md0)" but the vmlinux kernel is pointed to /dev/mapper/datavg-root as expected) and can't find anything wrong.
I tried adding "set debug=all" and got rid of "quiet nosplash" to see how far it got and it looks like it found the mdraid array, creates enough memory for the initial ramdisk, then jumps to it and....blank screen :-P
I'm surprised I can't even boot to the non-LVM kernel (it's on /dev/sda2 according to the grub menu).
Any suggestions? I think update-initramfs failed to create a good boot ramdisk image is the only guess I have at this point...
I could reinstall, but don't want to lose all the configuration I've done..I've done this before w/ a Debian box, but never hit the blank screen issue...