This question already has an answer here:

I am on Ubuntu, I have 2 external hard drives, of of them is an SSD. The HDD is from a laptop with windows 10 on it, the SSD is completely empty, I want to use it to copy everything on the HDD to the SSD. I'm using a powered usb 3.0 hub with 2 sata to USB 3.0 cables to connect the drives to my computer.

I was going to this with dd but I realized windows has many partitions, sdb1(C:\ drive), sdb2(EFI system partition), sdb3 (Microsoft reserved partions), sdb4(basic data partition). How can I copy all of them to the SSD using dd?

marked as duplicate by Android Dev, ravery, Eliah Kagan, Videonauth, David Foerster Dec 10 '17 at 10:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    This sounds like an X-Y Problem. What are you actually trying to achieve with the back-up? Do you want to be able to recover personal data or to boot the backed up version of the operating system on that drive? – David Foerster Dec 10 '17 at 10:36

Assuming Win10 HDD = sda and blank SSD = sdc

Rather than using dd for each individual partition, use it on the block device as a whole.

For example, rather than copying from /dev/sdb1 and /dev/sdb2 and so on, just copy from /dev/sdb

So you can do something like:

dd if=/dev/sdb of=/dev/sdc bs=4M
  • I would but the hdd also has a cent os Linux partition which starts at dev/sda5 . I'd like to only copy windows and its partitions – answerSeeker Dec 10 '17 at 3:25
  • @answerSeeker one thing you could do would be to save the partitions to .img files on the SSD – Android Dev Dec 10 '17 at 3:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.