[ale] CDROM mounting question

Brian Pitts brian at polibyte.com
Wed Nov 12 23:30:01 EST 2008


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



More information about the Ale mailing list