From owner-freebsd-current@FreeBSD.ORG Tue Jan 6 12:45:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 180FF16A4D0 for ; Tue, 6 Jan 2004 12:45:10 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6520043D49 for ; Tue, 6 Jan 2004 12:45:08 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id HAA03884; Wed, 7 Jan 2004 07:44:58 +1100 Date: Wed, 7 Jan 2004 07:44:56 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Fabrizio Parrella In-Reply-To: <200401061059.54892.fabrizio@nldesign.com> Message-ID: <20040107074011.D5599@gamplex.bde.org> References: <200401061059.54892.fabrizio@nldesign.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: current@freebsd.org Subject: Re: mount / umount X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 20:45:10 -0000 On Tue, 6 Jan 2004, Fabrizio Parrella wrote: > I mount a msdos floppy disk with: > > mount -tmsdos /dev/fd0 /mnt/floppy > > and everything works fine.. > when I tried to umount, I got this: > > umount: unmount of /mnt/floppy failed: Resourde temporary =A0unavailable > # fd0: hard error cmd=3Dwrite fsbn 19 (ST0 40 ST1 2 ST2 0 > cyl 0 hd 1 sec 2 It's not writable, so you need to mount it with option ro. msdosfs used to have the nice property of not scribbling on disks unless there is a write() or chmod() etc. on the disk, but it now always writes to the FAT for non-ro mounts to clear the clean flag. > PLUS, if I try to mount the floppy disk by an user and not as root, I get= thie > message: > > msdosfs: /dev/fd0: Operation not permitted Various things prevent user mounts (see another reply), and non-clean disks should now prevent read-write mounting. I'm not sure if this works yet. Bruce