"Error 702" when using PQDiskNT to resize or move a partition
Situation:
While attempting to resize or move a partition using PQDiskNT, you see "Error 702."
Solution:
To avoid these error messages, prevent the "Updating System Information" processes in PQDiskNT from running.
When PQDiskNT is used to perform an operation on a volume that is visible and that is assigned a drive letter by Windows, it runs one or more processes called "Updating System Information." The only way to prevent these processes from running (since PQDiskNT has no /NSU switch) is to dismount the volume using DISKPART and to hide the partition before performing a PQDiskNT operation on it.
Dismounting a volume using DISKPART
To dismount a volume using built-in DISKPART utility in WinPE, create a text file containing the following lines:
SELECT DISK <zero-based drive number>
SELECT PARTITION <one-based partition number>
REMOVE
For example, to dismount the first volume on the first drive, the script would read as follows:
SELECT DISK 0
SELECT PARTITION 1
REMOVE
Note: DISKPART can be used to later remount a volume using the "ASSIGN" command in place of the "REMOVE" command.
To run this script, simply enter the following command line at a WinPE prompt:
DISKPART /S <path to DISKPART script>
For example, if a DISKPART script was named UNMOUNT1.TXT and was located on the root of a network drive mapped to N:\, the command line would be as follows:
DISKPART /S N:\UNMOUNT1.TXT
Note:
For more instructions on using DISKPART, type DISKPART at a WinPE command prompt, and then type HELP
To view available DISKPART command-line parameters, type DISKPART /?
Hiding the partition prior to operation
To prevent the PQDiskNT "Updating System Information" processes from running by default, you must also hide the partition that you are manipulating before performing an operation on it. For example, if you wanted to resize a specific primary partition smaller by 3000 MB and then move it to the end of a drive, the original script might look something like this:
SELECT DRIVE 1
SELECT PARTITION 2
RESIZE SMALLER 3000
MOVE RIGHT MAX
To hide the partition during the operation, add the HIDE and UNHIDE commands to your script, as in the following example:
SELECT DRIVE 1
SELECT PARTITION 2
HIDE
RESIZE SMALLER 3000
MOVE RIGHT MAX
UNHIDE
Technical Information:
This problem usually occurs at the end of a PQDiskNT script after all operations have been completed successfully. In other words, this problem usually does not prevent PQDiskNT from completing its operations successfully.
Last Modified: 02.12.2004 |