#!/bin/bash echo 'Are you sure you want to replace /dev/hda2 (the NT partition) with the image /home/BackUp/NT-partition.bz2? This will wipe all your data, if unsure mail pcfe@gmx.net and ask first, this is _very_ dangerous.' echo '[yes/no]' read ANSWER if [ "$ANSWER" = "yes" ]; then echo "This is a very lengthy procedure, best run at night" echo "Are you really sure ? [yes/no]" read NEWANSWER if [ "$NEWANSWER" = "yes" ]; then echo "OK gonna kill your NT ;)" echo "This will take at least 1,5 hours, so go away." echo "You can still work under Linux, but it will be slow" echo "You will get a prompt after this line when I'm done" bzcat /home/BackUp/NT-partition.bz2 > /dev/hda2 fi fi