LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   encrypted disk clone (https://www.linuxquestions.org/questions/linux-security-4/encrypted-disk-clone-4175727236/)

heiny 07-22-2023 06:38 PM

encrypted disk clone
 
2 Attachment(s)
Hello all, hope someone can help me resolve this issue...
My system is Linux Mint and I choose to encrypt my disk during the installation process. No troubles with this until now. I have a 512 GB SSD drive and want to clone it to a 1TB SSD drive. the clone work well but if a look in : preference, hard disk, it shows a 1TB drive. When I open my File system it's still the same free space than with my 512 GB drive, just like if he doesn't see the 1TB drive...should be around 500 GB more free space...
Clone done with CloneZilla, tried to solved the issue with Gparted but no luck..stil the same.

Any idea anyone?

Thanks, Mike.

jefro 07-22-2023 09:46 PM

I'm confused. Point out what you see.

heiny 07-22-2023 10:24 PM

1 Attachment(s)
Quote:

Originally Posted by jefro (Post 6443707)
I'm confused. Point out what you see.

On my 1 TB hdd, the space left is the same then on my 512 GB hdd before the clone.

syg00 07-22-2023 11:05 PM

See the second line of my sig.

As you add layers of software, you make matters worse. The things I see that needed resizing are:
- partition
- pv
- LUKS container
- filesystem

All but the last seem to have been handled for you. I would do it from a terminal on the running system, but a livecd should allow you to use a GUI tool.

heiny 07-23-2023 06:42 AM

Quote:

Originally Posted by syg00 (Post 6443712)
See the second line of my sig.

As you add layers of software, you make matters worse. The things I see that needed resizing are:
- partition
- pv
- LUKS container
- filesystem

All but the last seem to have been handled for you. I would do it from a terminal on the running system, but a livecd should allow you to use a GUI tool.

Hello syg00, think I will need more details on this, your help is pretty much appreciated ;)

heiny 07-24-2023 10:44 AM

Quote:

Originally Posted by heiny (Post 6443745)
Hello syg00, think I will need more details on this, your help is pretty much appreciated ;)

Hello, I tried this and not working...

1) BACKUP ALL IMPORTANT DATA ON THAT DISK.
2) Launch GParted from the Linux Mint installation medium (NOT from GParted live).
3) Resize the LUKS partition to the right (if you want to resize it to the left, you have to move it to the left, then resize to the right), then apply changes.
4) sudo cryptsetup luksOpen /dev/sdXY luks_part
5) sudo gparted /dev/mapper/luks_part
6) Right-click on the only LUKS volume, then choose "Check" and apply changes.

After the line #4 I received the error message: cannot open, already mount (something like this)


All times are GMT -5. The time now is 04:36 PM.