Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung | Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
thoschwiki:linux:ubuntumatebtrfsencrypted [28.11.2020 12:19] thosch [Ubuntu Mate 20.04 auf Btrfs mit Verschlüsselung] Hinweis 'Die Seite befindet sich im Aufbau.' entfernt |
thoschwiki:linux:ubuntumatebtrfsencrypted [27.06.2021 17:06] thosch Befehlsequenzen in Einzelzeilen aufgebrochen. |
||
---|---|---|---|
Zeile 110: | Zeile 110: | ||
mount -o subvol=@, | mount -o subvol=@, | ||
+ | |||
mount -o subvol=@home, | mount -o subvol=@home, | ||
Zeile 115: | Zeile 116: | ||
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | ||
+ | |||
sudo cp / | sudo cp / | ||
+ | |||
sudo chroot /mnt | sudo chroot /mnt | ||
Zeile 147: | Zeile 150: | ||
export UUIDVDA3=$(blkid -s UUID -o value /dev/sda2) #this is an environmental variable | export UUIDVDA3=$(blkid -s UUID -o value /dev/sda2) #this is an environmental variable | ||
+ | |||
echo " | echo " | ||
Zeile 166: | Zeile 170: | ||
swapoff / | swapoff / | ||
+ | |||
cryptsetup luksFormat --type=luks1 /dev/sda3 | cryptsetup luksFormat --type=luks1 /dev/sda3 | ||
Zeile 192: | Zeile 197: | ||
export SWAPUUID=$(blkid -s UUID -o value /dev/sda3) | export SWAPUUID=$(blkid -s UUID -o value /dev/sda3) | ||
+ | |||
echo " | echo " | ||
| | ||
Zeile 211: | Zeile 217: | ||
mkdir /etc/luks | mkdir /etc/luks | ||
+ | |||
dd if=/ | dd if=/ | ||
+ | |||
chmod u=rx,go-rwx /etc/luks | chmod u=rx,go-rwx /etc/luks | ||
+ | |||
chmod u=r,go-rwx / | chmod u=r,go-rwx / | ||
Zeile 218: | Zeile 227: | ||
cryptsetup luksAddKey /dev/sda2 / | cryptsetup luksAddKey /dev/sda2 / | ||
+ | |||
cryptsetup luksAddKey /dev/sda3 / | cryptsetup luksAddKey /dev/sda3 / | ||
- | <note tip> | + | <note tip> |
Anschließend -- mit dem jeweiligen Gerätenamen -- prüfen, ob dies erfolgreich war: | Anschließend -- mit dem jeweiligen Gerätenamen -- prüfen, ob dies erfolgreich war: | ||
Zeile 236: | Zeile 246: | ||
Key Slot 6: DISABLED | Key Slot 6: DISABLED | ||
Key Slot 7: DISABLED | Key Slot 7: DISABLED | ||
+ | |||
+ | Anschließend die gleiche Prüfung für ''/ | ||
Weitere Sicherungsmaßnahmen: | Weitere Sicherungsmaßnahmen: | ||
echo " | echo " | ||
+ | |||
echo " | echo " | ||
Zeile 271: | Zeile 284: | ||
update-initramfs -c -k all | update-initramfs -c -k all | ||
+ | |||
grub-install /dev/sda | grub-install /dev/sda | ||
+ | |||
update-grub | update-grub | ||