Cloning hard drive is stressing me out! I need advice
I have never used rsync before, only DD. But from what I have been reading, rsync is better becasue it will basically mirror your hard drive, thus being able to run the cloned software from the new hard drive.
My problem is I do not know what is the best commands or even the basic commands to use in rsync. I am trying to make an image from a external hard drive to a usb drive. That way my chances of messing up he original software is not as risky becasue I'll just restore the image onto another hard drive. Does anyone know the best script to have rsync make an image file of a hard drive and place it on a usb drive and then restore it? any advice would be appreciated Thank you |
Hello,
If I understand you correct you want to make an image of your harddisk to have a backup, right? Rsync is very confusing in my opinion and not my favorite for that kind of job. I imagine you want to compress what you backup into the image in order to be able to put it on a USB drive. Have a look at CloneZilla, that would be a lot easier I think. Kind regards, Eric |
Quote:
I just don't know how to make one hard drive to be an EXACT copy of the original to run the software. |
Hi,
I'm sorry, I understood you wrong. I thought you would use it for backup but it seems you just want an exact copy of your drive. I think dd should do the job. I've only used it on a few occasions and it always worked flawless. Have a look at this site for some pointers and examples. Kind regards, Eric |
To clone HD with Clonezilla
Quote:
Michael |
Code:
dd /dev/sdx /dev/sdy # upon reboot use a live-usb with gparted on it to resize the drive. |
http://rsync.samba.org/documentation.html
:twocents: I have a basic script (scheduled as a cron job daily) that backs up my primary drives to a back up drive daily. You can even combine with SSH to do across a network. So I always have a current copy. After a little reading you may find rsync is a very handy tool. Quote:
|
Quote:
I have cloned disks with it and they boot. I have retored an image to a different disk & it boots. The 1 thing I haven't tried is restoring a partition to another disk on a different partition #. Clonezilla does create a bootable OS. Another note, to clone or image to usb drive in clonezilla, you can't plug in usb drive until prompted to. It says plug in device wait 5 seconds, press enter. |
Boot to a live-cd, check drive listing with the fdisk -l command, and copy your drive when the drives are not mounted. Where hda and hdb are, you will change to what your drives are listed with fdisk -l.
Code:
dd if=/dev/hda of=/dev/hdb bs=32256 |
All times are GMT -5. The time now is 03:04 AM. |