LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Crypted root on LVM does not boot (https://www.linuxquestions.org/questions/slackware-14/crypted-root-on-lvm-does-not-boot-4175427499/)

T3slider 09-17-2012 07:16 PM

You're missing a line in your lilo.conf file specifying the initrd. Boot with your install CD, mount your encrypted+unencrypted partitions (mount /dev/sda1 under /boot since that's what you have in your lilo.conf file), mount /proc and /sys (and maybe `mount --bind` /dev) , chroot into the system and run lilo. Your lilo.conf file should look like this:
Code:

image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  root = /dev/cryptvg/root
  label = Slackbox
  read-only


funboy 09-17-2012 07:44 PM

My kernel is 2.6.37.6-smp that's why I' executing so.
I found one of my mistakes, where is my mind I forgot about:
initrd=/boot/initrd.gz

Now I'm getting: Fatal:Linux experimental device 0x04x needs to be defined
the errors are the same but I think I'm close to it : )
But I'm really sleeping at the moment. Have a good night and thank you very much for your efforts. I'm really appreciating it.
Long live Slackware!

fdeak 09-18-2012 12:21 AM

Quote:

Originally Posted by funboy (Post 4782745)
Because I chroot-ed the my /mnt/cryptslack I copied the generated initrd.gz to the first unencripted partition - /dev/sda1 - where is actually my lilo bootloader.
When I run lilo I recieve one:
Fatal: Linux experimental device 0x04x needs to be defined

I think it is useless to reboot (and hope it will be good) until you see this when executing lilo.

Have you got the same error message if you do the following?

mount <your_root_dev> /mnt/hd
mount -o bind /dev/ /mnt/hd/dev
mount -o bind /sys/ /mnt/hd/sys
mount -o bind /proc/ /mnt/hd/proc
chroot /mnt/hd
mount /boot
lilo

fdeak 09-18-2012 12:32 AM

One thing I would try is to make a new install in a virtual machine (kvm, virtualbox) - if you have a capable machine.

I would open the mentioned doc, and follow the steps one by one. It's enough to install a minimal slackware
with a, ap, l categories. You can make a full test in a few minutes.

If it succeeds you can do some things better/different.

fdeak

funboy 09-18-2012 06:50 PM

Hi all,

I did not mentioned that I'm using virtualbox for this experiment. I also added the mptspi:shpchp to the initrd but still no succes.
I will try to change the /boot fs type to ext2. I've strictly follow the steps, provided by the txt in the installation CD.

Thank you for your help!


All times are GMT -5. The time now is 07:20 AM.