How to Dual-boot Linux with Full-Disk Encryption (LUKS/LVM)

Описание к видео How to Dual-boot Linux with Full-Disk Encryption (LUKS/LVM)

In this video, I show you how to install another operating system (such as Windows) alongside a Linux installation with full-disk encryption set up (with LUKS).
I demonstrate this with installing Windows alongside a Ubuntu installation installed on an LVM setup with encryption (LUKS).

Disclaimer: I would strongly recommend MAKING A BACKUP before doing this, just in case anything goes wrong during this process, as there is the potential for data loss!

Prerequisites:
1. A Linux install media (with a live desktop)

Commands used in this video:
Show disks and partitions: sudo fdisk -l
Unlock LUKS partition: sudo cryptsetup luksOpen [partition] [label] (example: sudo cryptsetup luksOpen /dev/sda3 sda3_crypt)
Show logical volumes: sudo lvs
Shrink a logical volume: sudo lvreduce -r -L -[desired size] [volume] (example: sudo lvreduce -r -L -64G ubuntu-vg/ubuntu-lv)
*Make sure you have this command EXACTLY RIGHT before hitting "enter", or you may lose data!
Show where logical volumes are, on the physical space: sudo pvs -v --segments
Move a logical volume: sudo pvmove --alloc anywhere [PE ranges] (example: sudo pvmove --alloc anywhere /dev/mapper/sda3_crypt:31273-32207)
Mount a partition: sudo mount [partition] [mount point] (example: sudo mount /dev/mapper/ubuntu--vg-ubuntu--lv /mnt)
Reinstall the GRUB bootloader: sudo grub-install --root-directory=/mnt [device] (example: sudo grub-install --root-directory=/mnt /dev/sda)
Edit GRUB configuration file: sudo nano /etc/default/grub
Update GRUB configuration: sudo update-grub

Join this channel to get access to perks:
https://www.youtube.com/drewhowdentec...

Комментарии

Информация по комментариям в разработке