From owner-freebsd-hackers Fri Jul 4 11:10:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA02922 for hackers-outgoing; Fri, 4 Jul 1997 11:10:34 -0700 (PDT) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA02906 for ; Fri, 4 Jul 1997 11:10:28 -0700 (PDT) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA21335; Fri, 4 Jul 1997 11:05:05 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd021327; Fri Jul 4 18:04:58 1997 Date: Fri, 4 Jul 1997 11:03:32 -0700 (PDT) From: Julian Elischer To: Paul van der Zwan cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Probing cdrom for presence of disk In-Reply-To: <199707041702.TAA00468@trantor.stuyts.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Workman does it.. see what they do.. I believe they use a direct SCSI command via the user-scsi facility. On Fri, 4 Jul 1997, Paul van der Zwan wrote: > Is there a way to probe a cdrom drive for the presence of a disk without > getting any messages on the console? I am trying to write some software to > automatically mount a cd if it is inserted in the drive, but filling the > console with errors is not something I want to happen. > > Paul > > -- > Paul van der Zwan paulz @ trantor.stuyts.nl > "I think I'll move to theory, everything works in theory..." > > >