Overclock.net › Forums › Components › Hard Drives & Storage › RAID Controllers and Software › FIX: AHCI/SATA drives showing in "Safely Remove Hardware"
New Posts  All Forums:Forum Nav:

FIX: AHCI/SATA drives showing in "Safely Remove Hardware"

post #1 of 56
Thread Starter 
Ever since I set my BIOS to AHCI, I was plagued with my SATA connected drives showing up in the "Safely Remove Hardware" icon.

I understand that eSata, and USB devices should show up there. However, my internal devices, HDDs, CD/DVD/BluRay are showing up as well.

I didn't want to have to reinstall Windows 7, and set BIOS to SATA/RAID.
I wanted a better solution.
I found it!


This is a Registry fix.
You should ALWAYS back up your registry before you make changes - it only takes a second to do it, and if anything happens to it you'll need to reinstall...
Here we go...

Regedit your way to:
HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ services\ msahci
and create a new KEY called "Controller0"
inside Controller0, create a new KEY called "Channel0"
Now inside Channel0, create a new DWORD called "TreatAsInternalPort"
set this value to "1"
(this sets SATA port 0 (Drive C)to no longer show up in "Safely Remove Hardware")

Now, go back into the Controller0 folder again.
inside Controller0, create a new KEY called "Channel1"
Now inside Channel1, create a new DWORD called "TreatAsInternalPort"
set this value to "1"
(this sets SATA port 1 (Drive D)to no longer show up in "Safely Remove Hardware")

And so on, until all internal SATA ports are set to be treated as Internal.
My motherboard has 6 SATA ports, so I have set Channel0 to Channel5.

Here is an example of my registry change:

AHCIregedit.png

Your motherboard may have more or less SATA ports,
just remember to start with 0
6 Ports = 0-5 etc.

Now Reboot to allow changes.

Hooray! only external devices show up now!
post #2 of 56
Nice guide, and useful.

The only thing I would change is this bit:
Quote:
Originally Posted by t0adphr0g;12863711 
If you are unfamiliar with changing your registry, back up your registry before proceeding.

You should ALWAYS back up your registry before you make changes - it only takes a second to do it, and if anything happens to it you'll need to reinstall...
post #3 of 56
Thread Starter 
@the_beast
Thank you, I knew I needed to word that better.

Your input has been added.
Edited by t0adphr0g - 3/25/11 at 4:34am
post #4 of 56
smile.gif
post #5 of 56
work if I have a controller card for the raid?

Regards!
MainRig
(15 items)
 
  
Reply
MainRig
(15 items)
 
  
Reply
post #6 of 56
Quote:
Originally Posted by t0adphr0g;12863711 
Ever since I set my BIOS to AHCI, I was plagued with my SATA connected drives showing up in the "Safely Remove Hardware" icon.

I understand that eSata, and USB devices should show up there. However, my internal devices, HDDs, CD/DVD/BluRay are showing up as well.

I didn't want to have to reinstall Windows 7, and set BIOS to SATA/RAID.
I wanted a better solution.
I found it!


This is a Registry fix.
You should ALWAYS back up your registry before you make changes - it only takes a second to do it, and if anything happens to it you'll need to reinstall...
Here we go...

Regedit your way to:
HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ services\ msahci
and create a new KEY called "Controller0"
inside Controller0, create a new KEY called "Channel0"
Now inside Channel0, create a new DWORD called "TreatAsInternalPort"
set this value to "1"
(this sets SATA port 0 (Drive C)to no longer show up in "Safely Remove Hardware")

Now, go back into the Controller0 folder again.
inside Controller0, create a new KEY called "Channel1"
Now inside Channel1, create a new DWORD called "TreatAsInternalPort"
set this value to "1"
(this sets SATA port 1 (Drive D)to no longer show up in "Safely Remove Hardware")

And so on, until all internal SATA ports are set to be treated as Internal.
My motherboard has 6 SATA ports, so I have set Channel0 to Channel5.

Here is an example of my registry change:

AHCIregedit.png

Your motherboard may have more or less SATA ports,
just remember to start with 0
6 Ports = 0-5 etc.

Now Reboot to allow changes.

Hooray! only external devices show up now!

Does this work the opposite way as well? Can i create this setting in order to make external drives appear in safely remove by setting the option "1"? Cause i dont get the safely remove for the eSata drive i have connected...

Also can i use safely remove on internal drives as well if AHCI is not enabled? Can this be done, and is it safe?
Server
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 II x4 640 Gigabyte 880-GA UD3H rev2.1 Gigabyte Radeon 5770 Silent Cell 2x 2GB Kingston 1333 DDR-3 
Hard DriveOSPowerCase
2x Vertex 2 (RAID 0) + 4 Samsung F4 Storage Windows 7 Home Premium Seasonic X-650 CoolerMaster HAF 912+ 
  hide details  
Reply
Server
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 II x4 640 Gigabyte 880-GA UD3H rev2.1 Gigabyte Radeon 5770 Silent Cell 2x 2GB Kingston 1333 DDR-3 
Hard DriveOSPowerCase
2x Vertex 2 (RAID 0) + 4 Samsung F4 Storage Windows 7 Home Premium Seasonic X-650 CoolerMaster HAF 912+ 
  hide details  
