The attached program for manually locking the CD-ROM tray used to work in 2.6.0 and 2.6.1, and possibly some earlier versions of 2.6.2 when called like "cd-lock /dev/hdc", where hdc is my CD-ROM drive. However, under 2.6.2-rc1-mm2 and 2.6.2-mm1, calling the program with an empty drive (which used to work) results in the following: open failed: No medium found Has anything changed recently which would cause open() to fail with an empty CD drive? Just for good measure, I've attached the output of strace when running this program.