* prepare image (partimage - my choice, fsarchiver, ntfsclone, dd or whatever works for you), put on disk with the rest of the iles (sample: /image/diskc.000).
* put file named "autorun" in root dir
* if partition: the "rename NTLDR/BOOTMGR, put GRLDR in it's place" installation of GRUB4DOS is the simplest and survives various "repair boot sector" procedures
* if partition: hide the recovery partition, make GRUB4DOS only show additional menu if Esc key pressed (hiddenmenu command)
< sample autorun file >
#!/bin/sh
echo "** Are you really sure that you want to restore the system drive C:,**"
echo "** all installed programs and all data to freshly installed state?**"
echo ""
echo "** This will delete ALL user data (documents, pictures etc.)**"
echo "** so you should try to save the most important stuff on a pendrive**"
echo "** or portable hard disk first. If Windows does not boot, try this:**"
echo "** - press Alt+Ctrl+Del here**"
echo "** - as your computer is rebooting, keep tapping F8 (once a second)**"
echo "** until you see a menu with "Safe Mode" option on top. Activate it.**"
echo ""
echo "** If you want to continue, write: YES (has to be capitals)**"
echo "** then hit the Enter key**"
echo ""
echo "** If you write anything else, the computer will start in a rescue**"
echo "** mode (ie. System Rescue CD).**"
echo ""
echo ""
echo "** THIS IS YOUR LAST WARNING BEFORE OVERWRITING THE DRIVE C:**"
echo ""
read wpisal
if [ "$wpisal" = "YES" ];
then
echo "Here we go"
partimage -f2 -b restore /dev/sda1 /mnt/cdrom/image/diskc.000
sync
shutdown -r now
else
echo "You typed: $wpisal, not YES; starting Linux"
echo "press any key to continue or Alt+Ctrl+Del to reboot"
read -n 1 -s
fi
-- < sample autorun file > --
* if DVD: make image of recovery partition (with image of system partition) rather than system partition,
* if DVD: adjust default kernel loading timeout in isolinux,
* if DVD: an option to re-write mbr makes sense in case the HDD was replaced
System Rescue CD always mounts it's media on /mnt/cdrom (unless you choose to load to RAM)
The disclaimer is going to be different in case of DVD recovery, obviously.