Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Use LUKS, don't use LVM.

I do that with ZFS for all the non-ancient stuff in github.com/Ericson2314/nixos-configuration



Why avoid LVM?

If you could point me to a practical instruction on how to get it running I’d be very thankful! I’m sure I’m missing something basic - as is usual when struggling with UNIXes…


There is some LVM FUD I can't confirm, but really, it's just simpler.

ZFS filesystems within the same "pool" are also just more flexible.

The NixOS config part you can take from my repo. The command line part is the same as for any other linux. From memory:

cryptsetup luksformat physical-part

cryptsetup open physical-part arbitrary-name

some-command-to-make-file-system ... /dev/mapper/arbitrary-name

mount /dev/mapper/arbitrary-name




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: