LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2007, 04:22 PM   #1
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225

Rep: Reputation: 31
Looking for stable solid disk/partition imaging software


Hello All,

We are currently using ghost in our enterprise environment to make disk and partition images of systems for emergency recovery of OS components. I have a few problems and was hoping some of you could recommend some free software that might do the trick...

What I need:
1. Ability to clone an entire disk or just a single partition
2. Cannot install software on AIS / Need to boot from CD or USB drive and image to CD or other removable media
3. Must be able to handle NTFS, Ext2, Ext3, HPFS, maybe some other older UNIX file systems.
4. Reliability of finished images

What Ghost does or doesn't do:
1. Image a linux/Unix partition seem to have to do "bit by bit" image of the entire drive for some linux/unix filesystems
2. 50/50 shot of having a good image after 7 hours and 10 dvd's
3. Ghost doesn't work with all types of hardware. I have about 12 or so different versions of boot disks to support various hardware

Thanks in advance!
 
Old 09-12-2007, 05:34 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You can easily produce an image of a partition or a drive using the "dd" command. Because of the Unix philosophy "Everything is a file" you could even use "cat" or redirection to do it as well as long as you are the root user. You can also pipe the output of "dd" through "split" and "bzip2" or "gzip" to compress the slices. If you are using a Fat32 formatted external drive to backup the image, you need to split the output to slices less than 2GB.

You didn't indicate the size of the partitions or drives that you want to back up this way. The hard part may be restoring from DVDs if you have to split up the image among several disks. It would be easier if you would back up the images to an external usb drive. (If you have a large USB drive containing reasonably sized slices, then you could also use "par2" to produce some parity files to protect the backup if one or more of the slices becomes damaged.)
Then you can cat the pieces together like this:
cat sda.iso.0?? | dd bs=$BLOCKSIZE of=/dev/sda
Like I said, you can insert bzip2/bunzip2 or gzip/gunzip in the pipe for both the backup & restore commands.

If you were to backup slices to a DVD, you may need to write a script that prompts for a DVD to be inserted.
It would be possible to produce a script that either names the slices so that they contain a block offset, or to produce a simple csv file containing the slice names and offsets. The dd command has "seek" and "skip" options. They could be used so that the order of restoring a slice of the image doesn't matter.

Last edited by jschiwal; 09-12-2007 at 05:40 PM.
 
Old 09-12-2007, 07:09 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
You may want to have a look at mondo and mindi, they are really flexible and powerful.
 
Old 09-14-2007, 05:48 PM   #4
cuco76
Member
 
Registered: Oct 2003
Location: Tucson
Distribution: Fedora, RHEL, Ubuntu
Posts: 225

Original Poster
Rep: Reputation: 31
Thanks for the feedback! I will definitely be looking at these options for my *NIX stuff.

Thanks
 
Old 09-14-2007, 07:15 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might want to read any documentation for your filesystem's support. For example, the ntfs-clone program could be used to produce an image of an ntfs filesystem. It would be more efficient because it will skip unused areas of the disk. For XFS, look at xfsdump. If you use dd to produce an image, the image file will compress better if the free space is zeroed out. For example, if you reinstall a system on an 80GB drive, using 3 GB of space, the old data on the drive will cause the image to be closer to 80GB than to 3 GB. If you zero out a drive before reusing it, the compressed image will be in the 1-3GB range and you will be able to backup your initial installation on a single DVD backup. I had fooled around creating an image file, mounting it, and compared using dd | gzip versus dd | bzip2. I also filled the FS with dummy files of "zeros" (using dd if=/dev/zero to create the files) and then backed up the FS again to a compressed image. The size difference was dramatic, far exceeding any difference between bzip2 and gzip.
 
  


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
Partition/disk imaging software fmillion Linux - Software 1 05-16-2007 01:20 PM
Disk Drive Imaging Software msimon1960 Linux - Software 1 01-20-2007 11:08 AM
Recommended disk imaging software? Seventh Linux - Software 4 11-06-2006 02:42 PM
Backup Software (Disk Imaging) 1kyle SUSE / openSUSE 4 03-23-2006 03:26 AM
Hard Disk Imaging software neouto General 6 09-07-2005 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration