Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th October 2010, 03:37 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,048
windows_xp_2003firefox
Disk imaging, &@!#!!$ Partimage and Arconis

I've been bouncing off the walls trying to recover a machine from a partimage (by partimage, yeah I did the mbr & 0'd it just for giggles) but it restores a busted partition. Chkdsk -f ends with win dumping bad hall.dll durring boot so I was about to jump onto the Acronis bandwagon (yes two images different formats) but it just dies when I try restore to the hd. It's funny, no problems in a virtual machine though. So I'm going to the moon and back; tib --to-- vdi --to-- RAW via dd --to-- /dev/sda via dd, and I'm racing it with another machine; tib --to-- vdi --to--RAW via VBoxManage --to-- /dev/sda via dd.

Anyway, what do you guys swear by? i.e., I'm about ready to start using dd and gzip as I don't see the wisdom of imaging with propitiatory formats and partimage isn't trustworthy on ntfs. Alteast 50% of the time i.e.,
Reply With Quote
  #2  
Old 14th October 2010, 07:51 PM
cadillackid Offline
Registered User
 
Join Date: Sep 2010
Location: Columbus Ohio
Age: 44
Posts: 9
windows_xp_2003firefox
Re: Disk imaging, &@!#!!$ Partimage and Arconis

I simply use ddrescue (not plain dd) and pipe it into gzip.. yes it takes a long time because it reads the whole disk and pipes it.. but ive never had an image that wasnt bootable on the new drive...


I had issdues getting partimage to do what I wanted it to do and getting images to boot... same also applied to just plain DD.. but ddrescue works good (both variants... ddrescue and dd_rescue)..

I boot my system using "system rescue cd" or from the network with a boot image of system rescue cd on my PXE server... mount my backup drive and ddrescue away..

-Christopher
Reply With Quote
  #3  
Old 14th October 2010, 10:36 PM
bodhi.zazen's Avatar
bodhi.zazen Offline
Registered User
 
Join Date: Jul 2006
Location: Montana
Posts: 731
windows_xp_2003firefox
Re: Disk imaging, &@!#!!$ Partimage and Arconis

Personally I keep a /data partition and care less about making an image of the OS.

Far easier to re-install an OS and then restore the data.

If I want an image of a partition I personally use dd .

The "problem" with backups, you need to test them. Many people run some application or command and do not confirm the backup works, only to find the backup fails when then "need" to restore.
__________________
If it is not broken, tweak it... If you break Fedora you get to keep both pieces :p
Reply With Quote
  #4  
Old 14th October 2010, 11:10 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Re: Disk imaging, &@!#!!$ Partimage and Arconis

Quote:
Originally Posted by beaker_

...what do you guys swear by? i.e., I'm about ready to start using dd and gzip as I don't see the wisdom of imaging with propitiatory formats and partimage isn't trustworthy on ntfs.
Hello everybody,

Consider tar for cloning partitions and systems. It doesn't create an image in the usual sense of the word. It just copies the files. But here's why I like it better than dd for cloning (and backing up) partitions and systems.

dd copies sectors including the superblock and all of the backup superblocks which have the wrong metadata for the cloned partition (unless it's a backup being restored to the same partition). Don't forget to fix those with the usual utilities after using dd to clone. tar just copies the files of the old system into a waiting new and healthy filesystem.

dd can't clone to a smaller partition. And when dd-ing to a larger partition (almost always the case), remember that you also need to resize the filesystem of the clone. BTW, I my experiments, resizing the filesystem after dd-ing a clone will fix all of the backup superblocks. fsck only fixed the primary superblock (in my experiments).

tar takes less time because it's copying files instead of all of the partition's sectors (comparable time to Acronis, IMO). And if you want to create a tarball to use as a backup and/or to create a clone (instead of piping directly to another tar command), then the tarball is smaller than the dd binary for the same reason and can be reduced further by zipping it.

Tarball backups of partitions easily can be browsed with Xarchiver in a file manager sort of like True Image can do to a .tib file. Not much you can do in that regard with a dd binary. Nothing actually.

I've used cp with good results in cloning systems, too. And other methods advocated by people are rsync, cpio, dump and restore. I haven't tried those, but I don't need to.

P.S.: I still use Acronis True Image to image Windows systems. I bought it, so I still use it. But only on Windows and NTFS partitions.
Reply With Quote
  #5  
Old 15th October 2010, 06:56 PM
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 824
linuxfedorafirefox
Re: Disk imaging, &@!#!!$ Partimage and Arconis

Actually, the solution to dd is to zero out all your free space prior to dd'ing.
dd if=/dev/zero of=/some/file/in/the/filesystem; sync

NOW, you may or may not use gzip -- your choice. What you DO do though, is create a SPARSE file....
dd if=/dev/thepartition | cp --sparse=always /dev/stdin /path/to/file
or
dd if=/dev/thepartition | gzip -f | cp --sparse=always /dev/stdin /path/to/file

A sparse file is one where all those long sections of empty 0's will be collapsed down into virtually nothing.

Since it is a sparse file, it is (unless the disk is really full) going to be small enough to manipulate, including SHRINKING if needed.


Note: filling empty space with zeros and storing sparse will take less space than NOT filling with zeros and gzipping. Applying both will obviously be the smallest.
Reply With Quote
Reply

Tags
and@#$, arconis, disk, imaging, partimage

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Disk Imaging itmike Using Fedora 12 19th August 2009 09:58 PM
Partimage - Cannot restore disk image (cannot read Block 0) mickwombat Using Fedora 4 8th April 2009 05:56 PM
Disk Imaging Software Needed... Cypheros Using Fedora 2 18th June 2006 01:41 PM
Disk imaging question.. orbknives Using Fedora 4 12th February 2005 12:25 PM
disk imaging superbnerd Using Fedora 5 30th January 2005 11:09 AM


Current GMT-time: 15:35 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat