Fix an error occurred while ejecting CD drive by closing disc-using apps, restarting the desktop shell, updating drivers, or ejecting from Disk Management.
You click Eject, the tray stays put, and Windows throws an error. Most of the time, Windows just can’t release the drive because something still has a grip on it, or the drive’s state got stuck.
This guide covers fixes that work on Windows 10 and Windows 11, from quick checks to driver resets. You’ll also see the signs of a failing optical drive, so you can stop chasing the same loop.
Why This Eject Error Happens
Windows can only eject a disc when the drive isn’t busy. If an app is reading the disc, scanning it, burning files, or showing a preview, the drive can stay locked. The error is Windows telling you it can’t send the “release and open” command right now.
Sometimes the request reaches the drive, but the drive doesn’t respond as expected. That can come from a driver glitch, a power-saving setting that put the drive to sleep, or a tray mechanism that’s starting to stick.
Common Triggers You Can Recognize
- Windows file window preview is active — The preview pane can keep handles open on disc files, even when you think you’re done.
- Media apps are still indexing — Players and library tools may keep probing the disc for tracks or metadata.
- Security tools are scanning the disc — Real-time scanning can momentarily lock the drive.
- A stuck driver state — The drive is idle, but Windows still marks it as “in use.”
Fixing An Error Occurred While Ejecting CD Drive On Windows 10 And 11
Try these in order. After each step, attempt eject again using the same method that failed. If you saw “an error occurred while ejecting cd drive,” the aim is to remove the lock first, then refresh the drive’s connection to Windows.
Step 1: Release Anything That’s Holding The Disc
- Close disc-related apps — Quit music players, video players, ripping tools, game launchers, and burning software.
- Turn off the Preview pane — In a Windows file window, open View and toggle Preview pane off, then click away from the drive.
- Restart the desktop shell — Open Task Manager, select the desktop shell task, choose Restart, then try Eject again.
- Wait for the drive light — If the disc just went in, give it a minute to finish reading.
Step 2: Use A Different Eject Route
Sometimes the drive is fine and the shell action is what’s stuck. Switching the eject path can break that loop without touching drivers.
If you want a quick eject, PowerShell can do it. Open Windows Terminal, choose PowerShell, then run a command that calls the drive’s eject method. If the command runs but the tray stays shut, the problem is mechanical, not a Windows lock. Close the window after you test once.
- Eject from This PC — In a Windows file window, open This PC, right-click the optical drive, then choose Eject.
- Eject from Disk Management — Press Win + X, open Disk Management, right-click the CD/DVD entry, and choose Eject if it appears.
- Eject with PowerShell — Run a simple eject command, then test the tray.
Step 3: Clear The “Busy” State Without Rebooting
- Sign out and back in — This resets many file handles without a full restart.
- Stop a stalled burn — If you started burning and canceled, close the burner and wait until the drive light stops blinking.
- Turn off AutoPlay — In Settings, disable AutoPlay for removable media, then try ejecting again.
Step 4: Restart The Drive’s Device Stack
If the lock isn’t from an app, refresh the device connection. This forces Windows to rebuild the device state and can clear a stuck eject condition.
- Open Device Manager — Press Win + X, pick Device Manager, then expand DVD/CD-ROM drives.
- Disable and enable the drive — Right-click the drive, choose Disable device, wait 10 seconds, then enable it again.
- Uninstall and rescan — Right-click the drive, choose Uninstall device, then select Action and Scan for hardware changes.
Quick Checks Table
| What You Notice | Likely Cause | Try This First |
|---|---|---|
| Drive light keeps blinking | Disc is still being read | Close apps and wait 60 seconds |
| Eject works after restart | Shell or an app held the drive | Restart the desktop shell in Task Manager |
| Eject fails in file windows and in apps | Driver stack is stuck | Disable/enable the drive in Device Manager |
| Tray makes noise but doesn’t open | Mechanical resistance | Use the manual pinhole release |
When The Tray Won’t Open At All
If Windows says it ejected but the tray doesn’t budge, treat it as a physical issue first. Dust, a sticky belt, or a slightly warped disc can stop the tray even when the software side is clean.
Start with gentle actions. Don’t pry the tray with tools. If you hear repeated clicking or grinding, stop and move to the manual release.
Safe Mechanical Steps
- Press the hardware eject button — Some drives respond better to the physical button than the Windows command.
- Try a full shutdown — Shut down, wait 15 seconds, power back on, then eject with the button.
- Use the pinhole release — Straighten a paperclip, insert it into the release hole, and push until the tray pops.
- Remove and inspect the disc — Check for labels peeling, cracks, or heavy scratches that can snag.
What Not To Do
- Don’t force the tray — Forcing can bend the rails and turn a small issue into a dead drive.
- Don’t power-cycle fast — Give the motor time to reset between attempts.
- Don’t spray liquids into the slot — Use proper cleaning methods, not household sprays.
Driver And Firmware Fixes For Optical Drives
If the tray opens sometimes but Windows often throws errors, drivers are a common culprit. Windows uses a stack of drivers for optical drives, and one bad filter driver can cause odd eject behavior.
Make one change at a time, then test. That way you’ll know which step solved it.
Remove Third-Party Filter Drivers
Disc burning suites and virtual drive apps can add filters that sit between Windows and the hardware. When those filters break, the drive may act busy or refuse eject. Removing the app is often enough, then a restart clears the remaining hooks.
- Uninstall recent disc tools — Remove burning suites, ISO mounters, and older media managers you don’t use.
- Restart Windows — A restart reloads the optical stack without those add-ons.
- Test with a plain data disc — Use a standard CD or DVD, not a scratched movie disc.
Update Chipset And Storage Drivers
On some PCs, the optical drive hangs off a SATA controller that shares drivers with storage. Updating the chipset package and storage controller driver can improve how the drive wakes, sleeps, and releases.
- Install Windows updates — Apply pending updates, including optional driver updates, then restart.
- Use the PC maker’s driver page — Get chipset and storage drivers that match your model.
- Update from Device Manager — Use Update driver for the optical drive entry, then test eject.
Check BIOS Detection
If the drive vanishes at times, BIOS detection matters. Verify the SATA port shows the optical drive, and keep controller settings consistent.
- Confirm the drive is listed — If BIOS can’t see it, Windows won’t behave reliably.
- Reseat the cable on desktops — A loose SATA or power cable can cause random dropouts.
Fixes When The Drive Shows Up But Acts “In Use”
This is the classic case. The drive appears in Windows file window, you can browse it, but eject keeps failing. It often means a hidden handle is open, or a background tool is watching the drive letter.
Use these methods when the earlier steps didn’t clear the lock. They dig deeper into what Windows is doing, without risky tweaks.
Stop A Background Tool That Watches New Media
- Close media library apps — Music libraries and photo tools can keep watching the drive letter.
- Pause backup tools — Some backup apps scan new drives the moment they appear.
- Toggle real-time scanning — Turn it off for a minute, eject, then turn it back on.
Change The Drive Letter To Break The Lock
Changing the optical drive letter can shake loose a stubborn shell lock. It doesn’t change the disc, just how Windows labels the drive.
- Open Disk Management — Press Win + X and choose Disk Management.
- Assign a new letter — Right-click the CD-ROM entry, choose Change Drive Letter and Paths, then pick a different letter.
- Try eject again — Eject from a Windows file window or with the hardware button.
Repair System Files When Shell Actions Fail
If other shell actions fail too, system files may be damaged. A system file check can repair components that handle device commands.
- Run SFC — Open Command Prompt (Admin) and run
sfc /scannow, then restart. - Run DISM repair — If SFC reports issues it can’t fix, run
DISM /Online /Cleanup-Image /RestoreHealth, then run SFC again.
How To Keep The Error From Coming Back
Once you get the tray working again, a few habits can reduce repeat failures. The idea is to keep Windows from holding the drive longer than needed and to keep the hardware moving smoothly.
Habits That Reduce Locks
- Close the file window first — Back out of the disc view before you hit Eject.
- Leave Preview pane off — If you use discs often, this alone cuts a lot of “in use” locks.
- Let the disc spin down — Wait until the drive light stops before you eject.
- Store discs properly — Keep them clean and flat to reduce strain on the tray and spindle.
Signs The Drive Is Wearing Out
Optical drives age. Belts stretch, lasers weaken, and trays start sticking. If you see these signs often, replacing the drive can be the cleanest fix.
- Repeated tray hesitation — The tray tries to open, then slides back in.
- Read errors on clean discs — Multiple discs fail even after cleaning.
- Random disconnects — The drive disappears from Windows until a restart.
When To Switch To An External Drive
If your internal unit is flaky, a USB external drive is often the simplest route. It’s easy to test, easy to replace, and avoids tearing open a laptop chassis.
Before you buy anything, rerun the device stack steps and the pinhole release once. If the tray still refuses and the behavior repeats across discs, hardware is the likely culprit.
