How to determine which program stops safe ejection of a device


The blocking process is the Windows Subsystem for Linux (WSL) file sharing host, so it's likely that WSL or Docker Desktop still has the LaCie open. Run wsl --shutdown in a Command Prompt, then eject the drive. If it still won't eject, end the dllhost.exe with the process ID from event 225 on the Details tab of Task Manager and eject again.

Drafted with AI.
Thank you for that info and for doing my work for me. Will see if it works. May also be the same cause with other devices.
 

My Computer My Computer

At a glance

Windows 11 Proi9-14900KCorsair DDR5 192GB 5200MHzonboard
OS
Windows 11 Pro
Computer type
PC/Desktop
Manufacturer/Model
Homebrew
CPU
i9-14900K
Motherboard
Asus Pro WS W680-ACE
Memory
Corsair DDR5 192GB 5200MHz
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Asus VA27U
Screen Resolution
3840 x 2160
Hard Drives
4TB Iron Wolf Pro
ST 4000NT001
Cooling
Corsair Nautilus 360
If the wait time is intolerable, do a standard shutdown and unplug it.

Safe removal does not guarantee zero data loss.
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2
OS
Windows 11 Pro 25H2
Computer type
Laptop
Manufacturer/Model
Toshiba
Run wsl --shutdown in a Command Prompt, then eject the drive.
Would stopping the the wsl service give the same result? - then then just restart the service after the drive is ejected?
 

My Computer My Computer

At a glance

Windows 11 Proi9-14900KCorsair DDR5 192GB 5200MHzonboard
OS
Windows 11 Pro
Computer type
PC/Desktop
Manufacturer/Model
Homebrew
CPU
i9-14900K
Motherboard
Asus Pro WS W680-ACE
Memory
Corsair DDR5 192GB 5200MHz
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Asus VA27U
Screen Resolution
3840 x 2160
Hard Drives
4TB Iron Wolf Pro
ST 4000NT001
Cooling
Corsair Nautilus 360
Stopping the WSL Service should also release the LaCie, but wsl --shutdown does the same thing in one command. You don't need to restart anything after the drive is ejected, because WSL starts again on its own the next time you open a distro or Docker Desktop.

Drafted with AI.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
Asus
Stopping the WSL Service should also release the LaCie, but wsl --shutdown does the same thing in one command. You don't need to restart anything after the drive is ejected, because WSL starts again on its own the next time you open a distro or Docker Desktop.

Drafted with AI.
Thanks for the clarification...
 

My Computer My Computer

At a glance

Windows 11 Proi9-14900KCorsair DDR5 192GB 5200MHzonboard
OS
Windows 11 Pro
Computer type
PC/Desktop
Manufacturer/Model
Homebrew
CPU
i9-14900K
Motherboard
Asus Pro WS W680-ACE
Memory
Corsair DDR5 192GB 5200MHz
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
Asus VA27U
Screen Resolution
3840 x 2160
Hard Drives
4TB Iron Wolf Pro
ST 4000NT001
Cooling
Corsair Nautilus 360
Shutdown looks to be a somewhat extreme solution to ejecting a removable drive... 🤔
 

My Computers My Computers

  • At a glance

    Win 11 Pro 26H2, Build 26300.9550Intel Core i5 14500, 14th Generation64GB DDR4GeForce RTX 4060
    OS
    Win 11 Pro 26H2, Build 26300.9550
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Brew
    CPU
    Intel Core i5 14500, 14th Generation
    Motherboard
    Gigabyte B760M G P WIFI
    Memory
    64GB DDR4
    Graphics Card(s)
    GeForce RTX 4060
    Sound Card
    Chipset Realtek
    Monitor(s) Displays
    LG 45" Ultragear & Acer 24" 1080p
    Screen Resolution
    5120x1440 & 1920x1080
    Hard Drives
    Crucial P310 2TB 2280 PCIe Gen4 3D NAND NVMe M.2 SSD (O/S)
    Silicon Power 2TB US75 NVMe PCIe Gen4 M.2 2280 SSD (backup)
    Crucial BX500 2TB 3D NAND (2nd backup)
    Seagate 4TB Ironwolf, rotating HDD secondary backup
    External off-line backup Drives: 2 NVMe 4TB drives in external enclosures
    PSU
    Thermaltake Toughpower GF3 750W
    Case
    LIAN LI LANCOOL 216 E-ATX PC Case
    Cooling
    Lots of fans!
    Keyboard
    Microsoft Comfort Curve 2000
    Mouse
    Logitech G305
    Internet Speed
    Verizon FiOS 1GB
    Browser
    Firefox
    Antivirus
    Malware Bytes & Windows Defender Security
  • At a glance

    Win 11 Pro 25H2, Build 26200.9550.Intel Core i5 1440032GB DDR5Intel 700 Embedded GPU
    Operating System
    Win 11 Pro 25H2, Build 26200.9550.
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Brew
    CPU
    Intel Core i5 14400
    Motherboard
    Gigabyte B760M DS3H AX
    Memory
    32GB DDR5
    Graphics card(s)
    Intel 700 Embedded GPU
    Sound Card
    Realtek Embedded
    Monitor(s) Displays
    27" HP 1080p
    Screen Resolution
    1920x1080
    Hard Drives
    Crucial P310 2TB NVMe Gen4 SSD
    Samsung EVO 990 2TB NVMe Gen4 SSD
    Samsung 2TB SATA SSD
    Seagate 4TB Ironwolf, rotating HDD secondary backup
    PSU
    Thermaltake Smart BM3 650W
    Case
    Okinos Micro ATX Case
    Cooling
    Fans
    Keyboard
    Microsoft Comfort Curve 2000
    Mouse
    Logitech G305
    Internet Speed
    Verizon FiOS 1GB
    Browser
    Firefox
    Antivirus
    Malware Bytes & Windows Defender Security
  • Nimo N171 17" Laptop, (Intel i3-1215U, 16GB RAM, 2TB NVMe, Win11 Pro)
    Acemagic Vista Mini PC V1 (Intel N150, 16GB RAM, 1TB NVMe, Win11 Pro)
    HP ENVY h8-1540t, (24GB RAM, 2TB SSD, 2TB HDD, Win11 Pro)
Shutdown looks to be a somewhat extreme solution to ejecting a removable drive... 🤔
wsl --shutdown only stops the WSL virtual machine and the Linux distros running in it. Windows and your other programs keep running.

Drafted with AI.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
Asus
Back
Top Bottom