Make SATA Drives Non-Ejectable In Windows
I recently had the problem that my internal SATA drives were showing up in the Windows 7 Safety Remove Hardware and Eject Media tray icon.Â Since I don’t plan on ejecting my internal drives, I decided to solve the problem.
This How can I remove the option to eject SATA drives from the Windows 7 tray icon? Q&A gave the information I needed (I mainly used the first answer), but didn’t spell out how to find the correct driver.Â So I will go over the procedure I used.Â Â Note: if you’re not comfortable with hacking Windows, don’t do this!
- My configuration is an Asrock 960GMUS3S FX motherboard with a Samsung 840 Pro SSD on the first SATA 3 channel and a WD HDD on the second SATA 3 channel.Â The first SATA 2 channel is used for eSATA; the last 3 channels are currently unused.
- First open up the Device Manager, find the controllers section, right click on the appropriate controller, and click on the Properties item.Â In my case, both drives are on the Asmedia 106x SATA Controller under IDE ATA/ATAPI controllers.
- Click the Driver tab.
- Click on the Driver Details button.
- Note the name of the driver file; in my case, it’s asahci64.sys
- Now the procedure pretty much follows the Q&A.Â Start by opening Regedit.
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services, and then find the name that matches the drive file name in step 5 (asahci64 in my case).
- Add the keys as specified in the Q&A.Â In my case, I added Controller0, and under Controller0 I added Channel0 (for the SSD) and Channel1 (for the HDD).Â Under each channel, I added the DWORD value TreatAsInternalPort, and then set the value to 1.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\asahci64\Controller0] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\asahci64\Controller0\Channel0] "TreatAsInternalPort"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\asahci64\Controller0\Channel1] "TreatAsInternalPort"=dword:00000001
- Reboot and verify everything works as expected (it took me a few tries to get everything right).