Subject: Re: Determine if Floppy is in drive?
To: Perry E. Metzger <perry@piermont.com>
From: Eric Fox <eric@fox.phoenix.az.us>
List: netbsd-help
Date: 01/29/2003 10:22:49
Excellent suggestion.  It's results in messy error messages when no
floppy is found but it seems to work just fine.

Thanks!

  /\---/\  Eric J Fox
 /  o o  \ http://fox.phoenix.az.us/
 \.\   /./ ---------------------------
    \@/    "Of course it runs NetBSD."
.

On Wed, 29 Jan 2003, Perry E. Metzger wrote:

>
> Eric Fox <eric@fox.phoenix.az.us> writes:
> > Does anyone know of a way to determine if a floppy has been inserted into
> > the drive before attempting to mount it?
>
> Try to read a block or two from the raw device before mount?
>
> > I have a scripted process that
> > I'd like to have wait and periodically check for the existance of the
> > floppy before mouunting it and continuing.
> >
> >   /\---/\  Eric J Fox
> >  /  o o  \ http://fox.phoenix.az.us/
> >  \.\   /./ ---------------------------
> >     \@/    "Of course it runs NetBSD."
> > .
> >
>
> --
> Perry E. Metzger		perry@piermont.com
>