From: Mk 27 Date: 2009-05-22T05:22:02+09:00 Subject: Re: cdrom control and detection It just occurred to me that most linux users today use automounting! So using the sane method you should omit the last line BUT: That is a slight problem because mounting (automatic or not) can take several seconds. If you insert a disk and hit enter immediately, and the program is not delayed by the system "mount" call, execution will proceed altho the mount may not be completed. So, either you put in a gap sleep(5) which should be long enough, or you do some kind of check for data in the mount point directory. -- Posted via http://www.ruby-forum.com/.