LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 12.2 + RAID-1 + LVM + LUKS encrypted root (https://www.linuxquestions.org/questions/slackware-14/slackware-12-2-raid-1-lvm-luks-encrypted-root-691282/)

smaddox 12-15-2009 09:04 PM

related
 
I'm using LVM over software RAID 1, and I just spent 2 hours trying to recover from the "Please append a correct "root=" boot option" kernel panic after a kernel upgrade.

I thought I would post the solution in case anyone else has a similar problem.

If you run `lilo` and it says something about not being able to boot `non-linear` partitions, then you are having the same problem. It turns out that lilo can't boot to a 'non-linear' partition (AKA a partition with snapshots made of it), which turned out to be the problem. I was making snapshots before the upgrade in case I wanted to revert afterwards. Well, this isn't allowed.

I was able to boot in by hitting TAB during lilo boot-strapping and selecting LinuxOLD as the boot image. Alternatively, you should be able to get a shell using a recover disc.

The solution:
1. Remove the snapshots (on boot partition and probably root partition, too)
2. Run `lilo` so that it can load the config. If it gives no errors, you should be home free. Restart and see if it works.

mostlyharmless 12-16-2009 10:21 AM

Interesting, but FYI GRUB 0.97 has no problem with "non-linear" partitions, so you can keep your snapshots.

smaddox 12-16-2009 01:40 PM

Does GRUB do LVM on RAID?
 
Does GRUB 0.97 do LVM on RAID? For some reason the installer used LILO. I assumed it was for a good reason, but if GRUB works, I would prefer it, anyways.

mostlyharmless 12-16-2009 01:49 PM

Grub does LVM on RAID with LUKS encryption and dmraid too if you need it too, all at the same time. :)

smaddox 12-16-2009 01:53 PM

Awesome
 
Awesome. Now, I don't suppose you could tell me how to switch it over? If it's just simply installing and configuring GRUB I can probably figure it out, but do you have to do something to have it automatically update the bootlist on a kernel upgrade?

mostlyharmless 12-17-2009 11:25 AM

I didn't do anything special, but I run Slackware so if and when I ever do a kernel upgrade, it's manual and so is my tinkering with menu.lst. Actually one of my gripes with distros like Ubuntu is that it is so very easy to hose your system with all those frequent kernel upgrades. But I digress. Just install it as usual, there should be a ton of HOWTOs out there. Check out google looking particularly at grub and raid and ubuntu, it might help you not trip over anything. Be careful with the disk numbers according to BIOS and according to grub and according to ubuntu - they can be different.


All times are GMT -5. The time now is 10:56 PM.