linux – Moving a LUKS encrypted POP_OS installation with boot to a new location
I would like to move my POP_OS! Linux installation which is encrypted with LUKS to a different Brand new SSD. (Source is nvme, target is a blank SATA SSD).
**Disk model: INTEL SSDPEKKW256G7
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: AD30FF2D-1139-4431-898D-2E1ABDFCA836
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 923647 921600 450M Windows recovery environment
/dev/nvme0n1p2 923648 1126399 202752 99M EFI System
/dev/nvme0n1p3 1126400 1159167 32768 16M Microsoft reserved
/dev/nvme0n1p4 1159168 163417441 162258274 77.4G Microsoft basic data
/dev/nvme0n1p5 163418112 164483071 1064960 520M Windows recovery environment
/dev/nvme0n1p6 164485120 275597311 111112192 53G Microsoft basic data
/dev/nvme0n1p7 275597312 276549631 952320 465M Windows recovery environment
/dev/nvme0n1p8 317509632 319557629 2047998 1000M EFI System
/dev/nvme0n1p9 329797632 419909631 90112000 43G Linux filesystem
/dev/nvme0n1p10 419909632 500115455 80205824 38.2G Microsoft basic data
Here –
- /dev/nvme0n1p8 is the boot drive
- /dev/nvme0n1p9 is the LUKS encrypted drive
I want to move it to the new SSD such that –
- /dev/nvme0n1p8 becomes sda1
- /dev/nvme0n1p9 becomes sda2
- I want the EFI boot to use sda so that if I remove the nvme drive, the new/SATA one still boots.
How should I go about it. I have a popos livecd and can operate the command line.
Thanks in advance!
Read more here: Source link