Peterborough Linux User Group (Canada) Forum

Linux & Android => Articles, Tutorials and Tips => Topic started by: fox on April 23, 2020, 11:02:05 AM

Title: Cloning with gparted
Post by: fox on April 23, 2020, 11:02:05 AM
In a previous thread someone indicated that it is possible to clone a partition with gparted. I use gparted a lot, but I didn't know you could clone a partition with it. I have been rearranging my two main distros between internal and external drives and I tried that cloning operation for the moves. I have to say that it is the easiest way to clone that I have ever tried - copy a partition with a menu command, move to the location where you want the clone, and choose paste from the menu. Easy as pie, and much easier than using Clonezilla or dd unless you want to do something more complex.
Title: Re: Cloning with gparted
Post by: ssfc72 on April 24, 2020, 02:27:33 AM
Thanks for the info, Mike. I may make use of it sometime.
Title: Re: Cloning with gparted
Post by: buster on April 24, 2020, 11:58:58 AM
I used it last year. Simple as can be, but I could never get a bootable partition to work. So I cloned the /home, and reinstalled Mint onto an ssd without formatting the /home. Seemed to do the trick. Did you clone any / partitions, and did they boot?

If a eufi (?) partition is also created and cloned, maybe it would work.
Title: Re: Cloning with gparted
Post by: fox on April 24, 2020, 01:27:11 PM
I cloned whole bootable partitions, and the clones worked. The one thing you have to be careful with when cloning is that a cloned partition has the same UUID as the original. So if both are mounted at the same time, you could be trying to boot one of them but it will be the other that boots. In my most recent case, this wasn't an issue, as I cloned two partitions. In one case the original was erased, and in the other, the clone went onto a drive that wasn't mounted at the same time. But when this is not the case, you can fix the problem in two steps:
Title: Re: Cloning with gparted
Post by: BusterE on April 24, 2020, 03:02:46 PM
I solved the problem a different way last year, tho my solution wasn't as simple as you indicate.  Not going back there. No need to add to my workload and add to the time I spend with a screen in front of my eyes. But thanks anyway.