Compdigitec Labs

« | Home | »

How to force a CD/DVD drive to eject in Linux

By admin | March 20, 2010

Usually, the CD drive in Linux is pretty permissive just like in Windows, where one can eject and insert discs at any time. However, sometimes some random bugs in various application show up when you eject a disk while reading, and the operating system no longer honours any requests to eject (e.g. pressing the eject button the physical drive) because the application is still waiting for the request to complete.

Normally, pressing the eject icon next to the drive in Nautilus would work and usually this command too:

eject

However, even that sometimes doesn’t work properly. Therefore, we need to use cdrecord to forcibly eject:

cdrecord -eject

This usually will cause the CD tray to eject. However it is recommended that you eject normally by using the eject command as forced ejects could create problems with programs.

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more interesting articles!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 12 Comments »

12 Responses to “How to force a CD/DVD drive to eject in Linux”

  1. ร้านตัดแว่น ใกล้ฉัน Says:
    July 31st, 2025 at 00:07

    … [Trackback]

    […] Find More on to that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  2. เน็ต ais Says:
    August 13th, 2025 at 02:30

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  3. รับจดทะเบียนบริษัท Says:
    August 23rd, 2025 at 18:39

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  4. จองตั๋วรถทัวร์ Says:
    August 28th, 2025 at 19:29

    … [Trackback]

    […] Info to that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  5. clothing manufacturer Says:
    October 16th, 2025 at 22:28

    … [Trackback]

    […] Find More on that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  6. รับจด อย Says:
    November 18th, 2025 at 10:42

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  7. เครื่องเป่าแอลกอฮอล์ Says:
    December 4th, 2025 at 23:48

    … [Trackback]

    […] There you will find 1346 more Info on that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  8. Huhn Says:
    December 16th, 2025 at 13:33

    … [Trackback]

    […] Read More Information here to that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  9. hell hot 54 Says:
    December 17th, 2025 at 04:32

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  10. essentials fear of god Says:
    December 27th, 2025 at 19:56

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  11. 123bet login Says:
    January 13th, 2026 at 00:41

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

  12. qazluke.kz Says:
    January 30th, 2026 at 21:35

    … [Trackback]

    […] Read More Info here on that Topic: compdigitec.com/labs/2010/03/20/how-to-force-a-cddvd-drive-to-eject-in-linux/ […]

Comments