Skip to main content

WIndows 10 HDD Clone to SSD


DD Copy and Convert Utility 

"dd" is a Unix\Linux utility for copying and converting disks, partitions, and images, etc..  It's installed in the base system of just about every Linux Distribution so getting a hold of it isn't hard. I chose Debian for my Live Linux environment from which I will execute dd from memory so the source disk wont be in use. You could also take out the HDD and use a Linux install on a second machine as you will be taking it out when you swap the drives anyway. But, using the Linux live image method saves us from having to have a second sata-to-usb cable and allows for portability so you could easily perform this on a client pc on site. Another benefit of using the live method is the system remains intact until we know we have a successful copy process. 
As a side note, this could also be performed from a Windows 10 installation on another PC using dd for windows provided by http://www.chrysocome.net/dd.

Command Syntax

    $ dd if = /dev/sda of = /dev/sdb

Where 'if' is the ‘in-file’ or source disk's Linux device file <Note: the primary hard disk during boot is generally going to be '/dev/sda' , the ‘a’ in ‘sda’ denoting the first disk, and assuming there are only two drives present the second would be '/dev/sdb'.

Debian GNU Linux

I like Debian because it's a clean, easy, popularized base that is well documented thanks to Ubuntu users as well as the extensive manual provided by the Distribution itself. dd is of-course installed by default. You can get the live image to burn to disk or image to a usb stick from here:


Task Summary:

1. Prepare the source drive.
2. Boot PC in which source drive is installed via usb/cd/dvd live Linux image 
3. Mount source drive
4. Mount new SSD
5. Use dd to clone the source drive to the destination drive
6. Finally, swap the old drive out with the new one and boot the new disk.
7. Finish up with undoing everything done in the preparation step.

Preparing the Image

Once you have the image you can use a disk imaging application to write it to usb or burn it to a cd or dvd depending on which image you chose. Burning it to cd or dvd is as easy in most cases as right-clicking on the file and choosing "burn to disk". To use a usb you can download the program etcher from here:

Check out the documentation if you need to, but the program couldn't be easier to use thanks to the logical layout of the applications ui.
Choose the image you downloaded, choose the right usb drive, and wait for it to do it's job then when it's finished your ready to boot into the Devian Linux live environment.

Preparing the Source Disk

One downside to using dd is it doesn't distinguish between used and used space it copies over it all. So, if you happened to have bought an SSD that is smaller than the original drive, or just to save time, we are going to shrink all the partitions we can on the drive to the smallest we can safely manage using 'diskmgmt' from the Windows 10 System itself.
Just hit the start button, type 'diskmgmt.msc', and hit 'Enter'.
Shrinking a partition is simple just right click on the partition you want, and choose 'Shrink Volume'. Just follow the system reduce the size to just above the amount of used disk space inside the partition. I gave mine a 10GB margin giving the system room to still run without any errors. This step greatly reduces the task time for this operation; cuts it almost in half. 

System Migration

Now the more technically charged part of the job. 

Boot from the usb/cd/dvd and once your desktop has loaded open a terminal emulator session 
enter: '$ fdisk -l'; This will list all the attached disks and their partitions. At this point the new drive hasn't been connected so there should ideally be only one hard disk and the usb device or cd drive listed. The hard disk, as I said earlier, should be '/dev/sda' and you will see the listed partitions, '/dev/sda1', '/dev/sda2', ...etc..

Now connect the new drive using an sata-to-usb chord. execute 'fdisk -l' again and look for the changes in output. You should now see '/dev/sdb' is present also.

Now your going to run dd:

                *$ dd if=/dev/sda of=/dev/sdb

    *You can get real specific with the command but it works like this on most setups.

When you can run the command with no errors, which you shouldn't have trouble at all, you are ready to switch out the disks and try booting from the new SSD. So far I've been successful with every task for which I used dd.

Finishing Up

Once you are booted into your WIndows 10 desktop, hit the Windows key and type "diskmgmt.msc" like before. This time you're going to right click and choose "Expand" volume. reclaim whatever space is unused on the disk.

And that's it. You've Successfully used disk cloning to move your WIndows 10 install to another disk.

Comments

Popular posts from this blog

2012 iMac Upgrade

I’ve always been fascinated by the longevity of Apple products. They build incredible machines, and unfortunately, Apple’s support lifecycle often leaves them abandoned – a growing mountain of e-waste. Recently, I was scrolling through the marketplace, and I spotted a treasure: a 2012 21.5” iMac for a ridiculously low $100. It was a gamble, a leap of faith, and frankly, I had no idea what I was getting into. I dove headfirst, did some quick research, and the result was...well, let’s just say it was an adventure. I’ll share the full story of my $100 Mac rescue – including the initial challenges, the surprising discoveries, and what I learned along the way. iMac 13,1 Specifications When introduced on October 23, 2012, this particular iMac came in three options: 2.7 GHz Core i5 (I5-3330S) Order: MD093LL/A  Model: A1418 (EMC 2544) RAM: 8 GB VRAM: 512 MB Storage: 1 TB HDD 2.9 GHz Core i5 (I5-3470S) Order: MD094LL/A Model: A1418 (EMC 2544) RAM: 8 GB VRAM: 512 MB Storage: 1 TB HDD 3.1 GHz...

Apple Magic Keyboard 2 Battery Replacement

Facebook Marketplace is a great way to get some good stuff super cheap. Sellers are often not very honest or not knowledgable about the items they have which can make it a little tricky to navigate. Sometimes, they are both of those things and even if someone is attempting to rip you off you can still come out on top with a little technical knowledge. Recently I found a listing for this Apple Magic Keyboard (lighting port) combo listed for $35. Well, as you can see in the image below this combo still sells on Amazon for $120+ used. The items on marketplace even came with the original packaging. I was skeptical, but even if only one of the pair worked I was coming out on top so I offered $25 and got it. The whole exchange was weird. I picked up the items and went straight home and put both on a charger for a while to see what I had. The mouse worked perfectly. The keyboard however, did not. One thing about the newer Apple Keyboards I can't stand is the absence of an indicator light ...

Exploring CLI: Better Bash Scripts with Bashly Part 2

  I enjoyed the srcset project so much that I want to create a set of scripts for creating and managing my projects. In recent Linux news it's been said that the home directory will have a Projects folder by default. I have always created this folder anyway and the scripts I will be creating assume this path exists or will create it if it doesn't. This post will spotlight the new-website command. To recap what I said in the first part of this series, I aim for my scripts to follow some basic guidelines when possible and ideal: a command does one thing and does it well a command should be able to accept data from pipe The new-website script, like the previous srcset project, is simple. I bounce back and forth between different project directory structures for websites and I am aiming to try and stick to one convention and have some uniformity (writing this I am thinking of changing it already in the script). Everyone seems to have their own preferred way of laying things out. I ...