[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] CDROM mounting question



On Wed, 2008-11-12 at 18:39 -0800, Ken Arromdee wrote:
> How do I set it up so that if I put a CDROM in a drive and try to mount it,
> but the drive hasn't finished figuring out that I inserted a CDROM, the mount
> command waits for the drive to do so rather than immediately producing an
> error?

Perhaps use a script like

#!/bin/sh
until [ $? -eq 0 ]
do
        mount /dev/dvd /media/cdrom
        sleep 1
done

-Brian