Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Stop USB devices from being in "Safely remove" list

09 Nov 2014   #1
macnab

Windows 7 Professional SP1 64-bit
 
 
Stop USB devices from being in "Safely remove" list

I can stop all my internal AHCI drives from showing up in "Safely remove" list by seting TreatAsInternalPort to true.

Now only my hot-swap drive shows up, so I won't accidentally eject the wrong drive.

But I have a flash-drive which I use for ReadyBoost, and a USB modem. Is there a way to remove them from the list as well? It is very difficult to see the correlation between USB ports in Device Manager and in regedit.


My System SpecsSystem Spec
.
09 Nov 2014   #2
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

It's possible you have a BIOS option to designate SATA ports as eSATA? They would then show as ejectable. I think BIOS would likely also list which controller each device is connected to. I assume this was the method you are using?

Safely Remove Hardware and Eject Media problem.

Hopefully one of our hardware experts will come along with better info

A Guy
My System SpecsSystem Spec
09 Nov 2014   #3
macnab

Windows 7 Professional SP1 64-bit
 
 

Got all the SATA ports working as I want them to. Now I am asking about USB ports. I want my Internet Modem and ReadyBoost flash-drive removed from the list.
My System SpecsSystem Spec
.

09 Nov 2014   #4
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

Ooops, sorry See comment #28 here:

https://fightingforalostcause.net/1044

A Guy
My System SpecsSystem Spec
09 Nov 2014   #5
macnab

Windows 7 Professional SP1 64-bit
 
 

Actually, that is the way I handled my SATA drives, although I got the info elsewhere.
Had a look around there and tried the "Capabilities" route, but that does not work. Didn't work with the SATA drives either.

With SATA drives you work through HKEY|LocalMachine\System\CurrentControlSet\services\msahci.
Found entry for usbstor, but that is generic for USB storage devices, it is not for that device.

Somewhere in the registry is a place to use TreatAsInternalPort for USB devices.
My System SpecsSystem Spec
11 Nov 2014   #6
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

I am not sure if this is what you want as I don't think it actually "removes" that notification.
USB Port Remains Active for Disabled or Safely Removed USB Device

Now if you are going to play in the registry then lease back it up FIRST
Registry - Backup and Restore
Personally I always do this after a clean install and before I do even the simplest changes in the registry.

Just out of pure curiosity why do you use Readyboost?? if it were me (and yes I know you must have your reasons) I would just put in another 2GB stick of RAM.
My System SpecsSystem Spec
11 Nov 2014   #7
Lady Fitzgerald

Win 7 Ultimate 64 bit
 
 

Quote   Quote: Originally Posted by macnab View Post
I can stop all my internal AHCI drives from showing up in "Safely remove" list by seting TreatAsInternalPort to true...
How did you do that?
My System SpecsSystem Spec
11 Nov 2014   #8
macnab

Windows 7 Professional SP1 64-bit
 
 

@Icit2lol. This just "removes" the device after you have Safely removed it.
@Lady Fitzgerald. You need to know which ports to "remove" from the list. In my case I have 6 SATA ports. It is port 0 which I use to "hot-swap" my backup HDDs. I want to leave this port in the list.

Assuming you are using AHCI and using the default Microsoft driver, in regedit, go to HKEY_LOCAL_MACHINE\SYSTEM\Services\msahci. It should only have one key - Enum. Add a new key Controller0.

In my case, I added 5 sub-keys Channel1, Channel2, ... Channel5. To each of these add a new DWORD. Call it TreatAsInternalPort and then set the value to 1. Now those HDDs won't show up in the Safely remove list. Only an HDD plugged into the channel not modified will show.
My System SpecsSystem Spec
11 Nov 2014   #9
ICIT2LOL

Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
 
 

Just curious why the ports have to be removed and why Ready Boost as I personally never found it useful.
My System SpecsSystem Spec
11 Nov 2014   #10
macnab

Windows 7 Professional SP1 64-bit
 
 

I use Safely remove to eject a backup HDD to plug in the next one. If I don't have my flash-drive and my modem in the list I won't accidentally eject them.
My System SpecsSystem Spec
Reply

 Stop USB devices from being in "Safely remove" list




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Grayed out Compact Flash Card in "Safely Remove Hardware" List
On a Windows 7 64 bit system, I've got a compact flash card set up like this: compact flash card > usb compact flash card reader > USB hub > usb port Previously, windows allowed me to safely remove both the card and reader. I unplugged and replugged some connections a while ago and since...
Hardware & Devices
"Safely Remove Hardware and Eject Media" keeps vanishing from systray
I have noticed this on several systems - one in particular is a Toshiba Sattelite A505-S6980 - where I "Customize" the icons that appear in the system tray. One icon that I like to appear is the little "USB" icon for the "Safely Remove Hardware and Eject Media" function. What happens is this:...
General Discussion
I unplugged my external hard drive without "Safely Remove" Can this da
After I finished transferred some files across from external hard drive to laptop and I used a picture from external hard drive as my background desktop but when I tried to click "Safely "remove it said there were programs running yet I have nothing transferring/connecting from external hard...
Hardware & Devices
How can I launch "Safely Remove Hardware and Eject Media"?
Hi, I very much know about using C:\WINDOWS\system32\rundll32.exe shell32.dll,Control_RunDLL hotplug.dll to display the "Safely Remove Hardware" dialog window, but I'd much prefer to emulate the result of clicking on the "Safely Remove Hardware and Eject Media" icon in the system tray. Is...
Hardware & Devices
"Safely remove hardware" not showing drive letter/label
From my "Safely remove hardware and eject media" I get a dialog that says: Open Devices and Printers ------------------------- Ian's pc - Eject ST320005 42A2 SCSI Disk Device - Eject ST320005 42A2 SCSI Disk Device
Hardware & Devices
Remove "Safely Remove Hardware" Icon
Does anyone know how to remove the "safely remove hardware" icon in the taskbar? I do not mean hide it. I have my icons always show in the notification area because I don't like the arrow icon either. Any ideas? Thanks.
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 20:23.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App