Solved

open source hard drive cloning

Posted on 2009-05-15
8
993 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
 
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
[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now