We’ve talked recently about the importance of aligning your partitions on your SSD or your RAID array. It helps performance, sometimes tremendously, and it also dramatically improves your SSD’s life expectancy. Newer versions of Windows automatically align their partitions, if you do a clean installation to an empty drive. Older versions of Windows create their partitions starting at sector 63, for tradition’s sake. Someone at Microsoft must be Lutheran.
Or maybe it’s for compatibility’s sake. But would I pass up an opportunity to take a swipe?
Two readers, Jim and Xrocode, suggested utilities to do the job. One costs $30 and seems fairly automatic. One is free and requires a small amount of work. Guess which one I like? (Hint: I’m Scottish and Lutheran, so it’s no contest. Grab the freebie here. It’s a 155MB download, so it doesn’t even take all that long.)
To align your disk:
Make a backup. You shouldn’t run into any problems doing this. But I can think of any number of disasters that weren’t supposed to be a problem either, so if there’s anything important on the drive, make a backup.
Download Parted Magic CD and burn the ISO or create a bootable USB drive.
Boot from it. Click the Partition Editor icon on the desktop when it appears.
First, check and make sure this is even necessary. Right-click on your primary partition and select Information. Look at the starting sector. If it starts on sector 63, it needs to be aligned. If it starts on a nice, even binary number like 2048 or 4096, it’s already aligned and you can skip the rest.
Select your primary partition. Choose Partition -> Resize/Move.
Move your primary partition to the right by 1 or 2 MiB, whatever it allows. Select the option that says “Align to MiB.” Grow the partition into the few megs at the end of the disk if you want. Consider it your reward for your trouble, like finding a couple of pennies on the sidewalk.
Click the Apply Pending Changes icon. Accept the dire warning (I’ll tell you how to fix that in a minute), then hurry up and wait. It will do a read-only pass to look for problems, then do the real thing. It took about 10 minutes, total, for it to do both on my 30 GB OCZ Vertex drive.
If your system won’t boot afterward:
Boot off a Windows 7 or Vista CD, select your language, then select the Recovery Console. In my case, it found the Windows installation and offered to fix it for me. I let it, and it worked. If that doesn’t work, or if you want more control, drop to a command prompt and issue the following two commands:
Or boot off your Windows XP CD and do the same thing, except the commands for the command prompt are the following:
If you don’t have an installation CD, you can download a Windows 7 recovery disc from http://neosmart.net/blog/2009/windows-7-system-repair-discs/ and use that to repair your MBR.
Once you’re up and running, all that’s left to do is to enjoy the newfound speed and improved life expectancy. Use some of that $30 you saved to pay off a debt a little faster, and do me a favor and give a little of it to a charity that helps people.
- How to check and fix disk partition alignment to improve SSD life expectancy and performance
- Upgrading from Windows XP to Windows 7 with USB media
- My Duron: It’s alive! It’s alive!
- How to build bootable Debian installation USB media from Windows
- How to use Sticky Keys to change/unlock a forgotten password