Drives incorrectly recognised as removable; fix via registry made one


  1. Posts : 248
    Windows 10 Pro
       #1

    Drives incorrectly recognised as removable; fix via registry made one


    I have multiple internal HDDs recognised by Windows as portable/removable drives. I tried using the linked instructions to get Windows to recognise them as internal/non-removable and failed. I used the following commands:

    reg.exe add “HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device” /f /v TreatAsInternalPort /t REG_MULTI_SZ /d 0
    reg.exe add “HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device” /f /v TreatAsInternalPort /t REG_MULTI_SZ /d 1
    reg.exe add “HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device” /f /v TreatAsInternalPort /t REG_MULTI_SZ /d 2
    reg.exe add “HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device” /f /v TreatAsInternalPort /t REG_MULTI_SZ /d 3


    Since I had four drives on those busses. I restarted my PC and it seems to have done nothing to address the problem and has knocked one drive off-line (an m.2 SSD which is connected to my motherboard via a PCIE adapter).

    If I open the registry and go to the relevant section, I see that there is just one entry containing 3, with the previous three additions being overwritten; a kind of pointless "solution" to my problem. If I delete TreatAsInternalPort, will that be likely to restore my missing SSD? Thanks.

    Drives incorrectly recognised as removable; fix via registry made one-del.png
      My Computer


  2. Posts : 30,595
    Windows 10 (Pro and Insider Pro)
       #2

    I hope you have system drive backup when experimenting with registry. If you don't, make one.

    From my experience, this kind of behavior can be fixed by installing Intel SATA and chipset drivers (guess you have Intel motherboard). The best would be from your manufacturer, but drivers from Intel should work too.
      My Computers


  3. Posts : 16,946
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    The commands you used will always create the Registry value you found. You are changing the same item three times [not changing three different entries once each] so it stays with the final value you told it.

    I suggest you ask the writer of the instructions you followed about your case.

    Denis
      My Computer


  4. Posts : 913
    CP/M
       #4

    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
    NonRemovableDrives.reg
      My Computer


 

  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 05:12.
Find Us




Windows 10 Forums