Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2004 07:44:56 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Fabrizio Parrella <fabrizio@nldesign.com>
Cc:        current@freebsd.org
Subject:   Re: mount / umount
Message-ID:  <20040107074011.D5599@gamplex.bde.org>
In-Reply-To: <200401061059.54892.fabrizio@nldesign.com>
References:  <200401061059.54892.fabrizio@nldesign.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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<abnrml> ST1 2<write_protect=
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040107074011.D5599>