From owner-freebsd-hackers Fri Jul 4 10:21:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA01383 for hackers-outgoing; Fri, 4 Jul 1997 10:21:45 -0700 (PDT) Received: from ns.NL.net (ns.NL.net [193.78.240.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA01372 for ; Fri, 4 Jul 1997 10:21:40 -0700 (PDT) Received: from stuyts by ns.NL.net (5.65b/NLnet1.3) id AA28691; Fri, 4 Jul 1997 19:12:50 +0200 Received: from trantor.stuyts.nl (uucp@localhost) by terminus.stuyts.nl (8.8.6/8.8.5) with UUCP id TAA07597 for freebsd-hackers@FreeBSD.ORG; Fri, 4 Jul 1997 19:03:33 +0200 (MET DST) Received: from trantor.stuyts.nl (localhost [127.0.0.1]) by trantor.stuyts.nl (8.8.6/8.8.5) with ESMTP id TAA00468 for ; Fri, 4 Jul 1997 19:02:40 +0200 (MET DST) Message-Id: <199707041702.TAA00468@trantor.stuyts.nl> X-Mailer: exmh version 2.0delta 6/3/97 To: freebsd-hackers@FreeBSD.ORG Subject: Probing cdrom for presence of disk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 Jul 1997 19:02:39 +0200 From: Paul van der Zwan Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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..."