Showing posts with label existing. Show all posts
Showing posts with label existing. Show all posts

Sunday, February 6, 2011

SSD Saga continued

So I got my OCZ Vertex2 SSD some time ago, and I managed to get it running in AHCI mode on my existing Windows XP pc. However, I had not yet transferred my windows system partition from hdd to ssd. A good job for Super Bowl Sunday, as it mirrored the highs and lows, the moments of elation and crushing despair, that I would have experienced had I watched the game itself.

After many false starts, I arrived at this process:

1) I aligned the partition, and formatted the whole ssd drive as one partition.

2) I used Clonezilla to copy my C: drive partition on my hdd to the new empty partition on the ssd. I used the "device-device" (device to device) menu option, with the basic (not advanced) option.

So far, so good. Here's where the fun began. Naturally, after such a cloning operation (operating on partitions, not the whole disk), the master boot record on the SSD was not set up properly to boot into windows.

First, I unplugged the hdd, so the ssd would show up as C: (and so I wouldn't fat-finger it into oblivion). I booted from the XP install disk into the Recovery Console, and used the three classic incantations:

fixmbr
fixboot C:
bootcfg /rebuild

This is supposed to repair the mbr, and make the drive bootable. No dice. I just received the message "Error loading operating system" on a black screen.

I turned to the old reliable, Ultimate Boot Cd (not UBCD4win this time)

It comes with several MBR tools. The one that worked for me was MBRWork (version 1.07b)

Here's how to use MBRWork, from here and here
Steps to recover lost partitions
7> Change active hard drive. (ignore if you have only one hard drive)

1> Backup first track

4> Reset MBR to zero

3> Reset EMBR area to zero.

A> Recover MS Partitions (see fig 2)

5> Install standard MBR code

Reinstall your boot manager. (if used)

See explanations below..

Below view shows after 4> Reset MBR to zero. A> Recover MS Partitions has been
added to the list of options, also notice MBR Partition Information is
now all zeros. There are no longer any partition boundaries, meaning the hard
drive is unbootable and you can't read any data. If you now try to use fdisk
or other utility to recreate the partitions, new file tables will mean all
your data will be inaccessible, except for data rescue efforts. MBRWork finds
the original partition boundaries and reconstructs them exactly as they were,
meaning your computer works again and the data is intact.

MBRWork Menu

1) Backup First Track This is your safety valve to put things back as they were
2) Restore First Track Appears as an option only after using 1)
3) Reset EMBR Clear extended partition area
4) Reset MBR Remove partitions
5) Install Std MBR Same as fdisk /mbr (removes any boot manager)
6) Set active partition Also can be done with fdisk
7) Change active HD
8) Only shows if DDO present Remove Dynamic Disk Overlay (i.e. EZDrive, Maxblast)
9) Capability Check Runs tests on your BIOS, makes no changes.
E) Exit
A) Recover partitions Appears only after running 3) (and/or 4)

Success! It boots, and is much much faster booting and loading programs. And, it's still aligned properly, according to this ssd alignment calculator.

However, if you're using XP, and thinking about transferring your existing install to an ssd, know that it is not an easy or straightforward operation. Newer versions of windows are apparently much smarter about the way they handle ssds.

Thursday, November 18, 2010

How to switch Windows XP from IDE mode to AHCI mode.

Many recent motherboards include AHCI-capable SATA controllers. However, if you have an existing installation of Windows XP, you can not easily switch from IDE to AHCI mode.

If you are doing a fresh install of Windows XP, you can introduce the proper drivers with the old F6 method, or by slipstreaming the needed drivers on to you own custom install disk. However, for existing installations of XP, there's a catch-22.

You can't switch to AHCI mode in the BIOS - that causes a Stop Error (BSOD) at the start of the boot process. This is because the Windows bootloader loads the existing IDE driver, but the motherboard is presenting an AHCI interface.

Neither can you solve the problem by replacing the Windows driver first. The AHCI drivers won't install, since all Windows can see is an IDE controller.

Some vigorous googling revealed nothing more than some dubious and dated registry hacks, or the suggestion to do a Repair installation of XP.

I wasn't satisfied with any of those solutions. I thought, "Isn't this chicken-and-egg problem the kind of thing that Utility Boot CDs are supposed to solve?" Indeed. There is a little utility on the Ultimate Boot CD for Windows called Fix HDC, purported to "Fix the Hard Drive Controller when replacing your motherboard on an XP system" That sounds good to me.

Now, the Ultimate Boot CD for Windows (UBCD4Win) is a decidedly do-it-yourself affair. You build it yourself, based on your own copy of the Windows XP install disk (I used an nLite install disk, slipstreamed with SP3 and the right AHCI drivers, but a plain Windows XP install CD should work fine too, since UBCD4Win comes with a bunch of drivers). I hit a snag caused by multiple copies of cygwin1.dll on my computer, but this post helped me clear it up.

So, burn a UBCD4Win cd, and put it in the drive. Boot the computer, and go in to your BIOS to make some changes. First, make sure that the CD player is first in the boot order. Also, change your SATA controller from IDE mode to AHCI mode in the BIOS. Note that many motherboards have two SATA controllers, so make sure you are changing the right one. Mine has a six-port Intel controller, and a four-port controller from Gigabyte.

After a long boot process, UBCD4Win dumps you in to a bizarro-world version of Windows,with a zombie-colored, MS Serif Start menu. No matter, we didn't come here for the design. Under Start > Programs > Registry Utilities, you will find Fix HDC. Make sure you have changed your BIOS to AHCI mode beforehand, otherwise FixHDC will just install regular IDE drivers.

In the Start Menu, Fix HDC is a folder, containing two items. The first allows you to set which Windows installation you want to modify. The second runs the actual Fix HDC utility. It runs in a dos window, and prompts you to back up your installation and/or modify your storage drivers. I chose Modify. UBCD4Win comes with a comprehensive selection of drivers, so Fix HDC will likely find the right driver for your hardware.

If UBCD4Win does not have the right driver for your hardware, it may install a "close enough" driver that will at least allow you to boot into your hard-disk Windows in AHCI mode. Once there, you can upgrade the driver just as you would any other.

This post has a very clear explanation of which driver to use based on your motherboard.

Anyway, the changes made by Fix HDC worked.