From c021e7e52efdb08fb674d3b00a4a614b8e7609cb Mon Sep 17 00:00:00 2001 From: tengel Date: Wed, 20 Mar 2024 11:55:04 -0500 Subject: [PATCH] refine, dos2unix --- LUKS-Encrypted-Partitions.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LUKS-Encrypted-Partitions.md b/LUKS-Encrypted-Partitions.md index d693e2c..790446d 100644 --- a/LUKS-Encrypted-Partitions.md +++ b/LUKS-Encrypted-Partitions.md @@ -8,11 +8,12 @@ Generic `/home` encrypted partition cp -a /home/* /srv/ umount /home +touch /home/.undermnt cryptsetup -h sha256 -c aes-xts-plain64 -s 512 luksFormat /dev/sda2 cryptsetup luksOpen /dev/sda2 chome mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 /dev/mapper/chome -blkid +blkid /dev/sda2 mount /dev/mapper/chome /home cp -a /srv/* /home/ @@ -93,4 +94,4 @@ if [[ -e /dev/mapper/${_LUKS} ]]; then exit 1 fi fi -``` \ No newline at end of file +```