[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What would I do without partimage?



On Wed, Dec 14, 2005 at 09:25:35PM -0500, William Ballard wrote:
> 
> Are there other tools that work like Ghost but in Linux?  Partimage is 
> great.
> 
I largely prefer ntfsclone from the ntfsprogs package over partimage.
Partimage is nice but the command line based ntfsclone is far more
flexible. Just check out the man page for some usage examples. Here are
some i came up with:

Backing up a NTFS partition into a gzipped image file:

 ntfsclone -s -o - /dev/hda1 | gzip -9 -c > winxp_hda1.img.gz

Recovering a partition works like this:

 gunzip -c winxp_hda1.img.gz | ntfsclone --restore-image --overwrite /dev/hda1 -

A friend of mine uses this tool on a daily basis to clone a partition to
another disk using this command:

 ntfsclone -s -o - /dev/hda1 | ntfsclone --restore-image --overwrite /dev/hdb1 -

Recovering a partition to a file works like this:

 gunzip -c winxp_hda1.img.gz | ntfsclone --restore-image --overwrite winxp_hda1.img -
 
 after that one can mount and browse it like a normal filesystem:

 mount -t ntfs -o loop winxp_hda1.img /mnt/

Beat this, partimage! ;-)

The ntfsprogs package contains lots of other useful utilities a XP really
can't do without.
                                     Cheers, P. *8^)



Reply to: