Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

Boot on LUKS drive ( Rapsberry pi 4 )

Hi,

The SBC Raspberry Pi 4 boot on an sdcard with two partition /boot and /

So I managed to encrypt the partition / with cryptsetup

Here the partition of my sd-card

deviceFILESYSLABELUUID
sdb1vfatBOOT( 9 characters )
sdb2crrypto_LUKS( 36 characters )

I've modified the /boot/cmdline.txt

to ( on one line )

console=serial0,115200
console=tty1
root=UUID=#If I try the UUID of sdb2 it fail and also the UUID when I use `cryptsetup luksOpen /dev/sdb2 b2open`
rootfstype=ext4
fsck.repair=yes
loglevel=5
net.ifnames=0
firmware_class.path=/lib/firmware/updates/brcm
rootwait
cryptdevice=UUID=#I dont know which one:b2open

any ideas ?

Thanks.

View original on programming.dev
13

7 replies

lemmy.ml

I'm not sure I understood you correctly, is the problem just that you don't know which uuid-s to use where? Cryptdevice corresponds to your sdb2, and root is /dev/mapper/b2open. Otherwise, provide the exact error

1
fl42vreply
lemmy.ml

Depends on the distro. On arch you need to enable a few hooks, for example

1

I've used it to encrypt both Pi4's and 5's. I think it's most compatible with Raspberry Pi OS (Bookworm), used it on both Lite and Desktop editions. Remember to use non-AES encryption since only the 5 has hardware enc/decryption. Good luck!

1

You reached the end

Boot on LUKS drive ( Rapsberry pi 4 ) | Spyke