Internal Hard drive showing in “Safely remove Hardware”

There are two predominant types of drives on the basis of their mode of use. Of Course, first is internal and other is external drives. Difficulty arises when the internal hard drive treated as an external drive by the operating system. Then the OS starts showing these drives into a list of “Safely remove drive” list. Now what?

Before going toward solution you have to aware with the interfaces of ports. Basically, there are three types of ports,

  1. IDE (Integrated Drive Electronics or IBM Disc Electronics)
  2. AHCI (Advanced Host Controller Interface)
  3. RAID (Redundant Array of Inexpensive Disks)

An old device driver system with ATA or PATA interface mostly uses the IDE interface. Now famous SATA and eSATA interface works on the AHCI interface. Same way array of two or more AHCI drives known as RAID interface.

Solution using Registry Editor

When you change this interface to AHCI then the OS will treat your internal hard drive as an external one. You may face this problem mostly on Windows 7. Some guys opt for reinstalling the windows, but the problem is still alive. To work around this problem you to pursue following steps,

Regedit for setting to treat the internal drive as external one

Regedit and msahci

  1. Press Start Button (Window Logo) + R button to open Run window
  2. Type “regedit” and click ok
  3. It will open new window as Registry Editor
  4. Go to following location
    1. HKEY_LOCAL_MACHINE
    2. >SYSTEM
    3. >CurrentControlSet
    4. >Services
    5. >msahci
  5. Create new KEY with name “Controller0″ (last character is zero)
  6. Inside¬†“Controller0”, create new KEY with name “Channel0” (last character is zero)
  7. Now inside the Channel0 create new DWORD Value with name “TreatAsInternalPort” and set the value to “1”
Regedit 32 bit or 64 bit

Regedit DWORD value

 

How to Identify Channel Numbers

Unlike old ATA and PATA interface SATA does not use Primary and Secondary channel nomenclature. Instead, they use numbering system like SATA0 and SATA1. However, you may predict the Channel number against their correspond SATA drive number. For this follow below instruction,

how to know Channel Number

Disk Management

  1. Right Click on My Computer
  2. Select > Manage
  3. Click on Disk Management
  4. Check the Disk number associate with drive

However, due to the technical limitation, the disk drive number shown in Computer Management (as above) or Device Manager may not reflect the actual channel number. You might require to set the value and reboot the system and verify that appropriate port is set correctly. Simple you have to follow the trial and error pattern. Setting the channels up to two (0 and 1) are sufficient in maximum cases.

Now reboot your computer and hooray!! Your internal drive will not show in “Safely remove hardware”. Even though you still facing above problem, then reveal it in the comments. We will give our best.