Stop USB devices from being in "Safely remove" list

macnab

New member
Member
VIP
Local time
12:08 PM
Messages
158
Location
Roodepoort
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox
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
http://www.sevenforums.com/tutorials/4230-registry-backup-restore.html
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Ultimate 64 bit
CPU
Intel i7-3930K
Motherboard
ASUS P9X79 WS
Memory
Kingston HyperX Genesis 32GB Kit (8x4GB Modules) 1600MHz DDR
Graphics Card(s)
MSI R7850 Twin Frozr 2GD5/OC Radeon HD 7850 2GB 256-bit GDDR
Sound Card
Asus Xonar Essence STX
Monitor(s) Displays
3x Asus VG248QE 24", Vizio 32" TV
Screen Resolution
1920 x 1080, ?
Hard Drives
Samsung 128GB 840 Pro SSD (1),
Samsung 4TB 850 EVO SSDs (4)
Samsung 4TB 850 EVO SSDs (16) external backup drives used in 2.5" hot swap bays in the computer.
PSU
Corsair HX750w
Case
Antec Two Hundred v2 (modified)
Cooling
Cooler Master GeminII S524 120mm (fan replaced with a 140mm)
Keyboard
Logitech G510s
Mouse
Logitech M525 (two in use)
Internet Speed
=< 32Mbps down, 8Mbps up
Antivirus
AVAST!, MBAM, SAS, Spybot S&D (all but MBAM free) Glary Util
Browser
IE11
Other Info
LSI 9211-8i HBA card (8 SATA III ports), 2.5" & 3.5" Hot Swap Bays, HooToo HT-CR001 PCI-E to USB 3.0 Internal Hub + 6 Slot Card Reader, and LG Model CH12LS28 BD-ROM Optical Drive. Also, ScanSnap S1500 ADF duplexing scanner, Canon 9000F flat bed scanner, Corsair SP2500 2.1 speakers, Samsung CLP 415nw laser color printer, Cyberpower PP2200SW UPS
@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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox
Just curious why the ports have to be removed and why Ready Boost as I personally never found it useful.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox
...@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.

Uh...that totally confused me. :confused:
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Ultimate 64 bit
CPU
Intel i7-3930K
Motherboard
ASUS P9X79 WS
Memory
Kingston HyperX Genesis 32GB Kit (8x4GB Modules) 1600MHz DDR
Graphics Card(s)
MSI R7850 Twin Frozr 2GD5/OC Radeon HD 7850 2GB 256-bit GDDR
Sound Card
Asus Xonar Essence STX
Monitor(s) Displays
3x Asus VG248QE 24", Vizio 32" TV
Screen Resolution
1920 x 1080, ?
Hard Drives
Samsung 128GB 840 Pro SSD (1),
Samsung 4TB 850 EVO SSDs (4)
Samsung 4TB 850 EVO SSDs (16) external backup drives used in 2.5" hot swap bays in the computer.
PSU
Corsair HX750w
Case
Antec Two Hundred v2 (modified)
Cooling
Cooler Master GeminII S524 120mm (fan replaced with a 140mm)
Keyboard
Logitech G510s
Mouse
Logitech M525 (two in use)
Internet Speed
=< 32Mbps down, 8Mbps up
Antivirus
AVAST!, MBAM, SAS, Spybot S&D (all but MBAM free) Glary Util
Browser
IE11
Other Info
LSI 9211-8i HBA card (8 SATA III ports), 2.5" & 3.5" Hot Swap Bays, HooToo HT-CR001 PCI-E to USB 3.0 Internal Hub + 6 Slot Card Reader, and LG Model CH12LS28 BD-ROM Optical Drive. Also, ScanSnap S1500 ADF duplexing scanner, Canon 9000F flat bed scanner, Corsair SP2500 2.1 speakers, Samsung CLP 415nw laser color printer, Cyberpower PP2200SW UPS
:)
Staring point: What do you want to do?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox
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.

Yes I have a list that pops up with he letter of the drive and if I am not sure of the letter I check in Computer and it usually tells you not only the letter but also the name of it ie "My Passport" see pic
 

Attachments

  • EJECT.PNG
    EJECT.PNG
    260.1 KB · Views: 2

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
I am trying to avoid "accidentally" having the mouse-pointer move to the wrong drive just before I click.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox
Well the only suggestion I can think of is to reduce the speed of the mouse travel I have min set to fast but try slowing yours down to an acceptable speed.

In my pic it is slightly different in 7 where it shows Mouse and keyboard centre 7 will have a click speed option I lik to set that single and slow but you can have what you like.
 

Attachments

  • MOUSE SPEED.PNG
    MOUSE SPEED.PNG
    56 KB · Views: 0

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build (new) Desk1 / Asus ROG Win 7 / Desk2 1st build
OS
Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
CPU
Desk1 i5 3750K / Laptop i7 GTX 860M / Desk2 i5 2500
Motherboard
Desk1 Asus P877-V / Desk2 Gigabyte H67 UD3H / Laptop ?
Memory
Desk1 8GB (1866) / Desk2 16GB (1333) / Laptop 8Gb DDR3
Graphics Card(s)
Desk 1& 2NVidia GTX 650 & Laptops on board Intel
Sound Card
Desk 1 & 2 -XONAR DG Realtek High Def audio Laptop
Monitor(s) Displays
Desk 1 Benq HD 2450 / Desk2 Philips 24" / Laptop 17.5"
Screen Resolution
1920x1080 D1 & D2 & Laptop 1
Hard Drives
Desk1 Samsung 120GB 830 SSD
Asus ROG 256GB 850 Pro SSD
Desk2 Samsung 840 256 SSD
Toshiba 120GB EVO
PSU
Desk 1 Corsair HX 1050/ Laptop ? / Desk 2 Corsair HX 650
Case
Desk 1 Cooler HAF XM ? Toshiba laptop / Desk2 Coolermaster
Cooling
Fans on all Desk1 -2 Desk2 - all Coolermasters 5 Laptop ?
Keyboard
Desk 1 MS Sidewinder X6 Desk 2 MS Sidewinder X 4
Mouse
Desk 1&2 - Gigabyte MS 900 gamer - laptop - Logitec wireless
Internet Speed
ADSL2+
Other Info
One other Desktop (tester) and spare Toshba laptop both with SSD's
Running Kaspersky 2016 ISS on all machines config'd identically
Logitec audio stereo systems on each machine (x3)
Canon MG5250MFC
Router/modem TP-Link running WPA2SK
I'll just be careful. But it would be nice to have a way to remove USB devices from the list.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built-up
OS
Windows 7 Professional SP1 64-bit
CPU
Intel i3-3220 3.3GHz
Motherboard
Gigabyte
Memory
4GB
Graphics Card(s)
NVIDIA GeForce GTX650 1GB
Sound Card
On-board Realtek
Monitor(s) Displays
LGL1719S
Screen Resolution
1280 x 1024
Hard Drives
Samsung HD321HJ, Samsung HD103SI, Seagate ST2000DL, Seagate ST3100524AS
PSU
450W
Case
AOpen
Cooling
Case fan, CPU fan, PSU fanf.
Keyboard
Microsoft
Mouse
AOpen
Internet Speed
1Mb/s
Antivirus
MSSE
Browser
Firefox
Back
Top