LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-22-2006, 08:11 AM   #1
jovie
Member
 
Registered: May 2006
Posts: 54

Rep: Reputation: 15
clone HD or backup partition image to CD?


My objective is to get the system back in working order ASAP after a hard disk/systems failure.

The options seem to be
1. use the dd command to copy partitions to a backup HD
2. use Partimage to make an image.

Questions

If I use dd to copy all the partitions to a backup drive is it simply a case of removing the failed drive and booting off the backup after a failure? Don't I need a partition table so the bios can find /boot?

If I use Partimage
a) As above, I can copy partitions uncompressed to a backup drive but will that make the backup 'plug in and boot'?
b) If I burn compressed image files to CD how do I get them onto a new hard drive? I'm presuming it won't be as simple as installing fedora where you boot from cd and follow the instructions.

Does copying partitions == cloning?

I'm erring on the side of Partimage because I can use it across the network,put the backup drive in another machine and run a cronjob to keep it uptodate. The box I want to backup has the slave data cable connection and a spare power cable but there isn't room for another drive (there's a data storage RAID taking up most of it) but I could plug in the spare drive just while I copy partitions.

I'm running Fedora core 4 on a 200GB hard drive with
Filesystem Size Used Avail Use% Mounted on
/dev/da2 20G 16G 3.0G 80% /
/dev/da1 99M 13M 82M 14% /boot
/dev/sham 1013M 0 1013M 0% /dev/sham
/dev/da3 163G 75G 80G 49% /home

/home is backed up by other means, I'm just looking for backup of ~22G configured OS.

Thanks for any help

Ann

Sorry if I'm on the wrong forum but I didn't know where to put this.
 
Old 06-23-2006, 01:12 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 492

Rep: Reputation: 75
hi

The dd comand will just do a simple copy bit to bit, so, yes, if you do some thing like

dd if=/dev/hda of=/dev/hdb

this will work for what you want to do.

The second solution with partimage is more for real backup and not for emergency recovery (because to restore the partition you've backup with partimage, you have to use partimage again to restore it) and i woudn't use it in your case.

NOTE: the best solution in you case would even to setup a RAID 1 (miroring) so you would have 0 down time even if you experience a Hard disk faillure.



Regards,

Angel.

Last edited by angel115; 06-23-2006 at 02:16 AM.
 
Old 06-23-2006, 05:54 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I think "cloning" refers to any process that moves the actual bit patterns--rather than depending on a file system. If you copy a file, you don't get any information on the file **system**, partitions, boot code, etc.
Norton ghost is a popular cloning program for Windows. The Linux equivalent is dd.

dd if=/dev/hda........clones an entire drive, including the first 63 sectors (sector 0 being the mbr)
dd if=/dev/hda1.......clones only the first partition on hda

you can "clone" to an image, or to another raw device. An image is a file which lives within your filesystem, whereas cloning to a raw device will not depend on any filesystem.

For a fantastic tutorial on dd, search here for a thread called "learn the dd command" by Awesome Machine.
 
Old 06-23-2006, 02:25 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Partimage is actually a very good solution but you are still left with the task of creating partitions for the restore. That should not be so hard with the sfdisk and mkfs commands. After you restore the partition you can then reinialize the MBR with grub and you are done.

That is a better alternative because dd is very very slow. Another great thing about partimage is that you can dump your restore to a smaller partition, as long as the size of the data can still fit. partimage is called "The Poor Man's Ghost" and it tries to be as friendly as possible with a menu but it is still not made to be used by Windroids. You have to understand the logic behind it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clone or backup Linux boot drive? RodWC Linux - General 8 11-13-2005 09:00 AM
Partition Image backup options c0uchm0nster Linux - Enterprise 3 05-16-2005 09:27 PM
How to Image/Backup a Software RAID Partition? SiegeX Slackware 6 02-24-2005 04:14 PM
Clone Backup plz Help neos Linux - Newbie 4 02-11-2005 02:33 AM
can i use dd to clone a partition? dr_zayus69 Linux - Software 1 01-25-2005 04:57 PM


All times are GMT -5. The time now is 02:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration