LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   14.1 uefi boot and luks-encrypted lvm problems (https://www.linuxquestions.org/questions/slackware-14/14-1-uefi-boot-and-luks-encrypted-lvm-problems-4175506352/)

ymf331 05-29-2014 01:03 AM

14.1 uefi boot and luks-encrypted lvm problems
 
Hi. I only installed Slackware about a month ago to try out Linux. I liked it and decided to repartition to prevent data loss during future upgrades. That led to google searches that branched out and I'm now in over my head. I think I got everything right up to the initrd.

I have my efi partition, one for /boot, and the lvm one on a gpt. I've encrypted the lvm with cryptsetup and then installed. That's where the abundance of online info seems to become a bit more sparse. I have my /boot with the efi partition mounted, and I made my initrd.gz and moved that and the generic kernel to the Slackware directory in there. I changed elilo.conf like so:

image=vmlinuz-generic-3.10.17
initrd=initrd.gz
root=/dev/system/primary
label=31017
read-only

The mkinitrd was like this:

mkinitrd -c -k 3.10.17 -f ext4 -r /dev/system/primary -m usb-storage:xhci-hcd:usbhid:hid-generic:jbd2:ext4:ext2:vfat:pci-stub:hid:usbhid -C /dev/sda3 -L -u

I found it on the internet in a thread about the problem I now have, only I looked up the modules and took out mbcache. When I rebooted my USB keyboard didn't work right at the point where I enter the luks password. It is lit up though. And it keeps repeating crap about my mouse disconnecting every so often.

This is all probably more or less info than I needed to give. I've no clue where it all went wrong. Can somebody please help? I'd like to not reinstall again if possible. Please let me know if any other information will help. Like I said, I'm new.

Edit: I tried again adding ehci-hcd to initrd and replacing PCI stub with ehci and xhci. Same problems.

cendryon 05-30-2014 12:32 PM

Hi

Looks like you're missing ehci-pci and ehci-hcd modules for USB2 in your initrd. xhci-hcd is for USB3.
And maybe you'd better add ohci-hcd or uhci-hcd for USB1, check which one you need with :
Code:

lsmod | grep hci
As a side note, you need to give usbhid only once.
And you ought to check if your USB keyboard needs additional modules. Mine is a Logitech with Unifying, so I have to add hid-logitech and hid-logitech-dj to the list.

Cheers

ymf331 05-30-2014 03:00 PM

Thanks. I did get the keyboard working just this morning by checking lsmod and lspci from the install media and adding all 32 modules as a temporary solution. I don't know how I figure out exactly which ones I need. Also, I have the weird problem of my mouse constantly reconnecting, but I checked and it even does it when I boot from the liveusb. I'm sure I'll get the wrinkles smoothed out.

Edit: Yeah, I forgot to add that there was a specific mod for my keyboard so that's the likely winner. Thanks for that.

Edit 2: For some reason can't mount /dev/system/primary. It says no such device. I also tried /dev/mapper/system-primary and same thing. I can mount it just fine from the install media.

...D'oh! All those mods and I forgot the filesystem ones! I didn't understand the boot process well enough. I learned much getting all this to work.


All times are GMT -5. The time now is 02:23 PM.