Scatter/Gather thoughts

by Johan Petersson

Safely removing a Safely Remove Hardware notification

I have found a fix for a niggle with the Opteron box I built last year. One of my drives is incorrectly detected as a removable device, causing the Safely Remove Hardware icon to appear in the Windows notification area:

Safely Remove Hardware notification icon shown for non-removable hard drive

I know for a fact that this particular WD Raptor hard drive is securely fastened inside the chassis with four screws; I installed it myself. I suppose it's removable in the strictest sense of the word, but it's certainly not what you'd normally call a removable storage device.

It looks like the SATA drivers for my nForce4-based motherboard causes Windows to believe that it is some kind of hot-swappable device, and it was by investigating the Nvidia driver files I finally found the solution. If you're experiencing the same problem with your nForce board under Windows XP or 2003 I'd expect one of these registry changes to fix it. To convince Windows to treat my SATA devices as non-removable I located the key

HKLM\SYSTEM\CurrentControlSet\Services\nvata64

in the registry and created a DWORD value named DisableRemovable with value 1 under it. For the 32-bit version of the Nvidia drivers, you'd create the same value under

HKLM\SYSTEM\CurrentControlSet\Services\nvata

Yes, I know I could have gotten rid of the notification area icon simply by instructing the taskbar to hide it. As far as I'm concerned using this taskbar feature is never a solution, it merely hides the symptoms of a problem. Besides, I still want that notification icon to appear when attaching devices that truly are removable.

5 August, 2006