bootable usb drive for fully encrypted slackware?
Hi,
following the alien bob's guide from "README_CRYPT.TXT" on the disk i sucesfully create and work with fully encrypted volumes. So, i wonder - is there any way to get the entire /boot directory on flash stick and boot only with it. How can i add the initrd and all the stuff and force /root to be on the hard disk. I searched Google and the only similar solution i found was for grub. Any suggestions welcomed! Cheers |
Well you could install grub. It's in the 'extra/' directory of the install DVD. I've always replaced lilo with grub once my install was up and running.
|
Quote:
It seems i'll have to give grub a try. |
You could also use Syslinux or Extlinux.
Please see the link below and look for: Replace Lilo/Grub with Extlinux http://linuxconfig.dyndns.org/lazy/L.../Boot/Syslinux /Magnus |
ext/syslinux seems to do the job... but
now the problem is - on my pc the motherboard (evga X58 Sli LE) won't boot the usb if it is ext formatted. When i format it with fat, the the initrd tree can not be copied on the stick with "Operation not permitted" error message. My laptop on the other side boots both ext and fat formatted usb flash, so the problem is probably related to the motherboard of the pc and i have no idea how to fix it - the bios just don't recognize the stick as "bootable". |
Quote:
/Magnus |
Quote:
Without the initrd-tree it fails to mount the encrypted root fs - kernel panic "Unable to mount root fs on unknown-block" error. |
Quote:
Something like this: root=LABEL=PUTLABELHERE rootfs=ext4 or root=/dev/sdc1 rootfs=ext4 /Magnus |
The "rootfs" thing fixed the problem! Big thank you, uppman!
Here is the short story, for anyone facing the same problem: - Install the encrypted slackware, as described in "README_CRYPT.TXT" on the slackware-dvd - After setup is complete, as described, create the new initrd image - Copy the new initrd.gz and the generic kernel used for it on the flash stick - The stick was formatted with FAT and marked as bootable - Rename the kernel - it seems the long name don't work in syslinux.cfg - i use just vmlinuz for it - Create syslinux.cfg on the stick - here is mine: Code:
prompt 1 Code:
#syslinux -d . /dev/sdb1 - put the usb stick in the pc, make sure it has boot priority in BIOS, reboot - VOILA!! Note: in my case i'll have to load the modules for my wireless keyboard in initrd or compile it in kernel, otherwise i can not enter the passphrase |
All times are GMT -5. The time now is 11:24 PM. |