From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 03:24:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7590237B401 for ; Mon, 30 Jun 2003 03:24:02 -0700 (PDT) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 394D243FAF for ; Mon, 30 Jun 2003 03:24:01 -0700 (PDT) (envelope-from lahaye@users.sourceforge.net) Received: (snipe 11911 invoked by alias); 30 Jun 2003 10:32:32 -0000 Received: from lahaye@users.sourceforge.net with Spamsniper2.0 (Processed in 0.050662 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 30 Jun 2003 10:32:32 -0000 X-RCPTTO: freebsd-questions@freebsd.org,listone@deathbeforedecaf.net, Received: from users.sourceforge.net ([147.46.44.183]) by sis1.snu.ac.kr (8.12.9/8.12.9) with ESMTP id h5UALhuR289208; Mon, 30 Jun 2003 19:21:43 +0900 Message-ID: <3F000FC6.7000300@users.sourceforge.net> Date: Mon, 30 Jun 2003 19:24:06 +0900 From: Rob Lahaye Organization: Seoul National University - South Korea User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030518 X-Accept-Language: en-us, en, ko-kr MIME-Version: 1.0 To: Rob , freebsd-questions@freebsd.org References: <3EFFFE5A.7060500@snu.ac.kr> <00d201c33eeb$05075870$a4b826cb@goo> <3F000966.5000102@users.sourceforge.net> <011b01c33ef0$059c0510$a4b826cb@goo> In-Reply-To: <011b01c33ef0$059c0510$a4b826cb@goo> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: mount & umount read-only floppy: unmount failed: Input/output error ?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 10:24:02 -0000 Rob wrote: > That's strange - I get errors as soon as I try and do this, before the > filesystem is even available. > > Perhaps the updates from mounting the floppy aren't being written out to > the actual media until you try to unmount it - some kind of caching > issue? > > What happens if you try to touch a file on the (incorrectly) writeable > floppy? Are you also using FreeBSD 4.8? I have created the installation floppy from the kern.flp file. I then made this floppy readonly. I put that into my floppy drive and... # mount -t ufs /dev/fd0 /mnt # ls -lo /mnt total 1301 drwxr-xr-x 2 root wheel - 512 Apr 3 20:06 boot -r-xr-xr-x 1 root wheel - 1324900 Apr 3 20:06 kernel.gz # touch /mnt/kernel.gz # ls -lo /mnt total 1301 drwxr-xr-x 2 root wheel - 512 Apr 3 20:06 boot -r-xr-xr-x 1 root wheel - 1324900 Jun 30 19:17 kernel.gz # umount /mnt umount: unmount of /mnt failed: Input/output error # Notice that the time has changed due to the 'touch' of the file despite being readonly!! The very little I know about filesystems, I guess the 'touch' has been applied to the cache, not to the actual floppy. The umount forces a sync, which can't be done due to readonly. Something is fishy here, isn't it? Rob.