Troubleshooting a capture

Troubleshooting a capture
To make this process easier, we are going to use an Windows XP image. Note that this process has not been tested on Windows 7. Please also note that this process will change your partitions on the client computer. This tutorial assumes that your disk is /dev/sda1.

 In the management portal, start a debug task for the client computer in question. Allow the client to boot and at the bash prompt type the following commands. mkdir /images mount -o nolock x.x.x.x:/images/dev /images (where x.x.x.x is the server ip) cd /images dd if=/dev/sda of=/mbr.backup count=1 bs=512 /usr/local/sbin/ntfsresize -f -i -P /dev/sda1 Look for You might resize you will need this number, so write it down. We will call this number NTFSSize. Take NTFSSize and divide it by 1000 Now add 300000 to that number and write down as N</li> Now take NTFSSize again and multiply it by 1.1 and then round that to the nearest whole number and write it down as F</li> /usr/local/sbin/ntfsresize -f -n -s Nk /dev/sda1 (where N is the value calculated above with a k after it.</li> If the test above ends successfully then run: /usr/local/sbin/ntfsresize -f -s Nk /dev/sda1</li> fdisk /dev/sda</li> Press "d", then Enter</li> Press "w", then Enter</li> fdisk /dev/sda</li> Press "n", then Enter</li> Press "p", then Enter</li> Press "1", then Enter</li> Press "1", then Enter</li> Press "+FK", then Enter (where F is the value calculated above; K must be capital)</li> Press "t", then Enter</li> Press "7", then Enter</li> Press "a", then Enter</li> Press "1", then Enter</li> <li>Press "w", then Enter</li> <li>partprobe</li> <li>/usr/local/sbin/partimage save /dev/sda1 /images/dev/[somefile] --volume=9900000000 -z1 -o -d -f3 -b</li> <li>dd if=/mbr.backup of=/dev/sda</li> <li>Press "w", then Enter</li> <li>partprobe</li> <li>/usr/local/sbin/ntfsresize /dev/sda1 -f -b -P</li> <li>mv /images/dev/[somefile] /images/[somefile] </ol>