瀏覽代碼

add notes regarding LUKS

Casey DeLorme 5 年之前
父節點
當前提交
5290b3c2a7
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      notes/luks.md

+ 15 - 0
notes/luks.md

@@ -0,0 +1,15 @@
+
+# LUKS
+
+Full disk encryption is stupidly simple with the `cryptsetup` package.
+
+These commands can be used to take a disk, encrypt it, and create one or more file systems underneath it:
+
+	cryptsetup luksFormat /dev/???
+	cryptsetup luksOpen /dev/??? <name>
+	mkfs.btrfs -L <label> /dev/mapper/<name>
+	cryptsetup luksClose <name>
+
+_Simply substitute `???` with the drive, and `<name>` with whatever you want to call it._
+
+You can use any file system; _I happen to prefer btrfs._