From owner-freebsd-stable Sun Oct 27 13:39:58 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9850237B401 for ; Sun, 27 Oct 2002 13:39:57 -0800 (PST) Received: from smtp.hispeed.ch (isp246n.hispeed.ch [62.2.95.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88F0543E42 for ; Sun, 27 Oct 2002 13:39:56 -0800 (PST) (envelope-from hanspeter_roth@hotmail.com) Received: from gicco.homeip.net (dclient80-218-75-109.hispeed.ch [80.218.75.109]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id g9RLdskc014711 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 27 Oct 2002 22:39:54 +0100 Received: (from idefix@localhost) by gicco.homeip.net (8.11.6/8.11.6) id g9RLdnD00427 for freebsd-stable@freebsd.org; Sun, 27 Oct 2002 22:39:49 +0100 (CET) (envelope-from hanspeter_roth@hotmail.com) Date: Sun, 27 Oct 2002 22:39:49 +0100 From: Hanspeter Roth To: freebsd-stable@freebsd.org Subject: unmounting disabled with writeprotected floppy Message-ID: <20021027223949.A359@gicco.homeip.net> Reply-To: freebsd-stable@freebsd.org Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I frequently store some files on a floppy. Thus my fstab contains /dev/fd0 /floppy msdos rw,noauto 0 0 This usually allows me to write on the floppy. Sometimes I insert a floppy that's writeprotected. If I forget to mount it readonly explicitly (-r) the system thinks it is writeable. If the floppy is unmounted without any attempts to write to the floppy there is no problem. The problem starts if I forget to mention -r. After attempting to unmount the floppy the system starts to I bark at the console. It prevents the floppy from being unmounted. After shutdown is issued the system insists that the floppy must be unmounted _before_ any other filesystem (/, /var, /usr) is unmounted. But since it also prevents the floppy from being unmounted it also prevents the other filesystems from being unmounted. They will be fscked on the next boot. I think this situation is better solved in Linux. Why not mount the floppy implicitly readonly if it is writeprotected? -Hanspeter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message