I am running an Ubuntu 14.04 LTS and I experienced some issues with my hard drive. I bought a new HDD of the same size (1TB), and I intend to move all my data (softs, work, pics, etc.) on the new HDD.
What is the easiest way to do that?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
The easiest way to do this is by using Gparted from Live CD/USB as suggested above. To do this have a look at the "Copying and pasting a partition" section in the Gparted manual. To reproduce the steps given in the link:
To copy a partition:
Select an unmounted partition. See the section called “Selecting a Partition”.
Choose: Partition → Copy. The application marks the partition as the source partition.
To Paste a partition:
Select an unallocated space on a disk device. See the section called “Selecting Unallocated Space”.
Choose: Partition → Paste. The application displays the Paste /path-to-partition dialog.
If you want you can adjust the size and location of the partition. See the section called “Specifying Partition Size and Location”.
If you want you can specify the alignment of partition. See the section called “Specifying Partition Alignment”.
Click Paste. The application displays the copy partition operation in the Pending Operations pane.
Using CloneZilla (http://clonezilla.org/) will take care of the details.
Boot from a live system, plug in the new HDD via USB (or another (s)ata cable, depending on your hardware), and start a 'Terminal'.
Check what is the path for your old HDD (probably
/dev/sda), and the new one as well (
/dev/sdb), and issue this command:
sudo dd if=/dev/sda of=/dev/sdb
Please remember that it will take a long time.
There is no default progress indication.
You can see the progress by sending a SIGUSR1 signal to the process,
sudo pkill -USR1 dd, or
sudo pkill -USR1 -f sdb.
Another possibility is (even faster than
cat /dev/sda >/dev/sdb