Solved

open source hard drive cloning

Posted on 2009-05-15
8
1,022 Views
Last Modified: 2013-11-13
This is more of a "what are your thoughts" rather than a technical issue.  I have a need to clone my laptop hard drive from time to time.  Ghost works perfectly for this.  But it costs money.  I have used HDClone (paid version) with great success.

My question is, what would YOU use that is open source free software and why?

I've used gparted to resize my partitions after cloning my hard drive.  Do you have a solution that will let me clone my drive AND resize my partition without using more than 1 or 2 programs?  It must be non-windows programs - (ie. linux or live cd's).

Points will be awarded to the best (in my opinion) logical solution based on the following basic requirements:

*Open Source
*Non-Windows based
*Free
*External USB compliant
*SATA/IDE Compliant (SCSI or SAS even better, but optional)
*Ability to resize all partions, not just the last partition
*GUI preferred, but optional
0
Comment
Question by:EricSimons
8 Comments
 
LVL 69

Accepted Solution

by:
Callandor earned 200 total points
ID: 24395181
There's HDClone and Clonezilla, as well as other free utilities on the Ultimate Boot CD.
0
 
LVL 9

Expert Comment

by:hmare
ID: 24395327
Are you looking to create bootable images of your hard drive?
0
 
LVL 1

Author Comment

by:EricSimons
ID: 24395374
I played around with UBCD and found it quite usable.  In fact, I keep several different versions of UBCD on hand.  I'm a linux guy with some next level Solaris experience so I can figure out how to use the UBCD and make it work.

However, I'm specifically looking for the best "no brains required" solution.  I often get questions like "I bought a new hard drive, how do I get my old stuff on it" from people who can use a computer but can't work on one.  I would like to be able to say "get this and you're done".

Callandor, I had not heard of Clonezilla before.  I did check it out after reading your post.  Thank you.  It looks like something I may have a need for in my consulting business.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 1

Author Comment

by:EricSimons
ID: 24395416
Hmar,

Prime example:  My laptop has a 120 GB hard drive with 2 partitions (O/S and HP recovery).  I buy a new 320 GB hard drive for my laptop.  I need to clone both partitions over to the new drive and then resize the 100 GB OS partition to 310 GB and shrink the 20 GB (10 GB in use) recovery partition to 10 GB.

These are rounded numbers for ease of thinking about it.  And yes, I know a 320 GB hard drive has less than 320 usable GB.
0
 
LVL 35

Assisted Solution

by:torimar
torimar earned 200 total points
ID: 24395854
You may want to check out "G4L" - which is a short form for "Ghost for Linux": http://freshmeat.net/projects/g4l/

You will find the most recent version on the Parted Magic Live CD: www.partedmagic.com - together with a lot of other useful tools.
In fact, the makers of the UBCD are so impressed with Parted Magic that they integrated it into the new UBCD 5, which is currently in last beta stage.
0
 
LVL 7

Assisted Solution

by:askb
askb earned 100 total points
ID: 24443702
1. Use GParted for resizing the harddisk on old hdd
2. Use GParted for creating new partitions same as the old hdd on the new hdd
3. On linux you could use cmd "dd" for backing up partitions to a new HDD. As as follows, this worked like a charm for me. Full hard disk copy

1. Run these comands:
"dd if=/dev/hdx of=/dev/hdy" -> copying from one partition to the other which may be on diff hdd's.
 
or

"dd if=/dev/hdx of=/path/to/image" -> if you want to create a image on an existing FS

or

"dd if=/dev/hdx | gzip > /path/to/image.gz" -> or if you want to create a image on an existing FS + some tar balling

Hdx could be hda, hdb etc. In the second example gzip is used to compress the image if it is really just a backup.

2. Restore Backup of hard disk copy

dd if=/path/to/image of=/dev/hdx
gzip -dc /path/to/image.gz | dd of=/dev/hdx

3. MBR backup (Always do this aswell when you are backing up bootable partition on to diff hdd)

In order to backup only the first few bytes containing the MBR and the partition table you can use dd as well.

dd if=/dev/hdx of=/path/to/image count=1 bs=512

4. MBR restore

dd if=/path/to/image of=/dev/hdx

Add "count=1 bs=446" to exclude the partition table from being written to disk. You can manually restore the table.

5. After doing a DD sometimes you may need to set the MBR on your system. Here are the steps:

reboot -> Rescue System with Suse Linux 10.1 DVD
sudo mount /dev/hda3 /mnt
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /proc /mnt/proc
sudo chroot /mnt
grub-install /dev/hda
Ctrl+D
Ctrl+D
Reboot
0
 
LVL 7

Expert Comment

by:askb
ID: 24443730
Using the above method i have also cloned non-linux (vfat, ntfs) and other propritery partiions.
0
 
LVL 1

Author Comment

by:EricSimons
ID: 24450656
askb,

I appreciate your comment.  I have not personally tried it, but I feel it would do exactly what it should - clone a hard drive.  

However, it does require at least some knowledge of linux.  I'm wanting to give my users a complete hands off - click the button and it does it solution.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question