Stop USB devices from being in "Safely remove" list

Page 1 of 2 12 LastLast

  1. Posts : 158
    Windows 7 Professional SP1 64-bit
       #1

    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 Computer


  2. Posts : 53,363
    Windows 10 Home x64
       #2

    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 Computer


  3. Posts : 158
    Windows 7 Professional SP1 64-bit
    Thread Starter
       #3

    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


  4. Posts : 53,363
    Windows 10 Home x64
       #4

    Ooops, sorry See comment #28 here:

    https://fightingforalostcause.net/1044

    A Guy
      My Computer


  5. Posts : 158
    Windows 7 Professional SP1 64-bit
    Thread Starter
       #5

    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


  6. Posts : 21,004
    Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
       #6

    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 Computer


  7. Posts : 9,600
    Win 7 Ultimate 64 bit
       #7

    macnab said:
    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


  8. Posts : 158
    Windows 7 Professional SP1 64-bit
    Thread Starter
       #8

    @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


  9. Posts : 21,004
    Desk1 7 Home Prem / Desk2 10 Pro / Main lap Asus ROG 10 Pro 2 laptop Toshiba 7 Pro Asus P2520 7 & 10
       #9

    Just curious why the ports have to be removed and why Ready Boost as I personally never found it useful.
      My Computer


  10. Posts : 158
    Windows 7 Professional SP1 64-bit
    Thread Starter
       #10

    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


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 01:06.
Find Us