Tip & How-To about Computers & Internet

Clone a Hard Drive Using an Ubuntu Live CD

Whether you’re setting up multiple computers or doing a full backup, cloning hard drives is a common maintenance task. Don’t bother burning a new boot CD or paying for new software – you can do it easily with your Ubuntu Live CD.
Not only can you do this with your Ubuntu Live CD, you can do it right out of the box – no additional software needed! The program we’ll use is called dd, and it’s included with pretty much all Linux distributions. dd is a utility used to do low-level copying – rather than working with files, it works directly on the raw data on a storage device.
Note: dd gets a bad rap, because like many other Linux utilities, if misused it can be very destructive. If you’re not sure what you’re doing, you can easily wipe out an entire hard drive, in an unrecoverable way.
Of course, the flip side of that is that dd is extremely powerful, and can do very complex tasks with little user effort. If you’re careful, and follow these instructions closely, you can clone your hard drive with one command.
We’re going to take a small hard drive that we’ve been using and copy it to a new hard drive, which hasn’t been formatted yet.
To make sure that we’re working with the right drives, we’ll open up a terminal (Applications > Accessories > Terminal) and enter in the following command
sudo fdisk –l
We have two small drives, /dev/sda, which has two partitions, and /dev/sdc, which is completely unformatted. We want to copy the data from /dev/sda to /dev/sdc.
Note: while you can copy a smaller drive to a larger one, you can’t copy a larger drive to a smaller one with the method described below.
Now the fun part: using dd. The invocation we’ll use is:
sudo dd if=/dev/sda of=/dev/sdc
In this case, we’re telling dd that the input file (“if”) is /dev/sda, and the output file (“of”) is /dev/sdc. If your drives are quite large, this can take some time, but in our case it took just less than a minute.
If we do sudo fdisk –l again, we can see that, despite not formatting /dev/sdc at all, it now has the same partitions as /dev/sda.

Additionally, if we mount all of the partitions, we can see that all of the data on /dev/sdc is now the same as on /dev/sda.
Note: you may have to restart your computer to be able to mount the newly cloned drive.
And that’s it…If you exercise caution and make sure that you’re using the right drives as the input file and output file, dd isn’t anything to be scared of. Unlike other utilities, dd copies absolutely everything from one drive to another – that means that you can even recover files deleted from the original drive in the clone!

Posted by on

Computers & Internet Logo

Related Topics:

Related Questions:

1 Answer

How to change the hard drive that contains the operational system in an Acer EasyStore H341 server?


Transfer an Operating System to a New Hard Drive


When replacing an old hard drive, a process known as cloning is the easiest and most thorough method for transferring data between the old and new hard drives.


A cloning utility takes a snapshot of your current hard drive and then re-creates that snapshot on your new hard drive.


The process clones everything, including the operating system, installed applications, settings and personal files.


Create a system restore disk so that you can return your system to its previous condition if an error occurs.


You can use a backup and restore utility provided with your operating system, or find one for free or for purchase on the Internet.


Many cloning utilities can also create system restore disks.


Shut down the computer and remove power.


Physically install the new hard drive.


Restore power and boot up the computer.

Ensure that your operating system recognizes that the new hard drive has been installed.


Pick the cloning utility that works best for you. (See Below for some options.)

http://www.easeus.com/disk-copy


http://www.clonezilla.org/


http://www.runtime.org/driveimage-xml.htm

All freeware


http://www.acronis.com/homecomputing/products/trueimage


http://www.symantec.com/norton/ghost

Purchase


Base your decision on your operating system and the cost and complexity of the utility.


Install and launch the cloning utility on your old hard drive.

Follow the instructions included with the cloning utility.


Keep the old hard drive as a backup, or reformat it for additional storage space.


Cloning a Notebook Hard Drive


Create a system restore disk so that you can return your system to its previous condition if an error occurs.


You can use a backup and restore utility provided with your operating system, or find one for free or for purchase on the Internet.


Many cloning utilities can also create system restore disks.


Pick the cloning utility that best fits your needs. (See Above for some options.)


Base your decision on your operating system, the cost and complexity of the utility, and whether the utility can clone notebook hard drives using bootable media, such as CD-ROMs, DVD-ROMs or flash drives.


Install and launch the cloning utility on your old hard drive.

Follow the instructions included with the cloning utility.


Keep the old drive as a backup in case the new hard drive fails.


or
Copy an OS to Another Hard Drive


Copying an OS or operating system to another hard drive can serve several functions.

Some simply want to move their current operating environment to a new PC, while others are replacing an old system hard drive with a newer one and want to avoid the hassle of updating and reinstalling.


The process of copying your operating system to another hard drive is a very easy one, in fact, and can be accomplished by anyone with nothing more than some software and some time.


Install Acronis True Image and launch it from its installation icon.

A link is provided below for the Acronis free 15-day trial.


http://www.acronis.com/homecomputing/download/trueimage/


http://www.feyrer.de/g4u/

Support free software or g4u WILL die!


http://www.macrium.com/reflectfree.asp

Macrium has a free also pay options


Click the "Utilities" button from the left menu bar.


Click the "Clone Disk" button from the right pane of the main program window.

This will cause a dialog box to appear.


Click the "Next" button on the bottom-right corner of the dialog box.


Select the disk with the operating system you wish to copy from the drive list and click the "Next" button.


This will begin an examination of your hard disk that will finish in a few minutes.


Select the destination disk from the hard drive list and click the "Next" button.


Choose the "As-is" option for how you would like to handle your partitions.


This option merely lets you decide whether to keep all partitions on the drive or copy just the data onto one blank partition on the new drive.


Click the "Finish" button, and Acronis will prompt you that your system needs to be restarted to begin the cloning process.


The restart will happen automatically when you click the "Finish" button.


Allow the computer to restart, and Acronis will launch prior to the operating system and begin the cloning procedure.


This process may take several minutes to several hours, depending on the size of the operating system and whether there are any installed applications.


Restart you computer once again after Acronis has completed the cloning procedure.

The software will notify you when the cloning has finished.


Boot into your operating system and use your new operating system installation as normal. You may now remove your old operating system drive or format it as you desire.


Hope this helps.









Nov 24, 2012 | Computers & Internet

1 Answer

can a old 3gbs 1.5 terrabyte western digital hdd be cloned to a new 6gbs ssd


not sure exactly what you are referring to
there are ways of cloning an entire disk to another disk or copy the contents of a hard drive to another hard drive

How to Copy Contents of One Hard Drive to Another


There can be several reasons for needing to copy data from one hard drive to another; for instance, if you are migrating data to a new computer or hard drive or if you just want to make sure you have a working backup.


The simplest method is to just drag and drop the contents from one hard drive to the other. But this method will not work well for copying complicated things like operating systems.


To do that, you need to use a hard-drive cloning program.

The cloning program will copy your old hard, in its entirety, to your new hard drive.



Connect both drives to your computer.

This can be done by installing them both inside the tower or by connecting them via USB external enclosures.


Open your operating system's file explorer utility. Select the hard drive you wish to copy. Highlight all of the contents of the hard drive.


Drag and drop the highlighted files to your back up hard drive.


Allow the files to copy over to the new drive. Depending on the amount of data you are copying, the process could take a couple of hours.


Clone the Hard Drive


Download and install one of the many programs that will allow you to clone a hard drive. Cloning a drive makes an exact copy of the drive on your new drive.


It's the only way to accurately back up operating systems, as none of the data is rearranged at all during the cloning process.


Connect both drives to your computer, either by installing them or connecting them via USB external enclosures.


Open your cloning program. Select the "Clone Disk" function.

Choose the drive you wish to clone and the destination drive for the data and start the program.


