Disable Safely Remove Hardware And Eject Media

0 views
Skip to first unread message

Kimbery Challacombe

unread,
Aug 5, 2024, 5:49:29 AM8/5/24
to necligesfi
Idon't want users to ever be able to remove/eject any hardware at all.I'm told vmware has a hotplug option. xen doesn't seem to provide this for pci passthrough devices, therefore I'm looking for a reliable solution to prevent users from ejecting devices.

This issue is not necessarily related just to virtual machines but seems to be a common problem with devices that get wrongly reported as removable. I'm ideally looking for a way to prevent all devices from appearing or just prevent the safely remove hardware option from ever coming up.


One way which seems possible is to write a vbscript which enumerates registry entries and updates the device capabilities for every device that we want to not appear. This has to be called on startup.


MiniTool OEM program enable partners like hardware / software vendors and relative technical service providers to embed MiniTool software with their own products to add value to their products or services and expand their market.


Do you prefer to eject your USB drive or external storage drive without hitting the Safely Remove Hardware icon? In this post on MiniTool Website, we will show you how to hide Safely Remove Hardware icon in 3 ways.


It is universal acknowledged that you must remove your external hardware or USB flash drive with caution because any improper removal might lead to data loss. The Safely Remove Hardware option is very useful because it can protect the data on the storage device from any harm when unplugged from the computer.


However, some of you consider it is a waste of time to hit this option every time you want to eject the USB drive or external hard drive. Therefore, you might prefer to hide or remove Safely Remove USB icon. In the content below, we will introduce you how to hide Safely Remove Hardware icon in 3 ways.


Data loss will occur if a file is in use when unplugging the USB flash drive or other external storage devices. If you pull the storage device too soon, your file can also be corrupted. To avoid data loss or corruption, you had better back up the files on your storage devices with MiniTool ShadowMaker. With a copy of important files, you can restore them easily and quickly with the free backup software when data disasters occur.


After plugging in your USB device, you can hide Safely Remove Hardware icon by dragging it to the Show hidden icons area manually. To do so, you need to: find the Safely Remove Hardware icon > hit it > hold it to the up arrow icon to show the Show hidden icons area > drop it into the area.


I built a computer using an Intel INTEL-DP35DP motherboard with a Core 2 Duo CPU and two hard disks. I did a new install of Windows 7 on the computer. Everything works fine except for one disturbing glitch.


You have to do something in the BIOS to make the hard drives not show in the safely remove dialog. These would be SATA hard Drives. I had to do this on my ASUS P8P67 MB. I think there was a hot swap setting that you could disable. your BIOS may be different.


Is there some kind of difference in regards to how they unmount the unit (Just in case they changed their functionality in the latest Ubuntu versions) and if they are the same, would it be possible to remove one of them.


Eject unmounts the file system and ejects the CD but in the case of a flask media drive, it is still connected to the system (ie. can still be re-mounted or re-accessed and is still connected to the hub's 5V supply).


Safely Remove unmounts and disconnects the drive from the hub (ie. in enabled hubs it will remove power from the device). In this case, the only way to remount it is to unplug/re-plug the device for the hub to re-enable it.


If it isn't for the fact that almost every different company requires its own software, because apparently there's no standard when it comes to RGB, even though motherboard manufacturers have been including the headers on boards for years. Companies that make RGB coolers don't even bother to add an option like saving RGB lighting and fan preferences in an onboard memory inside the RGB controller that is required!


Yes, really LianLi and NZXT thought it would be helpful if we can eject the coolers, which can result in issues like the fans going on max RPM, the software not being able to access the controllers for configuration, until the next reboot when they are once again detected as ejectable devices.


In a very roundabout way, and thanks to multiple articles that I researched over this past weekend, I was able to implement a fix that works for me and removes the devices from the "Safely Eject" systray.


the one other fun fact is, u dont actually have to safley eject a usb stick so some people may not even realise this is a thing anymore " -US/windows/client-management/client-tools/change-default-removal-policy-external-storage-media"


Yeah I have tried doing it the .reg way and still it won't work. I have to do it the argument way. Every now and again it shows back up and I have to click run and do it manually. Seems as though task scheduler isn't running it by itself,


There has been an NZXT cam software update recently. This may have something to do with it.. either that or I did install a much faster CPU and I think task scheduler is trying to execute the command before NZXT is even loaded


I'm using Ubuntu 12.04, and when I rigth click on a my flash drive icon (in the Unity left bar) I get two options that have me confused: eject and safely remove.

The closer I came to an answer was this forum thread, which concludes that (for a flash drive) they are both equal and also equivalent to use the umount command. However, this last assertion seems to be false.

If I use umount from the console to unmount my flash dive, and then I use the command lsblk, I still see my device (with nothing under MOUNTPOINT, of course). On the other hand, if I eject or safely remove my flash drive, lsblk does not list it anymore.



So, my question is, what would be the console command/commands that would really reproduce the behaviour of eject and safely remove?


Arranges for the drive to be safely removed and powered off. On the OS side this includes ensuring that no process is using the drive, then requesting that in-flight buffers and caches are committed to stable storage.


umount is perfectly safe for the disk. Once you've done that you have successfully unmounted the filesystem and you needn't worry along those lines. The primary difference between eject and umount doesn't concern the disk at all - rather it is about the USB port's 5v power output.


After umount you can still see your disk listed in lsblk because it is still powered on and attached. umount an internal hard disk's file-system and you'll see the same behavior for the same reason. But when you eject a USB device you power it down and it ceases to draw the 5v it would typically - I think it trickles down to .5v but that class happened a long time ago.


Thanks to Leo for the RunDll32 tip! In many cases one can just unplug the USB device without using Safely remove.. However, it appears to me that when updating a Briefcase XP is slow to flush the buffers and I frequently end up with the Briefcase broken. This will hopefully solve the problem. Per


I tried the first time typing in ignoring Capital letters and it didnt work. So now I realized that you pretty much have to type in exactly the way you see on the web, with all that Capital letters and stuffs.

Some of the devices that didnt appear even when you called the list up may be becuase they are set to be that way? Some of USB locks for certain software are that way.

Thankyou very much Leo.


Wow, this was exactly what I needed. Actually, I was just looking for a nice website with the instructions on how to do it the longer way (I found out this way but forgot where: Control Panel/System/Hardware/Device Manager/Disk Drive/Properties/policies link) but this shortcut is amazing! If anyone was wondering where to find the icon you would normally see in the tray to use as the icon of your newly created shortcut and/or how to change it, just right click the shortcut you created, select Properties, then click Change Icon under the Shortcut tab and browse for that hotplug.dll (should be here: C:WINDOWSsystem32hotplug.dll).


Thanks Leo! This happens all the time on my Thinkpad T42, but has never happened on my Thinkpad T30. Strange. This should be fixed by the software programmers. Especially since they have forced all computers to report failures over the Internet to them. They seem to have missed this one. I wonder if IBM or Microsoft is to blame?


The person who finds the answer to the following will become the grand national champion of all computer gurus, because this has never been addressed in all of my searches:SecureType May 19, 2007 1:36 pmFor windows Vista, there was a


Hi,

Other way is to diconnect USB from computer is just Go in My-Computer select the concerned USB drive Right Click and select EJECT, then Windows flush all disk buffers to avoiding things like potential corruption. and you can remove ur USB from machine.Mahesh Chavan


Thank God for BLOGS! This happened to me the other day. I was thinking what did I or my kids do now to the computer to make the icon vanish. This is a life saver advise since I use so many USB attachments with not enough USB ports. Knowing the safely remove is ready from experience and know I could not live without it. I dreaded the thought of rebooting everytime just to disconnect a USB device each time. THANKS A MILLION!


Thanks a lot Leo. Its hard to find Help here in Japan because its all in their Complex Writing system, I wonder how their programs run in Kanji and Hiragana and Katakana. But they do. hehehe. Good Hacking of Microsoft XP program. Maybe this Fault in XP was not fixed by Microsoft as it seems a small thing. Thanks again


Your advice on how to get the Safely Remove Hardare does not work on my home edition XP. I first typed it exactly the way you said to type it and then tried every deviation on it I could think. It always said the location could not be found.

3a8082e126
Reply all
Reply to author
Forward
0 new messages