Hi,

Andrew M.A. Cater wrote:
> In practice, queuing up a few mount/umount/eject commands and then runnng
> the apt-get install commands or whatever by using an up arrow command to
> repeat wasn't a problem.

How did you work around the tray loading bug ?

The Linux kernel lost the ability to wait for the CD-ROM drive to become
ready after a new medium was loaded. Symptom is e.g. that mount lets the
drive load the tray, but then immediately errors out by:
  mount: no medium found on /dev/sr0
The regression was probably introduced in 2008 to kernel 2.4 by commit
210ba1d1724f ("[SCSI] sr: update to follow tray status correctly"). Since
then the user has to do the waiting and let most software know when it is ok
to try reading from the drive.

A workaround is to use a burn program to load the tray. Such programs wait
independently of the kernel until the drive is ready before they begin to
further inquire its state. Like
  xorriso -outdev /dev/sr0 ; mount /dev/sr0 /mnt/cdrom


Have a nice day :)

Thomas

Reply via email to