Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:14:55 +01:00
How to enable full disk encryption after install?
sudo resize2fs -M /dev/vda2
Output:
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/vda2 to 3049008 (4k) blocks.
The filesystem…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:14:32 +01:00
How to enable full disk encryption after install?
resize2fs
bash: resize2fs: command not found
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:14:04 +01:00
How to enable full disk encryption after install?
man resize2fs 
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:13:09 +01:00
How to enable full disk encryption after install?
e2fsck -f /dev/vda2
bash: e2fsck: command not found
sudo e2fsck -f /dev/vda2
Output:
e2fsck 1.47.0 (5-Feb-2023)
Pas…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:07:47 +01:00
How to enable full disk encryption after install?
sudo blkid -s UUID -o value /dev/vda2
8eb1534f-39c0-4ded-907e-aee490cb2f3f
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:06:50 +01:00
How to enable full disk encryption after install?

From a virtual live USB:

sudo fdisk -l
Output:
Disk /dev/vda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:04:36 +01:00
How to enable full disk encryption after install?

Reboot your workstation, enter your UEFI firmware, set the USB device to boot before the hard disk, save your changes, leave the firmware and boot in the live USB selecting the “Try Ubuntu…

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:04:09 +01:00
How to enable full disk encryption after install?

there is no way to encrypt a mounted partition in Linux and you cannot unmount the root partition from which you have booted, so you will have to boot from a live USB

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 18:03:32 +01:00
How to enable full disk encryption after install?

On Debian UEFI virtual machine:

sudo ls /boot/efi/
EFI
[ -d /sys/firmware/efi ] && echo UEFI 
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 17:59:16 +01:00
How to enable full disk encryption after install?

https://www.ovh.com/manager/#/dedicated/vps/vps713872.ovh.net/dashboard does not seem to help switching to UEFI.

DuckDuckGo search OVH Boot UEFI.

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 17:45:11 +01:00
How to enable full disk encryption after install?

DuckDuckGo search Linux check if booted with UEFI.

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 17:44:43 +01:00
How to enable full disk encryption after install?
ssh root@oc3k ls /boot/efi/
ls: cannot access '/boot/efi/': No such file or directory

On Oracle Cloud free ARM VPS:

ssh ubuntu@129.151.245.17 sudo ls…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 17:06:25 +01:00
How to enable full disk encryption after install?

Same Firmware on Debian (trust).

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 17:05:53 +01:00
How to enable full disk encryption after install?
ls /boot/efi/
ls: cannot access '/boot/efi/': No such file or directory

Well this is 2 red flags, so let us stop.

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 17:05:10 +01:00
How to enable full disk encryption after install?

I doubt that it means UEFI being supported but let us try anyway.

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 17:04:24 +01:00
How to enable full disk encryption after install?

Ubuntu 18.04 and above offers to encrypt your hard disk in automated fashion during its installation using dm-crypt and LUKS [1]. However, this option forces you to wipe your entire disk, which…

Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-03-26 16:56:10 +01:00
How to enable full disk encryption after install?

https://johndoe31415.github.io/luksipc/testing.html may be interesting but does not manage root partition case.