Solved

open source hard drive cloning

Posted on 2009-05-15
8
976 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Lets start to have a small explanation what is VAAI(vStorage API for Array Integration ) and what are the benefits using it. VAAI is an API framework in VMware that enable some Storage tasks. It first presented in ESXi 4.1, but only after 5.x sup…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 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

23 Experts available now in Live!

Get 1:1 Help Now