Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a laptop with an 80GB SSD and 500GB HDD. I currently have Windows installed on the SSD, and a 400GB data partition for Windows on the HDD. I set aside 100GB on the HDD to try out Ubuntu, and I'd like to make it my primary OS and switch it over to the (much) faster SSD.

How could I go about getting my Ubuntu setup moved over to the SSD? I have a 120GB USB hard drive I can use if necessary for getting through it.

share|improve this question
    
some of the ideas on this similar question may help: superuser.com/questions/11453/… –  warren Mar 12 '11 at 3:08

2 Answers 2

In brief, boot from a rescue or live Linux system. Mount the two partitions. Assuming you don't mind blowing away the Windows partition on SSD. Format the destination (e.g. mke2fs -t ext4 /dev/ssd1). Mount them (e.g. /mnt/ssd, /mnt/hdd) copy the files:

umask 0
cd /mnt/hdd
for D in  boot  etc lib lib64 media  opt  sbin  tmp  var
bin  dev home  lib32 root usr ; do
   tar cf - $D | (cd /mnt/ssd ; tar xf - )
done
share|improve this answer

I had to do this recently, and I used partimage, which is nice. It is a console app that is fast and reliable and free as in freedom, and makes an exact duplicate of your partitions without fuss. However, it only works for supported file systems, and does not currently support ext4 or btrfs. Also, it is normally used with unmounted partitions. In your case, you'd need to use a live cd per Keith above.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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