How to Use Diskpar.exe
Topic Last Modified: 2007-02-14
|The following steps use disk A as an example. However, you can replace this with any disk. Back up any data that you want to keep because you will lose all the data on the disk after you run diskpar.exe|
Before you begin, type Diskpar -i A to check the drive partition information, and then follow these steps to align the starting offset on the disk.
If the disk is a raw disk type, continue to step 3.
Delete all the partitions on the disk and make it a raw disk.
From the command line, type Diskpar -s A. (To obtain the disk drive number, click Control Panel, click Administrative Tools, click Computer Management, and then click Disk Management.)
Ensure that the drive is a raw device without any partitions.
Enter 64 as the starting offset (in sectors).
Enter the maximum number (in MB) for the partition length. The number is displayed in the Command Prompt window.
After diskpar has completed the task, type Diskpar -I A to view the drive partition information.
Use Disk Management to format the partition and select the default allocation unit size (4096) when formatting the partition. (If Disk Management does not detect the drive as formatted, restart the dmserver and dmadmin services, and then format the disk.)