2

My current hard drive has an 80 GB NTFS partition running Windows (/dev/sda1) in addition to several Linux partitions. I purchased a new hard drive and want to move my Windows 8 partition to a new NTFS partition (/dev/sdb1) where size(/dev/sdb1) >= size(/dev/sda1). Are there any pitfalls to simply running this dd command from within my Linux distribution running on /dev/sda2?

dd if=/dev/sda1 of=/dev/sdb1 bs=32M

Details

  1. My Windows partition isn't currently mounted in Linux
  2. I don't need to fix the MBR, because when I reinstall Linux on the new drive, GRUB2 will overwrite it anyway.
  3. I know there are other options for performing this, like Clonezille, GParted, Acronis, Norton Ghost, Drive Image XML, ntfsclone, etc. but a single command seems the simplest and dd is highly versatile.

1 Answers1

2

it looks like you have considered the problems I would have (size, MBR, etc) so I'd say you are fine to proceed. the only caution I give is they call DD 'Destroy Disk' for a reason. it is most unforgiving and quite capable of trashing your system beyond recognition. just make sure to triple check your disk file names (/dev/sdaX) and your syntax just to make sure.

Frank Thomas
  • 37,476