| Message |
If that is what you are trying to do, I do a similar thing without having to buy Ghost.
It relies in part on the fact that modern hard disks have so much extra capacity that you don't really (usually) need. eg. a 40 Gb disk is probably about 10 times as much as a normal installation requires.
What I have done is partition up the disk into the "normal" Windows partition, and an OpenBSD partition (at the back end).
Then booting the OpenBSD installation CDROM (the floppy would probably do, and is available for nothing from their site) gives me low-level access to the disks.
In brief, it looks like this:
- Make mount points, mount Windows partition and backup partition ...
mkdir /mnt/cdrive
mkdir /mnt/backup
mount /dev/wd0i /mnt/cdrive
mount /dev/wd1p /mnt/backup
- Backup C partition table
cd /mnt/backup
dd if=/dev/wd0c of=/mnt/backup/partition_wd0.img bs=512 count=63
- Backup C drive, compress with gzip on-the-fly and save as wd0i.img.gz
dd if=/dev/wd0i bs=32256 count=66554 | gzip | dd of=/mnt/backup/wd0i.img.gz
The exact figures (eg. number of blocks) are dependent on the way the disk is formatted. No doubt Ghost is simpler to use, but this isn't too hard to do once a month or so.
The advantage of this, is you can reverse the process to get the image back, and basically go back to a known good copy, with everything installed, the Registry correct (eg. all registration codes for MUSHclient, WinZip etc.), IP address set up, printers configured and so on.
To do a restore, you would do something like this:
dd if=/mnt/backup/wd0i.img.gz | gzip -d | of=/dev/wd0i bs=32256 count=66554
This is reversing the direction of the copy, and doing gzip -d to decompress rather than compress.
Disclaimer
These figures are for my system only. You need to find your own block sizes (bs) and block counts (count) before using on your system.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|