Windows 8.1 – Enabling AHCI after installing Windows

Windows 8 Logo

I have installed Windows 8.1 on a new Solid State Drive (SSD) but there’s a problem. The hard drive controller in my BIOS is set to IDE and I need to change that to AHCI to get the most out of my new SSD.

To make the necessary changes we need to enter a couple of commands into an Administrator command prompt and make some changes in the BIOS of the computer.

First let’s open an Administrator command prompt:

  • Click the Start button and then type cmd. Right-click on Command Prompt in the search results and then select Run as administrator.

Enter the following command:

bcdedit /set {current} safeboot minimal

This will tell the computer to start in Safe Mode (without device drivers running).

Now reboot your computer and enter the BIOS.

To do this repeatedly press the F1, F2, F10 or Delete keys when the computer re-starts.

Complete the following steps inside your BIOS:

  • Change the SATA drive setting to AHCI.
  • Exit the BIOS and save settings.

Windows will now  boot into Safe Mode.

Log in and open an Administrator Command Prompt again and enter the following command to disable Safe Mode boot:

bcdedit /deletevalue {current} safeboot

Reboot one more time and you should be all set.

I wish that I had done this sooner – my system does feel more responsive since this change!

Source: http://www.ithinkdiff.com/how-to-enable-ahci-in-windows-8-after-installation/

Windows 8.1 – 100% Drive Activity (Wonky SATA Cable)

Windows 8 Logo

I’ve been having issues with 100% drive activity on Windows 8.1 and had a chance to look at it today.

I ran chkdsk /r on my SSD but this didn’t help. I opened Performance Monitor to have a look at things and had a few tabs in my browser open with troubleshooting tips. When I noticed that my sata DVD drive was not being detected by the OS I opted to open up the case.

I unplugged all of my sata cables and plugged them back in (and checked the power connections for good measure).

After that everything has been working fine – sometimes it is the simple things that make all the difference!

Windows 8 – Post SSD Installation Optimization

I just upgraded my laptop with a new SSD and Windows 8 Pro and found a nice guide for optimizing Hard Drives and Solid State Drives (SSD) here. For an SSD optimization includes reducing the disk space usage of the Operating System and reducing the number of writes to the drive. Below are the steps that I chose to implement from the guide.

Note: The only step that I took prior to installing Windows 8 on my SSD was to check that ACHI SATA mode was enabled in the BIOS. If you are unsure how to do this check the documentation for your motherboard.

Accessing the Control Panel in Windows 8:

There are many ways to get to the Control Panel to make system changes so I will only mention the two that I like. From the Desktop press the Windows key and X together and then click on Control Panel on the pop-up menu. From the Start Screen simply start to type Control Panel and then click on it when you see it in the search results.

Note: My Control Panel is not set to Category View – so my documentation will not follow that layout (I set my view to Large Icons instead).

Turn Off Hibernation:
This will save a few Gigabytes hard drive space (but will also turn off hybrid sleep).

  • From the Desktop press the Windows and X keys together and then click Command Prompt (Admin) from the pop-up menu.
  • Type powercfg -h off and then press Enter.

Shrink Disk Space Usage for System Protection:
This will reduce the amount of drive space available for System Restore data.

  • From the Control Panel click the System icon.
  • In the left hand pane click System Protection.
  • Click the Configure button and then adjust the Max Usage slider for your desired allocation of disk space.

Turn off Drive Indexing for Local Disk (C:):

Update: Turning off indexing will impact Windows 8 apps such as Mail and media apps (as noted by Fred in the comments). I can confirm that the Mail app will not list / auto-complete email addresses while indexing is turned off.

This will reduce the number of writes to your SSD. The speed of SSDs negates the typical benefit of maintaining indexing for all files on drive C.

  • Open File Explorer from the Desktop (or type Computer from the Start Screen and click on Computer in the search results).
  • Right click on Local Disk (C:) and select Properties from the pop-up menu.
  • Un-check Allow files on this drive to have contents indexed in addition to file properties and then click the Apply button.
  • Click OK and then Continue to proceed.
  • At the Error Applying Attributes windows click Ignore All and wait for the change to be completed.

Shrink the Page File?:
This will save drive space. This is more pressing when your computer has a large amount of RAM – as the Page File can become larger than the RAM installed.

The guide I referenced at the beginning of this post recommends manually reducing the Page File to between 512 and 1024MB. Initially I followed this advice but since then discovered a Technet post about Windows 8 and Automatic Memory Dump.

Automatic Memory Dump is the default for a Windows 8 install and it produces a Kernel memory dump. It was created to support the System Managed page file which has been updated to reduce the page file size primarily for small SSDs (or servers with large amounts of RAM). This allows the SMSS process to reduce the page file smaller than the size of RAM.

Obviously there is the facility to increase the size of the page file as needed. When your computer experiences a bug check a new registry key is created:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl\LastCrashTime

For the next 4 weeks the system managed page file will now have a minimum size of the installed RAM.

When you have fixed the system instability that is causing the bug check you can delete the aforementioned registry key if you want the page file to return to its reduced size more quickly.

With this in mind it is your call if you wish to manually set a minimum / maximum for your page file or if you want to let Windows manage it for you. You can change it as follows:

  • From the Control Panel click the System icon.
  • In the left hand pane click Advanced System Settings.
  • Under Performance click the Settings button.
  • Click the Advanced tab and under Virtual Memory click the Change button.
  • Un-check the Automatically manage paging file size for all drives check-box.
  • Select Drive C: and then click the Custom size radio button.
  • Manually set a minimum and maximum size in MB and then click OK.

Change Power Options:
Change the power plan settings – this is so that Idle Time Garbage Collection can run on your SSD when your system is idle (rather than going to sleep).

Note: This change is not recommended for laptops (where the Balanced plan will turn off hard drives after 10 minutes on battery and 20 minutes plugged in). Otherwise choose Never or another reasonable settings in minutes such as 60 or 120 below:

  • From the Control Panel click Power Options.
  • Select the High Performance radio button (on a laptop click Show additional plans).
  • Click Change plan settings and then click Change advanced power settings.
  • Expand the Hard disk option and set the Turn off hard disk after setting to Never.
  • Expand the Sleep option and set the Sleep after setting to Never.
  • Click OK.

Run the Windows Experience Index Assessment:
According to the guide this makes system changes to Windows when it learns that you have an SSD (which has a 0 rpm rotational speed).

  • From the Control Panel click Performance Information and Tools.
  • Click the Rate this computer button.

Finally, reboot your computer!