I want to copy unencrypted sda1ext4 partition into the LUKS encrypted cpart partition.
I tried to run part_to_local_part mode but there was no cpart option but only nvme0n1 in the target list. I chose nvme0n1 option and I wasn't asked for LUKS part open or something like that so I was scared to press ENTER because I think it can overwrite the whole nvme0n1 device.
After this I tried to enter shell mode and run # cryptsetup open /dev/nvme0n1 cpart and run part_to_local_part again, but the target options were the same.
I am confused why nvme0n1 is shown in part_to_local_part mode because it is the device and not a partition.
Please, help me understand how to do it right
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In that case, I suggest you after running:
cryptsetup open /dev/nvme0n1 cpart
You can use partclone to clone that.
For more info about using partclone, check https://partclone.org.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I have two partitions
I want to copy unencrypted
sda1
ext4 partition into the LUKS encryptedcpart
partition.I tried to run
part_to_local_part
mode but there was nocpart
option but onlynvme0n1
in the target list. I chosenvme0n1
option and I wasn't asked for LUKS part open or something like that so I was scared to pressENTER
because I think it can overwrite the wholenvme0n1
device.After this I tried to enter shell mode and run
# cryptsetup open /dev/nvme0n1 cpart
and runpart_to_local_part
again, but the target options were the same.I am confused why
nvme0n1
is shown inpart_to_local_part
mode because it is the device and not a partition.Please, help me understand how to do it right
In that case, I suggest you after running:
cryptsetup open /dev/nvme0n1 cpart
You can use partclone to clone that.
For more info about using partclone, check https://partclone.org.
Steven