LVM/LUKS support? reddit / BSD ---------------------------------------------------------------------- deux3xmachina · 2015-10-28 05:56 Hey everyone, I've got a computer I've sliced up pretty well with an LVM2 scheme, and I'd like to have every OS contained in its own encrypted container, ideally with gpg armored keyfiles being supported, like the `dd if=/dev/urandom bs=256 count=32 | gpg --armor --symmetric --cipher-algo AES256 --output ./luks.gpg` sort of keys I'm able to create and use in Gentoo. I'm hoping to use either FreeBSD or DragonFly BSD, is there a way to set either of these up in such a manner? I'm not sure if any *BSD supports an install similar to Gentoo, where you can bootstrap the system from inside of any other OS, but I just need to be able to mount it somewhere in a live filesystem so I can chroot into it. Any and all advice you guys have on this project would be greatly appreciated. ---------------------------------------------------------------------- nqbw · 2015-10-28 12:19 It's been a while, but my approach would be to have your BSD slice separate from your LVM, then use GELI to encrypt your BSD install separately. ---------------------------------------------------------------------- bobobo1618 · 2015-10-28 12:58 As far as I know, no BSD supports LVM or LUKS (**Linux** Unified Key Setup) specifically. They're GPL poisoned so likely incompatible with the BSD licence. The main alternatives I'm aware of are ZFS pools or the DragonFly BSD FS I forget the name of (alternative to LVM) and GELI (full disk encryption). If you want BSD side by side on the same volume as Linux, it'll need a dedicated primary partition. My knowledge is limited though. ---------------------------------------------------------------------- lordcirth · 2015-10-28 12:59 LVM is Logical Volume Manager, btw, not Linux. ---------------------------------------------------------------------- bobobo1618 · 2015-10-28 14:54 Thanks, forgot about that, too early in the morning for thinking. ---------------------------------------------------------------------- kusuriya · 2015-10-28 18:19 it wont support it like LUKS or LVM from linux due to the tangled mess of GPL, but you can use in FreeBSD GELI (GEOM_ELI) to encrypt partitions or in OpenBSD Softraid (Read the manpage about bioctl -c C). GELI im not familiar enough with yet to comment on if you can have a keydisk or not but SoftRaid gives you the option of making key disks. It may not be 100% what you are looking for but the man pages outline it pretty clearly. ---------------------------------------------------------------------- Ironfist · 2015-10-29 16:04 NetBSD does support LVM. ---------------------------------------------------------------------- noubades · 2015-10-29 23:37 DragonflyBSD definitely does have full support for LUKS. ---------------------------------------------------------------------- 3G6A5W338E · 2016-04-05 18:59 > As far as I know, no BSD supports LVM or LUKS (Linux Unified Key Setup) specifically. Dragonfly supports LUKS (not sure about LVM). NetBSD definitely supports LVM.