dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition [01.04.2021 16:14] Pascal Suterdualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition [01.04.2021 17:36] (current) Pascal Suter
Line 15: Line 15:
 cryptsetup open /dev/nvme0n1p6 crypt cryptsetup open /dev/nvme0n1p6 crypt
  
-{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-154550.png}}+pvcreate /dev/mapper/crypt
  
-choose the /dev/mapper/crypt "device" and click on "New Partition Table".+vgcreate ubuntu-vg /dev/mapper/crypt
  
-create swap partition at the end of the free space:+lvcreate -L 8G -n swap ubuntu-vg
  
-{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-154853.png}}+lvcreate -l 100%FREE -n root ubuntu-vg
  
-next, create your root volume occupying the rest of the free space: +{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-154550.png}}
- +
-{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-154946.png}}+
  
-rsult:+{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-172014.png}}
  
-{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-155123.png}}+{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-172049.png}}
  
-now find our boot partition, in our case /dev/nvme0n1p5, slelect it and click "Change" +{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-172335.png}}
- +
-{{dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition:pasted_20210401-155232.png}}+
  
 next, click on "Install Now" to proceed with the installation.. from now on just do whatever you do to install ubuntu, but when you are done, don't reboot yet, click on "Continue Testing" next, click on "Install Now" to proceed with the installation.. from now on just do whatever you do to install ubuntu, but when you are done, don't reboot yet, click on "Continue Testing"
Line 39: Line 35:
 open a terminal open a terminal
  
-mount /dev/mapper/crypt2 /mnt/+mount /dev/ubuntu-vg/root /mnt
  
 mount PARTLABEL=boot /mnt/boot/ mount PARTLABEL=boot /mnt/boot/
Line 46: Line 42:
  
 chroot /mnt chroot /mnt
 +
 +blkid /dev/nvme0n1p6
  
 nano /etc/crypttab nano /etc/crypttab
Line 61: Line 59:
 #     loud    - display all warnings #     loud    - display all warnings
  
-crypt PARTLABEL=crypt none luks,discard+crypt UUID="879761ba-42bc-455a-9126-fd21fa386f07" none luks,discard
  
 update-initramfs -k all -c update-initramfs -k all -c
 +
 +exit
  
 reboot reboot
  
  
  • dualboot_ubuntu_and_windows_with_encrypted_ubuntu_partition.txt
  • Last modified: 01.04.2021 17:36
  • by Pascal Suter