Re: [Dorset] Is "dd" adequate for cloning a disk?

2023-11-04 Thread Ralph Corderoy
Hi John, > > sudo -i parted /dev/sda unit B print > > This gives: > > Model: ATA CT500MX500SSD1 (scsi) > Disk /dev/sda: 500107862016B > Sector size (logical/physical): 512B/4096B > Partition Table: msdos > Disk Flags: > > Number  Start   End    Size  

Re: [Dorset] Is "dd" adequate for cloning a disk?

2023-11-03 Thread JD
Ralph, On 03/11/2023 16:26, Ralph Corderoy wrote: sudo -i parted /dev/sda unit B print This gives: Model: ATA CT500MX500SSD1 (scsi) Disk /dev/sda: 500107862016B Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number  Start   End   

Re: [Dorset] Is "dd" adequate for cloning a disk?

2023-11-03 Thread Ralph Corderoy
Hi John, > I do have a partition table issue. gdisk says: > > Partition table scan: >   MBR: MBR only >   BSD: not present >   APM: not present >   GPT: not present > > *** > Found invalid GPT and valid

Re: [Dorset] Is "dd" adequate for cloning a disk?

2023-11-03 Thread JD
Thanks, Ralph and Andrew. To add to what Ralph said, if the disk uses GUID Partition Table (GPT) then after the clone the backup GPT - which was at the end of the original disk - will now be in the middle. GParted should detect and fix this automatically, otherwise gdisk can do it. You could

Re: [Dorset] Is "dd" adequate for cloning a disk?

2023-10-31 Thread Ralph Corderoy
Hi Andrew, > Clonezilla is faster as it only clones areas of the filesystems which > actually contain data, but that probably doesn't matter for a one-off > clone. A good point. dd(1) obviously doesn't do that. I had an idea GParted could when copying a partition because it could use an

Re: [Dorset] Is "dd" adequate for cloning a disk?

2023-10-30 Thread Andrew
To add to what Ralph said, if the disk uses GUID Partition Table (GPT) then after the clone the backup GPT - which was at the end of the original disk - will now be in the middle. GParted should detect and fix this automatically, otherwise gdisk can do it. You could use Clonezilla instead of

Re: [Dorset] Is "dd" adequate for cloning a disk?

2023-10-30 Thread Ralph Corderoy
Hi John, > I've bought a SSD to replace the sole HDD in an old laptop (Thinkpad > T410) and I intend to use dd to copy the disk.  Does that seem > sensible? I think it should work. This Arch Linux wiki page may be useful as much isn't specific to Arch Linux. It includes using dd(1).

[Dorset] Is "dd" adequate for cloning a disk?

2023-10-30 Thread JD
I've bought a SSD to replace the sole HDD in an old laptop (Thinkpad T410) and I intend to use dd to copy the disk.  Does that seem sensible?  In particular:     Will the SSD be bootable immediately or is some configuration change needed?     The SSD is bigger that the HDD - what will the