How to clone an old small SSD to a new and bigger SSD using Ubuntu?

| No Comments | No TrackBacks
Here is the result of many tries:

1. Create a startup (live, bootable) USB with the newest Ubuntu version. I created such a USB with Ubuntu 10.04 netbook edition on my Transcend 4GB SDHC using the Startup Disk Creator from the System menu.

2. Boot the system from the external startup (live, bootable) USB and choose 'Try Ubuntu'.

3. Make a backup copy of the old SSD using the dd command:
sudo dd if=/dev/sda1 | gzip > /media/<your_media_name>/ssd_backup/drive.img.gz
In my case, I copied the primary partition of my old SSD (/dev/sda1) to my internal Transcend 33 GB SDHC:

ubuntu@ubuntu:~$ sudo dd if=/dev/sda1 | gzip > /media/5240-EE34/ssd_backup/drive.img.gz
14249592+0 records in
14249592+0 records out
7295791104 bytes (7.3 GB) copied, 983.893 s, 7.4 MB/s
ubuntu@ubuntu:~$

4. Shut down the computer and replace the old SSD with the new one.

5. Reboot the system from the external startup (live, bootable) USB and choose 'Try Ubuntu'.

6. Format the new SSD using the Disk Utility from the System menu (use Master Boot Record partitioning).
In my case it was an Integral Mini PCIe MLC 64GB recognized by the Disk Utility as 62 GB Hard disc ATA PATA SSD.

7. Create new primary, extended and swap partitions using the GPartEd from the System menu.
In my case it was a 59 GB primary partition (ext4, ver. 1.0, bootable, 0x83: /dev/sda1) and 2,6 GB extended partition (0x05; dev/sda2) with embedded 2,6 GB linux swap space (0x82; /dev/sda5). Apply all changes from the Edit menu -> Apply all changes.

8. Reboot the system using the external startup USB. Delete the 59 GB primary partition and create a new primary partition with the size of the old disk. In my case it was a 7.7 GB partition. Apply all changes.

9. Then restore the backup copy of the old SSD primary partition using these commands:

cat /media/<your_media_name>/ssd_backup/drive.img.gz | gunzip | sudo dd of=/dev/sda1

In my case, this was the result:

ubuntu@ubuntu:~$ cat /media/5240-EE34/ssd_backup/drive.img.gz | gunzip | sudo dd of=/dev/sda1
14249592+0 records in
14249592+0 records out
7295791104 bytes (7.3 GB) copied, 658.326 s, 11.1 MB/s
ubuntu@ubuntu:~$

10. Shut down the computer, remove the external bootable USB.

11. Then boot the system. Check the SSD. The primary partition is equal to that of the old SSD. In my case it was 8.1 GB.

12. Shut down the computer, insert the external bootable USB and boot the system.

13. Resize the primary partition using GPartEd.

If you can't manage with the resizing of the new SSD primary partition in the described way, try to install the Ubuntu on the new SSD instead of step 7, then boot the system from the external USB and do the steps from 8 to 13.

May be there is a simplier way (see here or here etc.) but I couldn't manage with it:)

No TrackBacks

TrackBack URL: http://softisbg.com/MTOS-4.32-en/MT-5.2.10/mt-tb.cgi/25

Leave a comment

Pages

Powered by Movable Type 5.2.10

About this Entry

This page contains a single entry by Harry Stojan published on september 9, 2010 11:22 PM.

Momo Kapor was the previous entry in this blog.

My Contributions to Culture in 2010 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.