On 11/17/2020 11:26 AM, Michael wrote:
> On Tuesday, 17 November 2020 17:47:09 GMT the...@sys-concept.com wrote:
>> I'm looking for an idea to duplicate my old gentoo system.
>> I'm using old programs that require older version php, ( PHP Version
>> 5.6) the program is not compatible with newer php. 7.4 and apache 2.2
>>
>> Gentoo is install on 1TB  SSD  (/dev/sda)
>> The new 2TB  SSD is M.2 (so it has a strange name)
>>
>> 1.) Is my option only:
>> dd if=/dev/sdX of=/dev/sdY bs=64K conv=noerror,sync
>>
>> If I duplicate the drive this way I'll end-up with two partitions, as
>> I'll have 1TB free on a new drive.  Or is there a way to resize
>> partition on M.2 SSD
>>
>> 2.) Another options, I could dig-out the old programs from "attic", but
>> that will not be an easy job.
> 
> You could go about this in a number of different ways.
> 
> dd command will take forever, as it is copying every bit and byte from one 
> disk to the next, whether it contains data or not.
> 
> I prefer to use a clonezilla liveUSB to copy a disk or selected partitions 
> between disks, which will take significantly less time as only blocks with 
> data get copied over.
> 
> You can increase the partition size after you finish copying it onto the new 
> disk and then the filesystem size within it.  Gparted can run both steps in a 
> single stroke.
> 
> If you prefer a more manual and tedious way, you can create a partition as 
> large as you need it to be on the new disk, format it with a filesystem of 
> choice, then use rsync or tar to copy over the files you want and --exclude 
> anything you don't want copied over.

Thanks for the input, will try on the weekend.


Reply via email to