Reply
post #7 of 56
I tried setting the value to 0 so that my esata drive gets the safe remove option and it didnt work. Any other way to do this? As i said i'm looking for the oppsoite effect so that i can safely remove esata drives on Windows.
Server
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 II x4 640 Gigabyte 880-GA UD3H rev2.1 Gigabyte Radeon 5770 Silent Cell 2x 2GB Kingston 1333 DDR-3 
Hard DriveOSPowerCase
2x Vertex 2 (RAID 0) + 4 Samsung F4 Storage Windows 7 Home Premium Seasonic X-650 CoolerMaster HAF 912+ 
  hide details  
Reply
Server
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 II x4 640 Gigabyte 880-GA UD3H rev2.1 Gigabyte Radeon 5770 Silent Cell 2x 2GB Kingston 1333 DDR-3 
Hard DriveOSPowerCase
2x Vertex 2 (RAID 0) + 4 Samsung F4 Storage Windows 7 Home Premium Seasonic X-650 CoolerMaster HAF 912+ 
  hide details  
Reply
post #8 of 56
Nice info t0adphr0g
ASRock X99 ITX
(6 items)
 
Hyper-V NAS
(9 items)
 
 
CPUMotherboardGraphicsRAM
intel 5820k ASRock X99E-ITX/ac KFA2 GeForce GTX 980Ti Corsair Vengeance LPX 16GB DDR4 PC4-24000C15 
Hard DriveCase
Samsung 850 EVO 1TB cooler master 915f 
  hide details  
Reply
ASRock X99 ITX
(6 items)
 
Hyper-V NAS
(9 items)
 
 
CPUMotherboardGraphicsRAM
intel 5820k ASRock X99E-ITX/ac KFA2 GeForce GTX 980Ti Corsair Vengeance LPX 16GB DDR4 PC4-24000C15 
Hard DriveCase
Samsung 850 EVO 1TB cooler master 915f 
  hide details  
Reply
post #9 of 56
Thread Starter 
Quote:
Originally Posted by vicrol123;13002759 
work if I have a controller card for the raid?

Regards!

I created this fix with only the motherboard SATA stack in mind, Windows MSAHCI sees it as Controller 0. Does it see your RAID card as Controller 1? Then make a key accordingly.
Quote:
Originally Posted by therock003;13574068 
Does this work the opposite way as well? Can i create this setting in order to make external drives appear in safely remove by setting the option "1"? Cause i dont get the safely remove for the eSata drive i have connected...

Also can i use safely remove on internal drives as well if AHCI is not enabled? Can this be done, and is it safe?

1. As far as your eSata drive, if it is plugged into SATA ports 0-6, and you want it to still be treated as external, then change the value to "0".

2. My "fix" is for systems that are running AHCI. If you are not running AHCI, this fix is not for you.
Edited by t0adphr0g - 9/5/11 at 9:08pm
post #10 of 56
.
My drives no longer appeared in the Safely Remove Hardware icon after installing Intel Rapid Storage Technology...

Intel Rapid Storage Technology Download

IRST also installs the Intel AHCI driver (as opposed to the generic Microsoft one), notifies you of any storage system errors, and offers several other benefits...

Intel Rapid Storage Technology Product Overview
.
Edited by B-Con - 11/27/12 at 10:56am
BMW 932i
(19 items)
 
  
CPUMotherboardGraphicsRAM
i7-920 D0 @ 4.0 GHz (1.28V) ASUS P6X58D-E EVGA GTX 780 Classified (376.53) 3 x 4 GB G.Skill Ripjaws Z 1600 MHz (7-8-8-22) 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 850 EVO 500 GB Samsung 840 PRO 256 GB Western Digital Caviar Black 1 TB Sony AD-7240S DVD RW 
CoolingOSMonitorMonitor
Corsair H55 (GT AP-15 Pull + Shroud) Windows 10 Professional 64-bit ASUS PB278Q 27" LED 1440p ViewSonic VX2433wm 24" LCD 1080p 
MonitorKeyboardPowerCase
Samsung LN46C630 46" LCD TV 1080p Logitech G510s EVGA SuperNOVA 750 G3  Cooler Master HAF 932 
MouseMouse PadAudio
Roccat Kone XTD (Laser) SteelSeries 4HD NVIDIA / Yamaha RX-V467 / SteelSeries Siberia v2 
  hide details  
Reply
BMW 932i
(19 items)
 
  
CPUMotherboardGraphicsRAM
i7-920 D0 @ 4.0 GHz (1.28V) ASUS P6X58D-E EVGA GTX 780 Classified (376.53) 3 x 4 GB G.Skill Ripjaws Z 1600 MHz (7-8-8-22) 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 850 EVO 500 GB Samsung 840 PRO 256 GB Western Digital Caviar Black 1 TB Sony AD-7240S DVD RW 
CoolingOSMonitorMonitor
Corsair H55 (GT AP-15 Pull + Shroud) Windows 10 Professional 64-bit ASUS PB278Q 27" LED 1440p ViewSonic VX2433wm 24" LCD 1080p 
MonitorKeyboardPowerCase
Samsung LN46C630 46" LCD TV 1080p Logitech G510s EVGA SuperNOVA 750 G3  Cooler Master HAF 932 
MouseMouse PadAudio
Roccat Kone XTD (Laser) SteelSeries 4HD NVIDIA / Yamaha RX-V467 / SteelSeries Siberia v2 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: RAID Controllers and Software
Overclock.net › Forums › Components › Hard Drives & Storage › RAID Controllers and Software › FIX: AHCI/SATA drives showing in "Safely Remove Hardware"