Do not do anything else on your computer while the drive is being cloned, as it will change the data on the drive and disrupt the process.


Cloning a drive can take a few hours.

Once it is done, you will have an identical copy of the old drive on your new drive.


hope this helps


http://download.cnet.com/easeus-disk-copy-home/3000-2242_4-10867157.html

Copy and backup hard disks and partitions sector to sector. freeware


http://download.cnet.com/easeus-todo-backup-free/3000-2242_4-10964460.html
Back up and restore photos, music, videos, documents, hard disk and partition.freeware

How to Copy My Operating System to a New Hard Drive


Install the new hard drive into the computer.

Power down the computer completely.


Remove the power cords, the monitor and any peripheral devices.

Unscrew, pop off or slide off the computer case.


Touch the computer chassis

Connect the appropriate cables to the back of the hard drive.


SATA drives take a SATA power cable; IDE (ATA) drives take a power cable and ribbon cable.

If you are unsure of what type of drive you have, consult your manual.


Slide the new drive into an available drive bay, then screw the drive into place.

Make sure all of the cables are secure, then put the case back on the computer.


Connect the power cords, the monitor, and any necessary peripherals.

Power on the computer.


Format and configure the drive as per detailed in the drive's manual.

This process will vary from manufacturer to manufacturer.


Boot to the main drive (the drive with the OS on it).

Download and install a disk cloning software


http://www.downloadcollection.com/lazesoft_disk_image___clone_home.htm


http://download.cnet.com/miniaide-fat32-formatter/3000-2094_4-75701815.html

both freeware


Select your "Source" drive, as well as any partitions.

Your source drive is the drive containing the OS you want to copy.


Check the hard drive data located to verify that you are selecting the appropriate drive.

Select the "Destination" drive, as well as any partitions.


Your destination drive is where your source drive's files will be copied to.

Click "Next." Confirm that your selections are correct. Click "Next" again.


Review the task summary.

If everything is correct, click "Run Now."


Allow the disk cloning software to perform the cloning process.

Do not turn off the computer during this process.


When the cloning process has completed, right-click "Start," then click "Explorer."

Click the destination drive and make sure all of the files have properly transferred over.


hope this helps








Oct 12, 2012 | Apricorn DriveWire IDE/PATA/SATA to USB...

1 Answer

I need to migrate data backed-up with Mezzo 4.7, but my Mac died. I've cloned the drive,but in a different Mac, Mezzo demands to be authorized newly, but regrettably Mezzo is now defunct and I cannot obtain a new authorization (challenge/response-type). Am I totally scr__wed?!?


Clone the original Mac hard drive with Carbon Copy Cloner onto a clean ( all data erased write all zero) and format the new drive the same as the original. After cloning the old drive try opening mezzo on the new cloned drive.

Nov 26, 2010 | Media 100 Mezzo Mezzo Backup Software for...

1 Answer

my desktop is vista if i v.clone to my 500GB eGo


Whether you use a clone program like Acronis, or use windows backup depending on which version you have( pro, ultimate) it just puts a folder on the drive that is a backup, so yes, you should be able to use this hard drive anywhere and use it on a different system.

I have done the same thing and have no problems. Western Digital.

It will not let you try and backup another computer with this OS, just so you know. You can't install the backup to another computer and have a nice operating system with all the hotfixes and updates and install to a different one. It will not work.

Feb 10, 2010 | Iomega 500GB eGo BlackBelt Portable 34621...

2 Answers

What software program will clone to an external drive?


It is nearly impossible to boot from external hard drive.  The main reason it that typically the computer need to have the OS loaded in order to support the external HD on the usb system.  My recommendation would be to return the external, purchase and internal and have a professional migrate your drive to the new one.

Jan 06, 2009 | Kanguru PC Clone Kit (KPCCLONE200)

Not finding what you are looking for?

165 people viewed this tip

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

kakima

Level 3 Expert

102366 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Loading...