From bicknell@ussenterprise.ufp.org  Fri Apr  3 10:17:08 1998
Received: from ussenterprise.ufp.org (bicknell@ussenterprise.ufp.org [209.12.7.40])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA11461
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 3 Apr 1998 10:17:05 -0800 (PST)
          (envelope-from bicknell@ussenterprise.ufp.org)
Received: (from bicknell@localhost)
	by ussenterprise.ufp.org (8.8.7/8.8.7) id NAA01770;
	Fri, 3 Apr 1998 13:16:51 -0500 (EST)
Message-Id: <199804031816.NAA01770@ussenterprise.ufp.org>
Date: Fri, 3 Apr 1998 13:16:51 -0500 (EST)
From: Leo Bicknell <bicknell@ufp.org>
Reply-To: bicknell@ufp.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: No way to detect removable media.
X-Send-Pr-Version: 3.2

>Number:         6202
>Category:       bin
>Synopsis:       No way to detect removable media.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr  3 10:20:01 PST 1998
>Closed-Date:    Fri Jun 15 20:44:10 PDT 2001
>Last-Modified:  Fri Jun 15 20:51:26 PDT 2001
>Originator:     Leo Bicknell
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
United Federation Of Planets
>Environment:

	IDE based ZIP disk drive in a Pentium class FreeBSD system.

>Description:

	There appears to be no standard, reliable method for determining
if a removable media drive (eg, my ZIP disk, or a Floppy Drive) contains
media.  Attempting a mount is not good enough, as the disk may have
several different types of file systems on it, or no file system at
all (eg, raw tar archive).

>How-To-Repeat:

	

>Fix:
	
	Suggest a new command that tests for the presence of meida
in a removable disk drive (which requires correct ioctl()'s as well),
suitable for use in a shell script.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Fri Jun 15 20:44:10 PDT 2001 
State-Changed-Why:  
It's not likely that this will ever be fixed as there is no easy way 
of fixing this. You can also use fdisk to display info on the disk. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=6202 
>Unformatted:
