0

I'm researching for the possible problems when cloning existing hard drive using the dd clone utility into the new hard drive. I'm interested to know if any one is aware of unexpected behavior (or maybe experienced problems trying to execute similar task) with aligning into the ATA 4 KiB sectors. I will be cloning existing hard drive into the new (bigger drive) using dd and then will use gparted to expand the target drive. Am I correct in thinking that gparted should allign the drive automatically? Any insights will be much appreciated, Tomek

migrated from serverfault.com May 21 '17 at 8:17

This question came from our site for system and network administrators.

  • 1
    Why would you make things more complicated by using dd? – Tero Kilkanen May 12 '17 at 9:15
  • Do you have any suggestions which command (approach) will deliver the best result? – napoleon182 May 12 '17 at 13:06
  • 1
    I would use tar to copy filesystem contents to new drive and then install boot loader on the new drive. – Tero Kilkanen May 12 '17 at 15:45
  • 2
    If you're trying to get all of the partitions then dd should be fine. Increase the blocksize for more reasonable performance. – chicks May 14 '17 at 16:14
  • I usually do as @TeroKilkanen says....no need to worry about the underlying physical infra structure. – Rui F Ribeiro May 21 '17 at 8:26
1

If you use dd and your current disk is GPT-partitioned, the secondary (Backup) partition table which should at LBA-34 to LBA-1 (assuming 512-sector size) of your current disk will not be on the last 34 sectors of your new larger disk.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy