User Tools

Site Tools


reencrypt_linux_post_install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
reencrypt_linux_post_install [2025/07/26 09:44] userareencrypt_linux_post_install [2025/07/26 09:51] (current) usera
Line 513: Line 513:
 </code> </code>
  
 +then you are good to go, you can do CTRL+C to stop it. Otherwise, try copying the content of the /etc/resolv.conf file from before:
 +
 +<code>
 +nano /etc/resolv.conf
 +</code>
 +then paste the content, and enter CTRL+X, then Y do save the changes. Try again to ping:
 +
 +<code>
 +ping google.com
 +</code>
 +
 +It should work now.
 +
 +Now, install some required packages:
 +<code>
 +sudo apt install cryptsetup cryptsetup-initramfs
 +</code>
 +
 +and let us do some modifications.
 Enter the following command: Enter the following command:
  
Line 558: Line 577:
 </code> </code>
  
 +you need finally to modify the file /etc/default/grub:
 +<code>
 +nano /etc/default/grub
 +</code>
 +
 +you need to locate the entry "GRUB_CMDLINE_LINUX=" and change it to "GRUB_CMDLINE_LINUX="cryptdevice=UUID=<LUKS partition UUID>:cryptodisk root=/dev/mapper/cryptdisk"
 +where you change <LUKS partition UUID> for the UUID of your encrypted partition.
 You can then enter: You can then enter:
  
reencrypt_linux_post_install.txt · Last modified: by usera