Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Windows 2000 disable "Unsafe Removal" message fix

- - - - -

  • Please log in to reply
8 replies to this topic

#1
erpdude8

erpdude8

    MSFN Master

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,139 posts
I've decided to take matters into my own hands and attempt to eliminate the annoying "unsafe removal" dialog warnings in Windows 2000.
And this is a follow up on a very old topic several years ago of a few win2k users who asked how to disable the unsafe removal message in Win2000:
http://www.msfn.org/...oval-of-device/

Get the modified hotplug.dll patch from this page (it's version 5.0.2195.6610 - file name hotplg2k-enus.zip):
http://www.datafileh...d-55e845f6.html

With the modded hotplug.dll file installed, connect any usb mass storage device to any available usb port and then later remove it without using the Safely Remove Hardware icon. voila! no more "unsafe removal" message on win2k. the behavior should be more like XP, Vista, 7, etc. when disconnecting usb devices.
This patch is specifically for those Win2000 users who are sick & tired of seeing that annoying "unsafe removal" message when disconnecting usb devices, so it may or may not be for every Win2k user out there.

I'll send an updated version of this hotplug.dll fix to MDGx and he'll post it up on his web site when he's not busy.

EDIT: new link to the zip file which includes an executable sfxcab package with revised INF file
UPDATE: See my latest post on a 4-language download that is for US English, Spanish, Japanese & Korean

Edited by erpdude8, 12 October 2012 - 11:41 AM.



How to remove advertisement from MSFN

#2
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
The idea is good but is it 100% safe?

I've had my data corrupted several times when I disconnected a USB HDD without using the safe removal option.
post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#3
blackwingcat

blackwingcat

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 749 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag
The reason which Windows XP doesn't show safe removal option is Windows XP use Write cache off with removable media.
Windows 2000 use Write cache on !
It is very dangerous !!!

In other hand Can we use write cache off option ?

The idea is good but is it 100% safe?

I've had my data corrupted several times when I disconnected a USB HDD without using the safe removal option.


+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
BlackWingCat =^^=
http://blog.livedoor.jp/blackwingcat/
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

#4
erpdude8

erpdude8

    MSFN Master

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,139 posts
I can turn off "write cache" with a registry entry for Win2000 for certain USB flash drives while leaving it on for USB hard drives and IDE based hard drives.

Open Registry Editor (regedit.exe), locate your USB flash drives ID in the "USBSTOR" registry key [for example I'm using a Sony Microvault USB pen drive
and it's registry key is the following:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\Disk&Ven_Sony&Prod_Storage_Media&Rev_0100\5A08060560539&0\Device Parameters]
from the Device Parameters key, I create another "Key" called "Disk". Now I have the following registry key:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\Disk&Ven_Sony&Prod_Storage_Media&Rev_0100\5A08060560539&0\Device Parameters\Disk"
From the Disk registry key, I create a registry entry called "UserWriteCacheSetting" as a DWORD type. I set that to 0 to disable write caching (the value of 1 will enable it).

I created this unofficial Win2000 patch so that I can get the behavior that is found in Win98se's NUSB (Native USB drivers) addon where the "Unsafe Removal" message won't show up after disconnecting USB drives.

I have a newer hotplug.dll patch here on my web site. that one also updates explorer.exe & stobject.dll files to support 256 hi-color tray icons and the Safe Removal tray icon is like the one from XP. newer hotplug.dll patch from my web site is 5.0.2195.6611.

I also created similar patches for Win98se and WinME here. It's time to really use Win2000 like it's 2012 and not last decade.

the win2000 patches are relatively safe to use, tomasz86. I had time to test them myself on a Win2000 SP4 machine. you can still use the Safe Removal icon to disconnect your USB hard drive if you like, even with my hotplug.dll patch installed.

Edited by erpdude8, 27 July 2012 - 05:43 PM.


#5
erpdude8

erpdude8

    MSFN Master

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,139 posts

The reason which Windows XP doesn't show safe removal option is Windows XP use Write cache off with removable media.
Windows 2000 use Write cache on !
It is very dangerous !!!


but write cache in Win2k can be disabled with the "UserWriteCacheSetting" registry entry set to 0.
I have UserWriteCacheSetting enabled for the primary IDE hard drive (a western digital 30gb HD) but disabled for my USB card reader and Sony Microvault USB Flash drive.

MS KB article 326919 shows how to turn off write caching on a usb 2.0 hard drive.

however instead of using the following registry key:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\HardDiskDrive\SerialNumber\Device Parameters\Disk"

use this one instead for USB storage drives:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\USBDiskDrive\SerialNumber\Device Parameters\Disk"

as in my last post, from the Device Parameters key, create a key called Disk, and then from "Disk", create a registry entry called UserWriteCacheSetting as a DWORD type and set its value to 0.

Edited by erpdude8, 27 July 2012 - 08:05 PM.


#6
blackwingcat

blackwingcat

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 749 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag
I try to set registry.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\HardDiskDrive\SerialNumber\Device Parameters\Disk

UserWriteCacheSetting works fine.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\USBDiskDrive\SerialNumber\Device Parameters\Disk

But UserWriteCacheSetting has no effect.

I tested the following way.

* I Plug USB Memory.
* Copy files to USB
* I eject it.
* I Reconect it.
* I check the files.


The reason which Windows XP doesn't show safe removal option is Windows XP use Write cache off with removable media.
Windows 2000 use Write cache on !
It is very dangerous !!!


but write cache in Win2k can be disabled with the "UserWriteCacheSetting" registry entry set to 0.
I have UserWriteCacheSetting enabled for the primary IDE hard drive (a western digital 30gb HD) but disabled for my USB card reader and Sony Microvault USB Flash drive.

MS KB article 326919 shows how to turn off write caching on a usb 2.0 hard drive.

however instead of using the following registry key:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE\HardDiskDrive\SerialNumber\Device Parameters\Disk"

use this one instead for USB storage drives:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR\USBDiskDrive\SerialNumber\Device Parameters\Disk"

as in my last post, from the Device Parameters key, create a key called Disk, and then from "Disk", create a registry entry called UserWriteCacheSetting as a DWORD type and set its value to 0.


Edited by blackwingcat, 01 August 2012 - 10:38 PM.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
BlackWingCat =^^=
http://blog.livedoor.jp/blackwingcat/
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

#7
erpdude8

erpdude8

    MSFN Master

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,139 posts
i'm sorry for not posting the updated fix sooner. i've been dealing with
some health problems for the past few days such as an upset stomach (yup, i needed
some Pepto-Bismol to alleviate that problem, hee hee!)

but i'm feeling a little better lately.

see first post on this topic for the new download link which now is an sfxcab
package.

#8
blackwingcat

blackwingcat

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 749 posts
  • OS:Windows 2000 Professional
  • Country: Country Flag
The hotfix seems only remove alart dialog.
Can it make USB write cache off ?

see first post on this topic for the new download link which now is an sfxcab
package.


Edited by blackwingcat, 08 August 2012 - 01:08 AM.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
BlackWingCat =^^=
http://blog.livedoor.jp/blackwingcat/
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

#9
erpdude8

erpdude8

    MSFN Master

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,139 posts
Link to the hotplug.dll fix for Win2000 for US English, Spanish, Japanese & Korean languages:
http://www.datafileh...d-4376079c.html

the japanese & korean patches may need some improvement in the translations.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN