So I got some new systems for my parents. Needs to have Windows 7 on them, complete with a number of applications they use. Quite a lot of work to prepare one (I’m quite a bit of a windows noob), so didn’t want to do it twice. Searched the internet for information and finally got some good tips from a friend up north. To begin I made an image backup of the installed system. Unsure if my attempts to copy it to the second system would be successful, I wanted to make sure I had a backup. So in true Linux fashion I booted the system over the net using my PXEBoot with a UnionFS based NFS root and a kernel supporting all the hardware. Now to make an image. The system has 3 partition, the first one seems to be VFAT and the other 2 NTFS. So to prepare I got some tools I needed on the NFS image: apt-get install ntfsprogs openssh-client I copied everything to my fileserver over ssh. To make it a bit more reproducable, I made it into a (stupid) simple shellscript. First it backups the MBR and partition table. Then it just block level backups the first partition and uses ntfsclone to backup the second and third partitions. #!/bin/bash
BASEDIR=/var/backups So using this shellscript I first backuped the system. Then it was time to get Windows in such a state that it could be transferred to another system (exactly the same hardware BTW). I ended up using sysprep to do this. It seems this is the best way to start it. Start a cmd window and do: cd c:windowsSystem32sysprep
sysprep /oobe /generalize /shutdown After waiting for a bit this failed. Fortunatly the command leaves behind a logfile in the directory: Panther/setuperr.log That gave me at least some clue. It turned out you have to stop the service: WMPNetworkSvc After stopping the service, the sysprep command ran without a problem. Now I booted the system over the network again and made a new image with the same shellscript. Then I hooked up the second system and booted that off the network. I made a new script to restore the image. #!/bin/bash
BASEDIR=/var/backups Using the script I restored the image. And, surprise, surprise, the system actually booted Windows 7! Although the system behaves like a fresh install (you have to enter user settings, product code, accept license etc), everything is still there. So no reinstalling software etc. |