Re: mount / umount

From: Fabrizio Parrella <fabrizio_at_nldesign.com>
Date: Tue, 6 Jan 2004 16:05:03 -0500
This mean that will be not possible mount a floppy disk with some files in? or 
a CDROM with some files?

fabry

On Tuesday 06 January 2004 03:44 pm, Bruce Evans wrote:
> 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  unavailable
> > # fd0: hard error cmd=write 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
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Tue Jan 06 2004 - 12:06:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC