{"id":446,"date":"2023-11-04T11:38:32","date_gmt":"2023-11-04T19:38:32","guid":{"rendered":"https:\/\/nramkumar.org\/tech\/?p=446"},"modified":"2023-11-04T11:39:42","modified_gmt":"2023-11-04T19:39:42","slug":"disabling-physical-button-in-cd-dvd-blu-ray-drives-in-linux","status":"publish","type":"post","link":"https:\/\/nramkumar.org\/tech\/blog\/2023\/11\/04\/disabling-physical-button-in-cd-dvd-blu-ray-drives-in-linux\/","title":{"rendered":"Disabling physical button in CD\/DVD\/Blu-ray drives in Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you need to disable the physical button in CD\/DVD\/Blu-ray drives in Linux, you can use these instructions on Ubuntu based distributions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy <code>\/usr\/lib\/udev\/rules.d\/60-cdrom_id.rules<\/code> to <code>\/etc\/udev\/rules.d<\/code><\/li>\n\n\n\n<li>Edit <code>\/etc\/udev\/rules.d\/60-cdrom_id.rules<\/code><\/li>\n\n\n\n<li>Comment out the line that has <code>ENV{DISK_EJECT_REQUEST}<\/code><\/li>\n\n\n\n<li>Use the eject utility to disable the physical button: <code>sudo eject -i on \/dev\/cdrom<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you need to disable the physical button in CD\/DVD\/Blu-ray drives in Linux, you can use these instructions on Ubuntu based distributions:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-446","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/comments?post=446"}],"version-history":[{"count":3,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":450,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/posts\/446\/revisions\/450"}],"wp:attachment":[{"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/media?parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/categories?post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nramkumar.org\/tech\/wp-json\/wp\/v2\/tags?post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}