Eject CD from a Laptop: 6 Fixes for a Stuck Disc (2026)
Nothing turns a simple task into a panic faster than a disc that refuses to leave your laptop. Maybe you just wanted to swap in a different DVD, or maybe the drive has not been opened in years and now the disc you actually need is trapped inside. Either way, the good news is that most stuck-disc situations are recoverable at home: Windows, macOS, and Linux all offer software eject routes, tray-loading drives have a hidden manual release, and only a minority of cases end in a repair.
This guide walks you through ejecting a CD from a laptop in every major operating system, then gives you a six-step rescue ladder for when the disc will not come out. It also covers slot-loading drives, Windows driver and registry repairs, and the moment when it makes more sense to replace the drive than to keep fighting it.
Table of Contents#
- Why a Disc Gets Stuck in a Laptop Drive
- How to Eject a CD from a Laptop the Normal Way
- Fix 1: Free the Disc from Software That Is Using It
- Fix 2: Force Eject at Boot or from the BIOS
- Fix 3: Use the Emergency Eject Pinhole
- Fix 4: Retrieve a Disc from a Slot-Loading Drive
- Fix 5: Repair the Windows Driver and Registry Side
- Fix 6: Decide Between Repair and Replacement
- No Optical Drive in Your Laptop? Use an External USB Drive
- Best Practices and Common Mistakes
- Frequently Asked Questions
- Conclusion
- References
Why a Disc Gets Stuck in a Laptop Drive#
Before reaching for tools, it helps to know which of four typical problems you are dealing with:
- Software is holding the disc. Disc playback, ripping, or burning software can keep the disc mounted and reject eject requests. Packet-writing tools are the classic offenders: while a drag-and-drop session is open, the tray is locked by design.
- The operating system or driver is misbehaving. If the physical eject button works inside the BIOS but not after Windows loads, the mechanism is fine and the problem is in the software stack — a corrupted driver, or filter drivers that survived an uninstall of a burning suite.
- The mechanism is jammed. A disc that has slipped off the spindle, two discs fed into one drive, or a plain mechanical fault can physically block the tray. Symptoms include grinding or repeated clicking, or a tray that opens part-way and stops.
- The drive has failed. If no software method works and the manual release also does nothing (or the spindle motor never turns), the drive itself is likely dead.
Each of the fixes below targets one of these causes. Work through them in order — they go from completely safe to increasingly hands-on.
How to Eject a CD from a Laptop the Normal Way#
For a disc that is not stuck, use the operating system rather than prying at the hardware. Software eject is also the fastest way to test whether the drive responds at all.
Windows 11 and Windows 10#
- Make sure no application is reading or writing the disc.
- Press Win + E to open File Explorer.
- Select This PC in the left pane.
- Right-click the CD/DVD/Blu-ray drive icon and choose Eject.
If your laptop has a physical eject button on the drive bezel, or a dedicated Eject key on the keyboard (some models place one near the top-right keys), pressing it triggers the same software eject. When Windows is healthy, all three routes behave identically.
For scripting and automation, the Shell.Application COM object exposes the same verb. Replace D: with your optical drive's letter:
(New-Object -ComObject Shell.Application).Namespace(17).ParseName('D:').InvokeVerb('Eject')macOS#
- Select the disc icon on the desktop and choose File > Eject (Command-E).
- Press the Eject key, if your keyboard has one.
- In a Finder window, click the eject symbol next to the disc's name in the sidebar.
- From Terminal, the built-in
drutilutility opens the tray (man drutilfor all options):
drutil tray ejectYou can also show a permanent eject control in the menu bar: System Settings > CDs & DVDs > Show eject in menu bar (this setting appears only when an optical drive is connected).
Linux#
Desktop environments such as GNOME and KDE put an Eject entry on the file manager's context menu. From the shell, eject (part of the standard util-linux toolset) handles the job:
eject # eject the default device, usually /dev/cdrom
eject /dev/sr0 # eject a specific drive
eject -t /dev/sr0 # close the tray again
eject -T /dev/sr0 # toggle the tray open/closed
eject -i on /dev/sr0 # disable the hardware eject button
eject -i off /dev/sr0 # re-enable the hardware eject buttonTwo behaviors are worth knowing. First, eject unmounts the media before opening the tray, so a busy filesystem is not an obstacle. Second, some drives refuse to open when the tray is empty — if the goal is simply to open the door, insert the disc first or use the button while the machine is powered.
The -i on option is a genuinely useful laptop trick: it locks the hardware eject button so the tray cannot pop open by accident while the machine is jostling around in a bag.
Fix 1: Free the Disc from Software That Is Using It#
Targets: discs held hostage by a running program.
A drive will not release a disc that is in active use. Clear the way like this:
On Windows:
- Close every application that could be touching the disc — media players, ripping tools, backup utilities, and especially disc-burning or packet-writing software.
- Check the notification area (system tray) at the bottom-right of the screen. Right-click any icon belonging to disc software and choose Exit or Close.
- Press Ctrl + Shift + Esc to open Task Manager. If you can identify a process that is still reading the drive, select it and choose End task.
- Try the File Explorer eject again.
On macOS:
- Quit the app that is using the disc. If you cannot quit it, close just the file that is open from the disc and try again.
- If another user account is logged in and holding the disc, log that user out.
- Still stuck? Log out of your own session and log back in, then eject once more.
If the disc now leaves the drive, you have confirmed cause number one. To avoid repeats, always close burning software before ejecting, and eject cleanly before unplugging an external drive.
Fix 2: Force Eject at Boot or from the BIOS#
Targets: driver problems and software locks that survive a normal session.
Ejecting before the operating system loads bypasses almost every software obstacle, because neither your applications nor the OS drivers are in play yet.
Windows laptops:
- Save your work and restart the laptop.
- Try pressing the drive's eject button during the restart, while the screen is still on the manufacturer logo. Some drives respond at this stage even when Windows is not running.
- For a cleaner test, enter the firmware setup instead: restart and tap the setup key (commonly F2 or Del — check your model's manual). While in the BIOS/UEFI screen, press the drive's physical eject button.
- Interpret the result:
- Tray opens in the BIOS → the hardware works; the problem is in Windows. Move on to Fix 5.
- Tray does not open in the BIOS → no program is involved at all. Move on to Fix 3 or Fix 6.
While you are in the firmware, confirm the optical drive is actually detected and enabled. Manufacturers also list a BIOS/UEFI update among the standard remedies for eject problems, so installing the latest firmware from your laptop maker is worth doing at the same time.
Mac laptops:
- Quit the app using the disc, then choose Apple menu > Restart.
- As the Mac restarts, press and hold the mouse or trackpad button until the disc slides out. This is Apple's documented force-eject sequence for optical drives.
- Alternative: hold the Option key during startup. When the boot picker shows your discs, select the stuck disc and press Eject.
Fix 3: Use the Emergency Eject Pinhole#
Targets: tray-loading drives with a mechanical jam or a completely unresponsive drive.
Tray-loading optical drives have a manual release: a tiny pinhole on the drive face, separate from the eject button. Pushing a straightened paper clip into it directly drives the gear that opens the tray — no power required. Slot-loading drives are the exception and have no such hole. Check your model's manual if you cannot find the pinhole.
- Shut down the laptop. (On a notebook, also put it on a hard, level surface so the tray can extend without scraping.)
- Unfold a paper clip until you have a straight section about 1 to 2 inches (2 to 5 cm) long.
- Find the pinhole on or beside the drive door. It is small — use a flashlight if needed.
- Insert the clip slowly until you feel light resistance, then push gently. You may hear a click as the gear engages.
- If the tray only pops out a few millimeters, remove the clip and push again as many times as needed, then ease the tray out with your fingers.
- Stop pulling the instant you feel resistance. A tray that fights back is jammed, not stuck shut — brute force bends the rails and turns a cheap fix into a replacement.
- Lift the disc out and close the tray.
This method works on a powered-off laptop and on a machine that will not boot, which makes it the most reliable rescue in this guide.
Fix 4: Retrieve a Disc from a Slot-Loading Drive#
Targets: slim laptops and all-in-ones with a motorized slot instead of a tray.
Slot-loading drives swallow discs the way a car stereo does. Because there is no tray and no manual eject hole, manufacturers explicitly warn that there is no manual release. Work with the mechanism, not against it:
- Retry the software routes first, including the boot-time and firmware eject from Fix 2. Slot-load drives respond to the eject command right up until they lose power.
- If the disc is partially out, do not yank it. Trigger the eject again while applying only a whisper of tension, so the motor does the pulling.
- For a disc that is fully swallowed and silent, one widely used field technique is to stiffen a thin plastic card (a loyalty card, never metal) with a small piece of tape sticky-side-out on one end, slide it into the slot above the disc, and pull gently while triggering eject. This is a last resort before a service visit: no metal tools, no blades, no glue, and never insert a second disc to shove the first one out — that reliably produces a two-disc jam.
- Listen for the telltale grinding of a double feed. If someone pushed a second disc in after the first, assume both are trapped and go straight to professional service.
If none of the software commands produces even a whir from the motor, the drive has likely lost power or failed — see Fix 6.
Fix 5: Repair the Windows Driver and Registry Side#
Targets: drives that work in the BIOS but vanish or lock up inside Windows.
When the firmware can open the tray but Windows cannot, the fix is in the driver stack. Windows uses its own inbox driver for optical drives, so there is usually nothing to download — reinstalling is what matters.
Reinstall the drive driver#
- Press Win, type Device Manager, and press Enter.
- Expand DVD/CD-ROM drives.
- Right-click your drive and choose Uninstall device, then confirm.
- Restart the laptop. Windows reinstalls the driver automatically on the next boot.
If the drive does not appear in Device Manager at all, check the BIOS first (is the drive detected there?). On an internal drive that is missing from the BIOS as well, the connection or the drive itself has failed. On a laptop with no entry because it has no optical hardware, see the external-drive section below.
Remove and reinstall the IDE/ATAPI controller stack#
Still broken? The controller layer may be the culprit:
- In Device Manager, open the View menu and choose Show hidden devices.
- Expand IDE/ATAPI controllers.
- Right-click and Uninstall each ATA Channel entry and any Standard Dual Channel PCI IDE Controller.
- Reboot and let Windows rebuild the stack.
Clear corrupted filter entries in the registry#
Disc-burning software installs "filter" drivers above the CD class driver. Uninstallers frequently leave these behind, and Windows then reports the drive with a yellow exclamation mark and errors such as Code 19 (damaged registry configuration), Code 31, Code 32, Code 39, or Code 41. Microsoft's supported remedy is to delete the orphaned filter values:
-
Press Win + R, run regedit, and accept the UAC prompt. Back up the registry first (File > Export).
-
Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318} -
In the right pane, delete the UpperFilters value (leave UpperFilters.bak alone if present).
-
Delete the LowerFilters value as well, if it exists.
-
Close Registry Editor and restart.
Note that any disc-burning app tied to the deleted filters may misbehave afterwards; reinstalling that app restores what it genuinely needs.
Last software levers#
- Install the latest chipset and storage drivers from your laptop manufacturer, and update the BIOS/UEFI firmware.
- On some models a vendor utility controls the drive eject (for example, Dell's QuickSet package on certain laptops). If eject keys or slot-load eject stopped working after a Windows reinstall, check your manufacturer's support site for such utilities.
Fix 6: Decide Between Repair and Replacement#
Targets: drives that fail every test, including the manual release.
You have reached the hardware verdict when several of these hold at once:
- the tray does not open inside the BIOS;
- the pinhole produces no movement, or the tray opens but the spindle never turns;
- the drive repeatedly grinds, clicks, or ejects on its own;
- the device is missing in Windows and Linux even after the driver and registry repairs.
At that point the mechanism or the electronics have failed. A few realistic options:
- Professional replacement. Laptop optical drives are slim modules sized for each chassis, not the standard 5.25-inch desktop parts. They are usually reachable only after removing the bottom cover and, on some models, the keyboard. If you are not comfortable with tiny screws and delicate ribbon cables, let a technician do it. A shop can also extract a disc that has slipped inside the chassis — never shake or invert the laptop to "rattle it out", since a loose disc can foul the fan.
- Live without it. If you only needed the disc once, copy what you need and move on.
- Go external. A USB CD/DVD drive costs less than most laptop repairs and works on every machine you own.
Whatever you choose, do the disc-removal surgery first if the media itself matters. A stuck disc is recoverable; a snapped disc inside the mechanism is not.
No Optical Drive in Your Laptop? Use an External USB Drive#
Most laptops sold today ship without an internal optical drive at all. If you were hunting for an eject button and found nothing, verify the hardware before assuming it is broken:
- Open Device Manager and look for a DVD/CD-ROM drives category. If the category is missing, the laptop has no optical hardware — there is nothing to eject, and no pinhole to look for.
- Check the chassis edges for a slim slot or a drive door, and consult the model's manual for the exact configuration.
An external USB optical drive solves the whole problem:
- Plug it straight into a laptop USB port (try a different port if it is not detected, and avoid unpowered hubs for the first test).
- Eject it from the operating system exactly like an internal drive — File Explorer, Finder, or
eject. - For a drive that is not detected at all, reinstall its driver from Device Manager as in Fix 5; for USB models, also try the drive on another computer to separate a dead drive from a port problem.
Many external drives also burn discs, which turns one purchase into a backup and recovery tool for every machine you own.
Best Practices and Common Mistakes#
Do:
- Eject from the operating system before unplugging or powering down an external optical drive.
- Close burning and ripping software before ejecting, and check the system tray for background disc utilities.
- Keep the laptop on a hard, level surface whenever the tray is extending or retracting.
- Store loose discs in sleeves. A disc left loose in a laptop bag can work itself out of the tray and into the chassis.
- Test an unused drive occasionally, so you discover problems while nothing important is inside.
Do not:
- Force a tray that resists. If it will not slide, the jam is elsewhere — more pulling just bends the rails.
- Insert screwdrivers, knives, or metal pins into a slot-loading drive. Only tray-loading drives have a pinhole.
- Feed a second disc in to push the first one out. Two discs in one mechanism is a classic, self-inflicted jam.
- Shake, flip, or rap the laptop to dislodge a loose disc.
- Delete registry values without a backup. The filter fix works, but an inattentive edit can break other devices.
- Assume the drive is broken when the eject button does nothing — a driver problem makes a healthy drive look dead. Always retest in the BIOS.
Frequently Asked Questions#
Why does my CD drive open but the disc is missing? The disc has probably slipped off the spindle and is lying inside the chassis, or a second disc was fed in earlier. Power the laptop down and inspect the bay. A disc that has fallen inside the machine usually needs a technician to retrieve; rattling it around can scratch the disc or jam the fan.
Can I eject a CD from a laptop that is turned off? Not electronically — the eject button needs power and the tray will not open on its own. The manual pinhole release, however, is purely mechanical and works fine on a powered-down laptop.
Is it safe to stick a paper clip in the eject hole? Yes, on tray-loading drives. That is exactly what the hole is for. Use the pinhole on the drive face only, and never push anything into the disc slot of a slot-loading drive.
My laptop's eject button does nothing. Is the drive dead? Not necessarily. Test the button again from the BIOS/UEFI screen. If it works there but not in Windows, reinstall the driver and clear the registry filters (Fix 5). If it fails everywhere, treat it as a hardware fault.
How do I open my CD drive if my laptop does not have one? You cannot — the laptop simply lacks the hardware. Confirm in Device Manager (no DVD/CD-ROM drives category) and buy a USB external drive instead.
Conclusion#
Ejecting a CD from a laptop is usually a thirty-second job: File Explorer, Finder, or a single eject command. When it is not, the fix is almost always one of the following: software that is still using the disc, a Windows driver or leftover filter entry, or a mechanical jam that the emergency pinhole can release. Work the ladder in order — software eject, boot-time or firmware eject, manual pinhole, slot-load recovery, driver and registry repair — and only then decide whether a proprietary laptop drive is worth replacing.
And if your machine turned out to have no optical drive at all, that is not a fault either. A small USB drive handles discs on any laptop you will own from here on.
References#
- Dell Technologies, Optical Disk Drive is Unable to Eject the Disc
- Dell Technologies, Troubleshooting Optical Drive Recognition Issues in Windows
- Microsoft Support, Your CD or DVD drive is not recognized by Windows or other programs
- Lenovo Support, How to eject the CD/DVD tray with a physical eject button or Windows
- Sony Support, The CD, DVD or Blu-ray Disc drive tray will not open or a disc is stuck in the drive
- Sony Support, How to manually eject the CD/DVD drive tray
- Apple, Eject CDs and DVDs from your Mac
- Apple, If you can't eject a disk on Mac, try these solutions
- Linux manual pages, eject(1) — eject removable media