Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

RedHat Linux - Cloning a hard disk for backup purposes.

I have RedHat Linux ES 3.0 installed and would like an easy way to clone the hard disk.
Disk that I want to copy is dev/hda and is 80 gig.
I have another 80 gig hard disk of the same make and model which is /dev/hdc.
Both hard disks are located in aluminium removable drive enclosures for easy removal.

Basically I want to be able to plug in the backup drive, make a copy and take it out again. I want it to be an exact copy of the first drive so that if something goes wrong I can just take out my first drive and replace it with my backup, re-boot and everything would work fine.

Can this be done by just booting into single user mode and using the dd command?
dd if=/dev/hda of=/dev/hdc

Is their another or better way to do it?

I am a newbie with Linux so any feedback and suggestions would be greatly appreciated.

3 Solutions
David PiniellaCommented:
That's probably the best way to do it, but you might also want to look at ghost4unix (at http://www.feyrer.de/g4u/ )

u can use MONDO http://samba.epfl.ch/mondo/about/about.html, it can clone the complete hardrive including the partions details and boot records, and can make an ISO image for the same, in case of HDD failure, replace the HDD and boot with the backup ISO and voila..u have the replica of yr system ready to run, put the scripts in cron and u have fresh ISO everyday..

> dd if=/dev/hda of=/dev/hdc
You got the right way since both disks are the same volume and model.

By the way, create the boot floppy in case the boot loader mismatched or corrupted.
So you can still easily to boot from floppy and rebuild the boot loader.
sabecsAuthor Commented:
Thanks for your help and feedback.,

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now