Cloning a dual boot Windows/Linux hdd to a smaller SSD hdd

I have an HP-8560 laptop at work, happily running Ubuntu 12.10 and Windows 7 x64. The other day, my boss told i could have an 256gb SSD-disk to replace my 512gb ”regular” one. Nice, i thought, as that will save me from bootstress and other stuff. An SSD is faster, better and shinier and newer and lighter and… Well!

I didn’t feel like setting up everything in my environment(s) again, and so, like i done before, i wanted to clone the old disk to the SSD-disk. Usually, and in all occassions i use 2 Open source tools to do this kind of stuff:

GParted (or Parted magic, where GParted is included)
and
Clonezilla

GParted is a tool for changing partitions, and Clonezilla is a clone/backup tool for harddrives (think Norton Ghost).

Unfortunately following this guide didn’t work for me, as i also had to do the following:
* Adjusting the partitions with gparted worked fine – but remember to run chkdisk in Windows and fsck in Linux after your done.

* I couldn’t get Clonezilla to clone my old drive even after i shrunk my partitions, so i had to restore to Acronis true image,( an commercial variant of Clonezilla ). That worked fine for the Windows partition, but as for Linux i had to do an reinstall. Fortunately it went quick as i could copy my /home folder to the new Linuxinstall.
* I also had to have an Windows 7 dvd do an repairrun after the Acronis cloning.

Took me some extra hours, as i thought i would be really easy, but now it works fine. If it was worth it. Hell yeah, go SSD!!!

Clone/backup your memorycard to file

I needed to clone/backup an 32GB SD-card i use for one of my retrocomputers (An Amiga running with the SD-card as an harddrive).

Basically i just wanted a file of it that i could either write to new SD-cards, or easily backup for later restore.

Problem solved, this is how i did:

* Connect the SD-card with your adapter
* Fire up an terminalwindow (yes, we will do this commandline style, scary huh:)

* And we will use the old, old (but reliable ) dd command. dd takes an bit for bit sector of a device and writes it to file etc. So,

dd if=/dev/sdX of=YOURIMAGE.img

where sdX is the device you want to make an clone of.(Find out with disktools, gparted or so on) and YOURIMAGE.img the file you want to write to.

For writing the imagefile back to another device

dd if=YOURIMAGE.img of=/dev/sdX

 

Good to know:

* CAUTION: Be sure that /dev/sdX is the right device, other wise you can f**k things up. Doublecheck!
* Use same sizecard you write back to. Otherwise, you may waste space.
* Don’t forget to backup your file..

Tools used:
* Noname sd-card adapter to USB (plexgear)
* Mustang 32gb SD-card
* (and in the old amiga an SD/CF-drive from Delock)