FIX: AHCI/SATA drives showing in "Safely Remove Hardware" - Overclock.net - An Overclocking Community

Forum Jump: 

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

Reply
 
Thread Tools
post #1 of 57 (permalink) Old 03-25-2011, 04:27 AM - Thread Starter
New to Overclock.net
 
t0adphr0g's Avatar
 
Join Date: Dec 2009
Location: Maryland City, Maryland USA
Posts: 868
Rep: 63 (Unique: 57)
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!
t0adphr0g is offline  
Sponsored Links
Advertisement
 
post #2 of 57 (permalink) Old 03-25-2011, 05:11 AM
New to Overclock.net
 
the_beast's Avatar
 
Join Date: Feb 2009
Location: London, UK
Posts: 5,330
Rep: 544 (Unique: 400)
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...

Quote:
Originally Posted by steevieweevie go_quote.gif
I just learned that <3 is a heart!!! I didn't know. It looked me like a nutsack or something...
[email protected] Quotes (Click to show)Warning: Spoiler! (Click to show)

Quote:
Originally Posted by juano go_quote.gif
Nope z, beast is right.
Quote:
Originally Posted by zodac go_quote.gif
I lied about stuff to make me sound more awesome.
Quote:
Originally Posted by csm725 go_quote.gif
smile.gif it's fine. as long as you fold for OCN it doesn't matter how stupid you are. biggrin.gif
Quote:
Originally Posted by zodac go_quote.gif
Thank you.


the_beast is offline  
post #3 of 57 (permalink) Old 03-25-2011, 05:32 AM - Thread Starter
New to Overclock.net
 
t0adphr0g's Avatar
 
Join Date: Dec 2009
Location: Maryland City, Maryland USA
Posts: 868
Rep: 63 (Unique: 57)
@the_beast
Thank you, I knew I needed to word that better.

Your input has been added.
t0adphr0g is offline  
Sponsored Links
Advertisement
 
post #4 of 57 (permalink) Old 03-25-2011, 05:48 AM
New to Overclock.net
 
the_beast's Avatar
 
Join Date: Feb 2009
Location: London, UK
Posts: 5,330
Rep: 544 (Unique: 400)
smile.gif

Quote:
Originally Posted by steevieweevie go_quote.gif
I just learned that <3 is a heart!!! I didn't know. It looked me like a nutsack or something...
[email protected] Quotes (Click to show)Warning: Spoiler! (Click to show)

Quote:
Originally Posted by juano go_quote.gif
Nope z, beast is right.
Quote:
Originally Posted by zodac go_quote.gif
I lied about stuff to make me sound more awesome.
Quote:
Originally Posted by csm725 go_quote.gif
smile.gif it's fine. as long as you fold for OCN it doesn't matter how stupid you are. biggrin.gif
Quote:
Originally Posted by zodac go_quote.gif
Thank you.


the_beast is offline  
post #5 of 57 (permalink) Old 04-04-2011, 07:01 PM
New to Overclock.net
 
Join Date: May 2006
Posts: 43
Rep: 1 (Unique: 1)
work if I have a controller card for the raid?

Regards!

vicrol123 is offline  
post #6 of 57 (permalink) Old 05-20-2011, 09:30 AM
New to Overclock.net
 
therock003's Avatar
 
Join Date: Apr 2009
Posts: 640
Rep: 4 (Unique: 4)
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?

therock003 is offline  
post #7 of 57 (permalink) Old 08-31-2011, 03:25 PM
New to Overclock.net
 
therock003's Avatar
 
Join Date: Apr 2009
Posts: 640
Rep: 4 (Unique: 4)
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.

therock003 is offline  
post #8 of 57 (permalink) Old 09-03-2011, 05:14 AM
New to Overclock.net
 
Zeus's Avatar
 
Join Date: Jun 2004
Location: Herts, UK
Posts: 2,912
Rep: 222 (Unique: 155)
Nice info t0adphr0g

Quote:
Colin McRae: - "If in doubt, flat out"
Zeus is offline  
post #9 of 57 (permalink) Old 09-05-2011, 09:59 PM - Thread Starter
New to Overclock.net
 
t0adphr0g's Avatar
 
Join Date: Dec 2009
Location: Maryland City, Maryland USA
Posts: 868
Rep: 63 (Unique: 57)
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.
t0adphr0g is offline  
post #10 of 57 (permalink) Old 09-11-2011, 12:21 PM
New to Overclock.net
 
B-Con's Avatar
 
Join Date: Mar 2010
Location: Atlanta, GA
Posts: 774
Rep: 121 (Unique: 97)
.
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
.

BMW 932i
(19 items)
CPU
i7-920 D0 @ 4.0 GHz (1.28V)
Motherboard
ASUS P6X58D-E
GPU
EVGA GTX 780 Classified (417.71)
RAM
3 x 4 GB G.Skill Ripjaws Z 1600 MHz (7-8-8-22)
Hard Drive
Samsung 850 EVO 500 GB
Hard Drive
Samsung 840 PRO 256 GB
Hard Drive
Western Digital Caviar Black 1 TB
Optical Drive
Sony AD-7240S DVD RW
Power Supply
EVGA SuperNOVA 750 G3
Cooling
Corsair H55 (GT AP-15 Pull + Shroud)
Case
Cooler Master HAF 932
Operating System
Windows 10 Professional 64-bit
Monitor
ASUS PB278Q 27" LED 1440p
Monitor
ViewSonic VX2433wm 24" LCD 1080p
Monitor
Samsung LN46C630 46" LCD TV 1080p
Keyboard
Logitech G510s
Mouse
Roccat Kone XTD (Laser)
Mouse
SteelSeries 4HD
Audio
NVIDIA / Yamaha RX-V467 / HyperX - Cloud II
▲ hide details ▲


B-Con is offline  
Reply

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the Overclock.net - An Overclocking Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
If you do not want to register, fill this field only and the name will be used as user name for your post.
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off