From owner-freebsd-stable Sun Oct 27 14: 3:14 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 71EFA37B4FA for ; Sun, 27 Oct 2002 14:03:12 -0800 (PST) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60B0343E3B for ; Sun, 27 Oct 2002 14:03:11 -0800 (PST) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.5/8.12.5) with ESMTP id g9RM39TJ025415 for ; Mon, 28 Oct 2002 01:03:09 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Mon, 28 Oct 2002 01:03:09 +0300 (MSK) From: Dmitry Morozovsky To: freebsd-stable@FreeBSD.ORG Subject: Re: unmounting disabled with writeprotected floppy In-Reply-To: <20021027223949.A359@gicco.homeip.net> Message-ID: <20021028010155.J24481-100000@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sun, 27 Oct 2002, Hanspeter Roth wrote: HR> I frequently store some files on a floppy. Thus my fstab contains HR> /dev/fd0 /floppy msdos rw,noauto 0 0 HR> This usually allows me to write on the floppy. HR> Sometimes I insert a floppy that's writeprotected. HR> If I forget to mount it readonly explicitly (-r) the system thinks HR> it is writeable. If the floppy is unmounted without any attempts to HR> write to the floppy there is no problem. HR> The problem starts if I forget to mention -r. After attempting to HR> unmount the floppy the system starts to I bark at the console. HR> It prevents the floppy from being unmounted. After shutdown is HR> issued the system insists that the floppy must be unmounted _before_ HR> any other filesystem (/, /var, /usr) is unmounted. But since it also HR> prevents the floppy from being unmounted it also prevents the other HR> filesystems from being unmounted. They will be fscked on the next HR> boot. HR> I think this situation is better solved in Linux. Why not mount the HR> floppy implicitly readonly if it is writeprotected? There was a thread about it a couple of weeks ago, you can look through the archives. For the meantime, a perfectly accepted for me workaround is emulators/mtools port. Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message