How to backup/clone Windows creating a recovery image using Ubuntu

Here's the VeryEasyWay™ to do this:

  • download the CloneZilla Live CD,
  • boot it
  • follow the device-image manual to do the imaging. A disk-to-image will compress the disk image before writing it so the entire space taken up by the image itself will be far less then the allocated space on the disk itself!
  • store the image of the disk you created in your cloud together with the image of the CloneZilla Live CD! (Just in case a future version of CloneZilla would not be able to restore it)
  • Only to be super-safe: keep the CloneZilla CD and the HDD you backed this up to in your bank safe just in case that your cloud software doesn't exist any more in the future and your house burns down afterwards... ;-)

I Would do this:

Change to ROOT mode from a Live CD/USB Preferrably, if not it will still work from a dual-booted Linux install. Open a terminal and type:

sudo -i

Then, find out which partition is your Windows via this command:

fdisk -l

Mine shows this:

/dev/sda1  *         2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 240818175 240611328 114.8G  7 HPFS/NTFS/exFAT
/dev/sda3       240820224 312498175  71677952  34.2G  5 Extended
/dev/sda5       240822272 312498175  71675904  34.2G  7 HPFS/NTFS/exFAT

So in my case, /dev/sda1 is the recovery bootloader (windows). They vary in size, mine was 100M but I have seen others for example if the image was installed with MDT then they are bigger.

Next Disk Dump Backup the /dev/sda1 partition to a file, and store it anywhere you want. In this case I saved it in my root folder's home directory:

dd if=/dev/sda1 bs=16m of=/home/wubilover/BackupOfSda1-WinRecovPartition.dd

Remember that DD takes a long time to run, so wait until it finishes :)

That's it. To restore it, swap the if= and of= of the above command. :) Enjoy.


To Perform a FULL Backup of the entire Drive you can buy a USB Drive that is larger, and then save it to a .dd file in the bigger drive. This way if you break something, you can boot into the Live CD/USB and attach your external drive and restore.

Full Backup to external drive:

  • Boot into Live CD/USB wait for ubuntu to load and then open a terminal

  • Plug in your external drive which is LARGER then the internal drive, ensure that it is NTFS or EXT3 or higher so that it can hold the large file. This is confirmed via running the command:

    gksudo gparted
    

    Then go ahead and partition it to Ext3 or Ntfs (doesn’t matter, but if you are using windows i recommend ntfs)

  • Confirm that it is mounted via

    df -kh
    
  • BACKUP THE HARD DRIVE to the EXTERNAL HARD DRIVE VIA (Notice the command is different from above):

    dd if=/dev/sda bs=16m of=/media/MyUSBStick/BackupOfSda-TheEntireHD.dd
    
  • And... if something goes wrong you can RESTORE THE EXTERNAL HARD DRIVE's .dd file to the INTERNAL HARD DRIVE VIA (Notice the command is different from above):

    dd bs=16m if=/media/MyUSBStick/BackupOfSda-TheEntireHD.dd of=/dev/sda 
    

This method which images the entire drive works flawlessly to backup any operating system, including any version of Windows. I've used it repeatedly over the years. The only possible downside is that you'll need to restore (and store) the image to a drive of equal (or greater) size due to not using compression. The upside is it takes very little of your time.