ScoobyDoo555 wrote:No doubt there will also be an app for disk imaging the drive (unix?)
I'm not encouraging any of you to go out and void your warranty, but here's one way to handle backup that will work for people who run Linux.
The goal (for us) of this procedure is to preserve a pristine "factory install" image before we power up a new laptop. We image every new machine to our storage server, and then make a copy of the image to an external drive that is kept offline. This lets us restore a factory-shipped disk image (which incidentally wipes out our proprietary data) when we later re-sell the laptop.
We want to capture the state of the disk before any "first boot" configuration happens, so we run this procedure before powering on the new machine for the first time.
1. Remove the drive from the new machine and stick it in an external drive enclosure. Walk it over to your Linux PC. If you don't have a Linux PC, you can do this with a live Linux image without damaging your existing windows install.
2. Use dd to image the drive:
dd bs=1M if=/dev/sd? | bzip - > /path/to/outfile.img
you can also use gzip. We're paranoid, so we then use sha256sum to confirm that we have an accurate copy.
What this gets you is a
block level backup of the entire drive, including the boot block.
Once you have this baseline, it is usually more efficient to make further backups by mounting the filesystems under linux and using the
cpio or
star commands (note:
not tar - that doesn't save some of the newer kinds of file metadata). For portability reasons, cpio is preferred.
This is a UNIX Geek's approach. If all of this is greek to you, it's probably not an approach that is likely to work well for you.
Note, however, that the corresponding restore procedure only works if you are restoring to an
identical drive - same model, not just same size.