[SWLUG] Taking a disk image

Bradley, Peter pbradley at uwic.ac.uk
Fri Jan 26 15:01:46 UTC 2007


But will it back up my Windows XP Pro partition, my two Linux partitions
and the boot sector all in one go, such that I can restore from the
external medium and then boot from the original hard disk, find grub and
see my original OS options and be able to then boot into either?

Sorry, I'm not doubting you or anything.  I just want to be totally
clear.


Peter

-----Original Message-----
From: David Goodwin [mailto:david at codepoets.co.uk] 
Sent: 26 January 2007 13:40
To: Bradley, Peter
Subject: Re: [SWLUG] Taking a disk image

Backup:

dd if=/dev/hda of=/path/to/something

(Assuming hda is your primary hard disk)

Restore :

dd of=/dev/hda if=/path/to/something

You'd normally be best off with a LiveCD and external hard disk when 
doing this, for obvious reasons. You can use e.g. gzip compression to 
speed things up (and reduce the disk image size)

thanks
David.
-- 
David Goodwin

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]





More information about the Swlug mailing list