Problem Ejecting USB Mass Storage Device


elevadu

Member
Local time
8:41 PM
Posts
33
Visit site
OS
Windows 11 Pro
This happens about 1/3rd of the time on Windows 11, from any of the built-in Eject buttons.

Problem Ejecting USB Mass Storage Device

This device is currently in use. Close any programs or
windows that might be using the device, and then try again.


This of course has been going on through the life of Windows, with no apparent/easy way to figure out what's using the device that's preventing it from just tying things up and ejecting. Usually closing all programs or windows I'm aware of doesn't fix the problem, and I have to shut down the computer to safely remove the drive.

I've rarely seen this issue on Apple products, never on Android, and not recently anyway. When I tap in Android to disconnect it from USB, it just disconnects. In iTunes when I click to disconnect the Apple device, it just disconnects. I've only ever had the problem on Windows, and it seems nothing has improved over the years.

So, what's the current way to find out what is using the drive? I'm supremely frustrated and not sure how to safely disconnect the drive without losing data. I thought Microsoft could have figured out better handling of this issue by now.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Latitude
The important thing is that it's like this
1.jpg

Actually, it's weird because it works

$vol = get-wmiobject -Class Win32_Volume | where{$_.Name -eq 'F:\'}
$Eject = New-Object -comObject Shell.Application
$Eject.NameSpace(17).ParseName($vol.Driveletter).InvokeVerb(“Eject”)



Close Windows Explorer.
 
Last edited:

My Computer

System One

  • OS
    Microsoft Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI MS-7D98
    CPU
    Intel Core i5-13490F
    Motherboard
    MSI B760 GAMING PLUS WIFI
    Memory
    2 x 16 Patriot Memory (PDP Systems) PSD516G560081
    Graphics Card(s)
    GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (GV-N4070WF3OC-12GD)
    Sound Card
    Bluetooth Аудио
    Monitor(s) Displays
    INNOCN 15K1F
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD_BLACK SN770 250GB
    KINGSTON SNV2S1000G (ELFK0S.6)
    PSU
    Thermaltake Toughpower GF3 1000W
    Case
    CG560 - DeepCool
    Cooling
    ID-COOLING SE-224-XTS / 2 x 140Mm Fan - rear and top; 3 x 120Mm - front
    Keyboard
    Corsair K70 RGB TKL
    Mouse
    Corsair KATAR PRO XT
    Internet Speed
    100 Mbps
    Browser
    Firefox
    Antivirus
    Microsoft Defender Antivirus
    Other Info
    https://www.userbenchmark.com/UserRun/66553205
@elevadu ,

I am a happy USB Safely Remove customer. The product will tell you which programs are stopping the drive from being ejected. I have my USB devices configured for "Better Performance." Most times, the delay is Windows indexing the new files copied to the USB drive. In my case, I also use "Everything" for searching files, and it is often indexing as well. After the indexing is finished, the USB drives will safely eject.

The USB Safely Remove program is not free, but there is a 30-day trial. Everything is freeware.

I have no affiliation with either company other than as a user/customer of their products.

Have a great day.

Regards,
Phil
 

My Computers

System One System Two

  • OS
    Windows 11 Pro Version 24H2 (Build 26100.2605)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS8930 SE
    CPU
    Intel i7-9700K 4700 MHz
    Motherboard
    Dell XPS 8930
    Memory
    32 GB (4 x 8GB SK Hynix DDR4 @1333 MHz) (2666 MHz)
    Graphics Card(s)
    NVIDIA GeForce RTX 2060 (6 GB) GDDR6 300 MHz
    Sound Card
    None
    Monitor(s) Displays
    Dell UltraSharp U2518D 25"
    Screen Resolution
    2560 x 1440
    Hard Drives
    NVMe Intel 1024 TB
    Seagate 2 TB, SATA-III
    PSU
    850 W Gold Standard
    Case
    Dell XPS 8930 Base (Special Edition)
    Cooling
    Air
    Keyboard
    Dell 0G4D2W
    Mouse
    Dell MOCZUL
    Internet Speed
    Download 553 Mbps, Upload 686 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.1.31
  • Operating System
    Windows 11 Pro Version 23H2 (Build 22631.4602)
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    i7-9750H 4.5 GHz
    Motherboard
    Dell XPS 15 7590
    Memory
    16 GB (2 x 8GB @ 1333 MHz) DDR4-2666 MHz
    Graphics card(s)
    NVIDIA GeForce 1650 4 GB GDDR5
    Sound Card
    None
    Monitor(s) Displays
    Dell XPS 15 7590, 15.6" InfinityEdge Anti-Glare, Non-Touch
    Screen Resolution
    1920 x 1080
    Hard Drives
    512 GB M.2 PCle NVMe SK Hynix
    PSU
    130W Power Adapter
    Case
    Dell XPS 15 7590
    Cooling
    Air
    Mouse
    Logitech M510
    Keyboard
    Laptop
    Internet Speed
    Download: 400 Mbps, Upload: 203 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.33.0
The important thing is that it's like this
View attachment 114394

Actually, it's weird because it works

$vol = get-wmiobject -Class Win32_Volume | where{$_.Name -eq 'F:\'}
$Eject = New-Object -comObject Shell.Application
$Eject.NameSpace(17).ParseName($vol.Driveletter).InvokeVerb(“Eject”)



Close Windows Explorer.
So, the point is that you are using the policy shown above (the default for removable media), there is no need to eject the device. I use UFDs every single day and I have not ejected one in years. I have NEVER experienced any data loss on a UFD (except for the one that took a nasty static shock in the winter that completely blew it out).
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Kamrui Mini PC, Model CK10
    CPU
    Intel i5-12450H
    Memory
    32GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    1 x 4TB 2.5" SSD
    PSU
    120W "Brick"
    Keyboard
    Corsair K70 Mechanical Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
The removal policy for drives is set to "Quick Removal" by default instead of "Performance" in Windows 11 which pretty much removes the need to "Safely Remove Hardware" for most devices now.


You can check to see if another option in the tutorial below may allow you to "Safely Remove Hardware" if required.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
So, the point is that you are using the policy shown above (the default for removable media), there is no need to eject the device. I use UFDs every single day and I have not ejected one in years. I have NEVER experienced any data loss on a UFD (except for the one that took a nasty static shock in the winter that completely blew it out).
The "Quick removal" option setting has worked for me...no need to explain further. Of course, you need to decide how to use your computer and what you feel is best.
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Professional
    Computer type
    PC/Desktop
    Manufacturer/Model
    Microcenter B677
    CPU
    Intel Core i5-9400
    Motherboard
    ASRock H310CM-HDV/M.2
    Memory
    32GB
    Graphics Card(s)
    Integrated Intel UHD Graphics 630
    Sound Card
    Intel Kaby Lake - High Definition Audio / cAVS (Audio, Voice, Speech) [A0]
    Monitor(s) Displays
    LG Model: GSM59F1
    Screen Resolution
    2560x1080
    Case
    Lian Li 205M
    Antivirus
    Kaspersky AV
I don't have the Policies tab on Properties for my microSD slot card: (it's empty now but I'll be filling it soon)

1730419517540.png

It's also not on the Properties of a USB-C m.2 2280 external drive connected:

1730419622798.png

I don't know WTH 😆

Oh, when I go to uncheck "Allow files ... [to be] indexed", it pops up a prompt asking if I want to disable indexing for F:\ only or apply changes to subfolders and files... 😳

1730419709568.png

WTH 😆 I never activated this to begin with, certainly not for particular folders or files. I don't want this feature on my external drives at all. Windows is so confusing sometimes. What should I do?!
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Latitude
@elevadu ,

On your first screenshot, go to the "Hardware" tab, find your Micro SD device, click on that, click on the "Properties" button, then click "Change Settings," and finally click on the "Policies" tab. There, you will find out what Policy is applied to that drive: Quick Removal" or "Better Performance."

I really do recommend the Safely Remove USB program, if you are that concerned about what is preventing USB device ejection. Take the 30-day trial. If you like it, buy it. If you don't, uninstall it.

As I stated previously, I have no affiliation with the company, other than as a very satisfied user. The default setting in Windows is "Quick Removal."

Have a great weekend.

Regards,
Phil
 

My Computers

System One System Two

  • OS
    Windows 11 Pro Version 24H2 (Build 26100.2605)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS8930 SE
    CPU
    Intel i7-9700K 4700 MHz
    Motherboard
    Dell XPS 8930
    Memory
    32 GB (4 x 8GB SK Hynix DDR4 @1333 MHz) (2666 MHz)
    Graphics Card(s)
    NVIDIA GeForce RTX 2060 (6 GB) GDDR6 300 MHz
    Sound Card
    None
    Monitor(s) Displays
    Dell UltraSharp U2518D 25"
    Screen Resolution
    2560 x 1440
    Hard Drives
    NVMe Intel 1024 TB
    Seagate 2 TB, SATA-III
    PSU
    850 W Gold Standard
    Case
    Dell XPS 8930 Base (Special Edition)
    Cooling
    Air
    Keyboard
    Dell 0G4D2W
    Mouse
    Dell MOCZUL
    Internet Speed
    Download 553 Mbps, Upload 686 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.1.31
  • Operating System
    Windows 11 Pro Version 23H2 (Build 22631.4602)
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    i7-9750H 4.5 GHz
    Motherboard
    Dell XPS 15 7590
    Memory
    16 GB (2 x 8GB @ 1333 MHz) DDR4-2666 MHz
    Graphics card(s)
    NVIDIA GeForce 1650 4 GB GDDR5
    Sound Card
    None
    Monitor(s) Displays
    Dell XPS 15 7590, 15.6" InfinityEdge Anti-Glare, Non-Touch
    Screen Resolution
    1920 x 1080
    Hard Drives
    512 GB M.2 PCle NVMe SK Hynix
    PSU
    130W Power Adapter
    Case
    Dell XPS 15 7590
    Cooling
    Air
    Mouse
    Logitech M510
    Keyboard
    Laptop
    Internet Speed
    Download: 400 Mbps, Upload: 203 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.33.0
I wonder how Safely Remove USB tells what's holding up the drive 🤔
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Latitude
@elevadu ,

I don't know in detail how Safely Remove USB does what it does. I presume it checks for processes that have "locked" the USB drive because those processes are interacting with the drive, writing or reading information. There is more information on their website.

In any event, give it a try or don't. It is your computer, so it is YOUR decision. I have been happily using it for years. It provides information that the Windows Safely Eject native program does not.

Have a great day.

Regards,
Phil
 

My Computers

System One System Two

  • OS
    Windows 11 Pro Version 24H2 (Build 26100.2605)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS8930 SE
    CPU
    Intel i7-9700K 4700 MHz
    Motherboard
    Dell XPS 8930
    Memory
    32 GB (4 x 8GB SK Hynix DDR4 @1333 MHz) (2666 MHz)
    Graphics Card(s)
    NVIDIA GeForce RTX 2060 (6 GB) GDDR6 300 MHz
    Sound Card
    None
    Monitor(s) Displays
    Dell UltraSharp U2518D 25"
    Screen Resolution
    2560 x 1440
    Hard Drives
    NVMe Intel 1024 TB
    Seagate 2 TB, SATA-III
    PSU
    850 W Gold Standard
    Case
    Dell XPS 8930 Base (Special Edition)
    Cooling
    Air
    Keyboard
    Dell 0G4D2W
    Mouse
    Dell MOCZUL
    Internet Speed
    Download 553 Mbps, Upload 686 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.1.31
  • Operating System
    Windows 11 Pro Version 23H2 (Build 22631.4602)
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    i7-9750H 4.5 GHz
    Motherboard
    Dell XPS 15 7590
    Memory
    16 GB (2 x 8GB @ 1333 MHz) DDR4-2666 MHz
    Graphics card(s)
    NVIDIA GeForce 1650 4 GB GDDR5
    Sound Card
    None
    Monitor(s) Displays
    Dell XPS 15 7590, 15.6" InfinityEdge Anti-Glare, Non-Touch
    Screen Resolution
    1920 x 1080
    Hard Drives
    512 GB M.2 PCle NVMe SK Hynix
    PSU
    130W Power Adapter
    Case
    Dell XPS 15 7590
    Cooling
    Air
    Mouse
    Logitech M510
    Keyboard
    Laptop
    Internet Speed
    Download: 400 Mbps, Upload: 203 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.33.0
Note that it's "USB Safely Remove" not "Safely Remove USB".
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Latitude

My Computers

System One System Two

  • OS
    Windows 11 Pro Version 24H2 (Build 26100.2605)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS8930 SE
    CPU
    Intel i7-9700K 4700 MHz
    Motherboard
    Dell XPS 8930
    Memory
    32 GB (4 x 8GB SK Hynix DDR4 @1333 MHz) (2666 MHz)
    Graphics Card(s)
    NVIDIA GeForce RTX 2060 (6 GB) GDDR6 300 MHz
    Sound Card
    None
    Monitor(s) Displays
    Dell UltraSharp U2518D 25"
    Screen Resolution
    2560 x 1440
    Hard Drives
    NVMe Intel 1024 TB
    Seagate 2 TB, SATA-III
    PSU
    850 W Gold Standard
    Case
    Dell XPS 8930 Base (Special Edition)
    Cooling
    Air
    Keyboard
    Dell 0G4D2W
    Mouse
    Dell MOCZUL
    Internet Speed
    Download 553 Mbps, Upload 686 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.1.31
  • Operating System
    Windows 11 Pro Version 23H2 (Build 22631.4602)
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    i7-9750H 4.5 GHz
    Motherboard
    Dell XPS 15 7590
    Memory
    16 GB (2 x 8GB @ 1333 MHz) DDR4-2666 MHz
    Graphics card(s)
    NVIDIA GeForce 1650 4 GB GDDR5
    Sound Card
    None
    Monitor(s) Displays
    Dell XPS 15 7590, 15.6" InfinityEdge Anti-Glare, Non-Touch
    Screen Resolution
    1920 x 1080
    Hard Drives
    512 GB M.2 PCle NVMe SK Hynix
    PSU
    130W Power Adapter
    Case
    Dell XPS 15 7590
    Cooling
    Air
    Mouse
    Logitech M510
    Keyboard
    Laptop
    Internet Speed
    Download: 400 Mbps, Upload: 203 Mbps
    Browser
    Google Chrome
    Antivirus
    ESET Smart Security Premium, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.33.0
Back
Top Bottom