How can I use a USB flash drive to boot Linux from a partition on (another) hard drive?
I'm trying to install Linux on an encrypted partition on the hard drive (using LVM on LUKS).
/boot must be on a separate, unencrypted partition, I would like to store it on a USB flash drive.
My plan was to install GRUB (2) to the flash drive (
/dev/sdb) and boot Linux from it's MBR, or if the drive was unplugged simply boot Windows from the hard drive's (
I installed GRUB (2) to
/dev/sdb, but when I tried to boot from the flash drive I got the following message:
After a couple of seconds I got an additional message:
For testing purposes, I tried to delete the contents of
/boot, and I got the same message after booting again from the flash drive.
/dev/sda (Hard Drive):
MBR: Windows Bootloader /dev/sda1 - Windows System Partition /dev/sda2 - Windows Boot Partition /dev/sda3 - Windows Data Partition /dev/sda4 - Linux partition
/dev/sdb (USB Flash Drive):
MBR: GRUB /dev/sdb1 - Linux /boot Partition
GRUB_CMDLINE_LINUX="cryptdevice=/dev/disk/by-uuid/$SDA4_UUID:vg root=/dev/mapper/vg-root resume=/dev/mapper/vg-swap cryptkey=/dev/disk/by-uuid/$SDB1_UUID:ext2:/key" .. GRUB_DISABLE_LINUX_UUID=true
grub-install --target=i386-pc --recheck /dev/sdb
I'm using Arch Linux.