Question: The Safely Remove Hardware icon in Windows 8 (and 8.1) offers the ability to eject my internal SATA drives, including the boot drive (see example):
I don’t see myself ever needing this – especially not from the convenience of the tray icon.
For Windows 7 exists well known solution (answer 1, answer 2, etc). But in Windows 8 msahci driver has been replaced by storahci. ?Unfortunately, TreatAsInternalPort workaround no longer works.
Answer: The TreatAsInternalPort value still exists in the Windows 8 storahci driver, but its syntax has changed.
It is now in the key HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesstorahciParametersDevice, and is a REG_MULTI_SZ list of port numbers to force treating as internal.
For example, to disable removability on ports 0 and 1, you would use
Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesstorahciParametersDevice]”TreatAsInternalPort”=hex(7):30,00,00,00,31,00,00,00,00,00
Unfortunately, i have no idea how these ports are numbered. ?