Remove Internal Hard Drive From Safely Remove Hardware And Eject Media

Page 1 of 2 12 LastLast

  1. Posts : 623
    Windows 10 Pro
       #1

    Remove Internal Hard Drive From Safely Remove Hardware And Eject Media


    I have an older computer, and have had trouble getting working SATA controller drivers for it, so I have had to revert the Marvell SATA/RAID driver back to Standard SATA AHCI Controller driver. Doing this has fixed my problems mostly, but now my internal hard drives show up in the Safely Remove Hardware And Eject Media list.

    Apart from reverting back to troublesome Marvell drivers, what is the best way to to hide these internal drives from showing up in the Safely Remove Hardware And Eject Media list?
      My Computer


  2. Posts : 30,120
    Windows 11 Pro x64 Version 23H2
       #2

    Hi Stigg.

    The likely cause that they are there is that they are Hot Swapable. In some BIOS's you can disable Hot Swap. Looking at your manual this does not appear to be the case. That said I would check your BIOS to see if this is possible. If not possible then it appears you are into registry hacks.

    In this thread, for Windows 7 and likely dated, they discuss what is required. Obviously before trying this you must have either full registry backups and know how to restore them or System Images created by a tool like Macrium Reflect (with tested boot media)

    https://www.sevenforums.com/hardware...move-list.html

    Before trying maybe you could tell the forum what driver you are actually using and you could see if any of the registry keys are present. The HKEY_LOCAL_MACHINE
    is listed differently in post 5 and post 8.

    Myself I would ignore them. I eject my USB devices in File Explorer to avoid mis-clicks.


    Ken
      My Computer


  3. Posts : 913
    CP/M
       #3

    Use this regfile:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device]
    "TreatAsInternalPort"=hex(7):30,00,00,00,31,00,00,00,32,00,00,00,33,00,00,00,\
    34,00,00,00,35,00,00,00,36,00,00,00,37,00,00,00,00,00
      My Computer


  4. Posts : 623
    Windows 10 Pro
    Thread Starter
       #4

    Hi Ken & Muchomurka.

    I have tried a few Registry tricks that I found on the internet.

    Muchomurka: I haven't used that particular one.
    I have seen one similar that uses
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device
    IgnoreHotPlug String and Device or Controller ID, but it didn't work.

    What does that one do?


    Since my post, I have used USB Disk Ejector, which doesn't display my internal drives, and hidden "Hide Safely Remove Hardware And Eject Media" with this batch which may have originated from Raymond.CC.
    Last edited by Stigg; 26 Mar 2019 at 20:20.
      My Computer


  5. Posts : 913
    CP/M
       #5

    "IgnoreHotPlug" - if there is hotplug setting in bios it overrides it for some old controllers; just ignore it.
    Software Storage Technologies Forum - IntelĀ® Community Forum

    "TreatAsInternalPort" - allows marking some or all sata ahci ports as non-removable. Simple & reliable.

    Remove Internal Hard Drive From Safely Remove Hardware And Eject Media-ahci.png
      My Computer


  6. Posts : 623
    Windows 10 Pro
    Thread Starter
       #6

    Excellent, muchomurka.

    I searched the internet looking for a working solution. None worked.
    That is perfect. It should be implemented as a setting option.
      My Computer


  7. Posts : 623
    Windows 10 Pro
    Thread Starter
       #7

    muchomurka said:
    "IgnoreHotPlug" - if there is hotplug setting in bios it overrides it for some old controllers; just ignore it.
    Software Storage Technologies Forum - IntelĀ® Community Forum

    "TreatAsInternalPort" - allows marking some or all sata ahci ports as non-removable. Simple & reliable.

    Remove Internal Hard Drive From Safely Remove Hardware And Eject Media-ahci.png
    Hi muchomurka.

    Since the 1903 Windows 10 update, one of my drives is showing.
    The registry entry is still there.
      My Computer


  8. Posts : 623
    Windows 10 Pro
    Thread Starter
       #8

    I seem to have fixed it by changing my GIGABYTE controller driver to Standard.
      My Computer


  9. Posts : 1,961
    Windows 10 Pro x64
       #9

    " "TreatAsInternalPort" .............in which reg-key can we place this key...............???
      My Computer


  10. Posts : 524
    Windows 11 Pro x64, Windows 10 Pro x64
       #10

    pietcorus2 said:
    " "TreatAsInternalPort" .............in which reg-key can we place this key...............???
    See this
    https://support.microsoft.com/en-us/...moveable-media
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:47.
Find Us




Windows 10 Forums