I once installed Familiar Linux on an IPAQ 3950 of a friend of mine, who now decided to have PocketPc back.
Of course I had previously saved the wince_image.gz for later restoration. Thus, I went to the handhelds web page and lurked into the documentation to find some hints about the restoration. I found this document that seemed to fit my needs.
This basically says to reboot the pda, get to the boot prompt via a serial communication program (I used hyperterminal) and load the wince_image.gz.
Unfortunately, this method does not seem to work, and when the transmission of the wince_image.gz ends (it takes about half an hour!) the pda complains about the size of the image file.
Luckily, I found this other document, http://handhelds.org/moin/moin.cgi/RestoringPocketPc, which says that you need to prepare your image file first, if you have an H39xx or H5xxx with these 3 steps:
gunzip wince_image.gzThen, you must upload root_image.gz.
dd bs=1k count=32256 if=wince_image of=root_image
gzip -9 root_image
With this solution, the image loads successfully, and after that I could issue a boot wince at the boot prompt (in the serial communication program). After that, resetting the pda brings back PocketPc.