Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Raspberry Pi OS • Re: Disk Encryption since Bookworm

$
0
0
I've seen various methods on t'internet. I've just stumbled across a note I made which is about the easiest from the command line..

Code:

#sudo cryptsetup luksDump /dev/sde#sudo cryptsetup luksOpen /dev/sde fred#sudo mount /dev/mapper/fred /mnt/tmp#sudo umount /mnt/tmp#sudo cryptsetup luksClose fred
You'll get the passphrase prompt at luksOpen. Seems I didn't make a note of how it was created. It must be in the crypsetup man page somewhere.
Yes, that's more-or-less exactly what the code in sdmcryptfs does for you when you run it in the initramfs.

The secret sauce that sdm adds to this is not encryption itself. That's well-understood.

Rather sdm-s secret sauce is doing it mostly automatically, and the bit that isn't automated is as simple as possible. Plus, it saves you from the annoyace and time-consuming effort of having to go search the web for a how-to page that is up to date, is complete, and actually works.

Statistics: Posted by bls — Sun Jan 21, 2024 11:39 pm



Viewing all articles
Browse latest Browse all 8026

Trending Articles