$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
If you read one of VMWare’s Best Practices Guides (in my case this one) then you may have read that it’s important to align guest partitions.
We can do this (for Windows OS) using the DiskPart tool that comes with the OS since Windows 2003 SP1 (there is a hotfix for earlier versions).
On Windows 2008, and higher, all partitions are automatically aligned to a 1 MB boundary.
But how to do this for the OS disk on Server 2003?
My first thought was to open a command prompt during setup, right before creating the partitions and then use diskpart.
However the OS partition is created during the Text portion of the install process and even though we can get a cmd prompt using SHIFT-F10 we get the recovery console (which has a builtin diskpart but cannot align).
So I used a Windows PE bootdisk. Any version with Diskpart should do but I used a bootdisk from Symantec Backup Exec System Recovery that I’ve customized to my own needs.
If you boot the original Symantec disk you can open a command prompt by accessing a hidden feature: move the mouse above the “S” from Symantec until you get a Hand icon and press the left mouse button:
Now we can launch DiskPart and create the partition (see here for a scripted way):
After formatting I used the Partition Table Operations tool to verify the alignment:
I then created an Image of this partition using Altiris RapiDeploy because in my situation this was a requirement.
I checked with the ImageExplorer tool if the alignment (Start Sector) was preserved and this was ok:
And of course I checked if the alignment would be preserved when restoring but it doesn’t:
In the documentation I found the -retainstart switch and when I used that the start sector was ok:
PS: there is also a -align switch but this is not used for aligning the partition!
One Response for "Windows 2003 align OS disk"
A good alternative Windows PE boot disk that works for this purpose that most people probably have by now is any Windows Server 2008 or Windows Server 2008 R2 install DVD.
Ben
Leave a reply