From owner-freebsd-questions@FreeBSD.ORG Mon Jun 30 06:50:45 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 D7C4437B401 for ; Mon, 30 Jun 2003 06:50:45 -0700 (PDT) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id D846A43FEC for ; Mon, 30 Jun 2003 06:50:43 -0700 (PDT) (envelope-from doublef@tele-kom.ru) Received: (qmail 13030 invoked by uid 555); 30 Jun 2003 17:50:42 +0400 Received: from tele-kom.ru (213.80.149.220) by t-k.ru with TeleMail/2 id 1056981041-13007 for lahaye@snu.ac.kr; Mon, 30 Jun 17:50:41 2003 +0400 (MSD) Message-ID: <3F0078B6.1080102@tele-kom.ru> Date: Mon, 30 Jun 2003 17:51:50 +0000 From: "Sergey \"DoubleF\" Zaharchenko" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030626 X-Accept-Language: ru, en, en-us MIME-Version: 1.0 To: Rob Lahaye References: <3EFFFE5A.7060500@snu.ac.kr> In-Reply-To: <3EFFFE5A.7060500@snu.ac.kr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org 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 13:50:46 -0000 Rob Lahaye wrote: > I created the installation floppy from "kern.flp". Removed it from the > drive, to make it read-only. > I then put it back into the drive and do, as root: > > # mount -t ufs /dev/fd0 /mnt > # umount /dev/fd0 > umount: unmount of /mnt failed: Input/output error You know, ufs filesystems store the "last mounted on" string in themselves (it is reported by "fsck", f.e.). I am not sure, but it seems like mount is willing to write it to the floppy. > 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? So you were _writing_ to a read-only floppy;)? Yes, of course, FreeBSD does cache them (that's why you can't take it out without unmounting). It's just that, short of trying to write to the floppy, you can't get to know it's read-only AFAIK. HTH, DoubleF