Jun. 20th, 2012

krick: (Default)
Yesterday, I was trying to find a solution to the problem documented in this thread...


To summarize, for some reason, on some motherboards (mainly Asus), if you attempt to install Windows XP (any flavor) on an SSD with an aligned partition, the XP install will fail on the first reboot with the "Error Loading Operating System" message.

Then, last night, I finally found a fairly easy solution to this problem and I felt that I needed to share in case someone else runs into this issue.

First I installed XP normally and partitioned and formatted using the XP install CD as usual. Note that this will produce an un-aligned partition.

Then I downloaded the gparted live cd iso from here and burned a CD...

...and I followed the instructions I found on this page...

Start up Gparted and find your SSD in the upper-right dropdown menu. Select it, and click on your first partition in the menu. Hit the Resize/Move button in the toolbar. Change the "Free Space Preceding" box to 2MB, uncheck "Round to Cylinders", and hit "Resize/Move". (If you're using a newer live CD, check the "MiB" box). Hit Apply once and let it do its thing.

Now hit Resize/Move again, and change the "Free Space Preceding" box to 1MB. Uncheck "Round to Cylinders" again, hit Resize/Move, then click Apply. Now your drive will be aligned to exactly 2048 blocks after the beginning of the disk, which allows for optimal SSD performance. Note that if you have multiple partitions on your SSD, you'll need to repeat this process for each partition, not just the first one on the disk.

Yes, moving it 2MB away then moving it back 1MB seems like a long, roundabout method, but Gparted measures space in a weird way. When you first start up Gparted, your partition will have less than 1MB of space preceding it, but Gparted will only measure it as 0-meaning if you align it to 1MB right off the bat, it'll keep the drive annoyingly misaligned at 1.03MB. If you set it to 2MB, hit Apply, and then move it back to 1MB, it works fine.

Miscellaneous notes:

The difference in boot time between the original un-aligned install and the new aligned install are shocking.

This procedure is only needed for installing Windows XP. Windows Vista and Windows 7 create aligned partitions by default. XP was released before "aligned partitions" was even a thing.

No re-install of XP is necessary after this procedure.

I have a single partition. When I went to shift the partition back after shifting it 2MB, it showed that I had 3MB at the beginning. I think this was rounding in the display or something. I changed it to 1MB as instructed. Then I re-adjusted the partition size so that there was zero space after the partition. When you shift right, it shrinks the partition, then shifting back will leave space at the end if you don't grow the partition to use the space.

Make sure you have "Round to MiB" selected in the combo box (it replaces the check box in earlier versions of gparted). It should be the default anyway.

There is another procedure for creating aligned partitions that involves booting with a Windows 7 CD and partitioning your drive in the recovery console, then booting with the XP CD and installing as usual. It's detailed on this page... http://www.ocztechnologyforum.com/wiki/index.php?title=How_to_set_up_Windows_on_a_VERTEX

This method will work for most people, but if you try it and get the "Error Loading Operating System" message, as I did, then the procedure I describe above using gparted is the only way that I know to align your partition.


krick: (Default)

October 2012

21222324 252627

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 20th, 2017 12:44 pm
Powered by Dreamwidth Studios