What is it? =========== This is 'reinstall' - a simple hack for creating images of a windows installation and restoring it fast and easily. Setting up 'reinstall' ====================== Windows Install: sda1 Data partition: sda2 Image directory: sda2:system/sda1-image/ (must exist already) ..change the scripts for other partitions and/or image directory. * Create the 'reinstall' user: # useradd -c reinstall -m -u 0 -g 0 -s /home/reinstall/run.sh reinstall # echo "reinstall:" | chpasswd -e * Copy the files to /home/reinstall/ (or checkout the svn there) # cp * /home/reinstall/ * Change the login screen on vc1 (optional) change the getty entry for vc1 in /etc/inittab to something like: 1:12345:respawn:/sbin/agetty -L -f /home/reinstall/issue.vc1 38400 vc/1 linux * Create the /etc/fstab entries /dev/sda1 /mnt/sda1 auto noauto 0 0 /dev/sda2 /mnt/sda2 auto defaults 0 0 * Compile 'statuscat' # cd /home/reinstall/ # gcc -Os -Wall -o statuscat statuscat.c * Create the image # cd /home/reinstall/ # ./makeimage.sh * Restore image Just log in as 'reinstall' and type 'yes'.