Subject: Re: fd hard errors
To: Gary Thorpe <gathorpe79@yahoo.com>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: tech-kern
Date: 12/02/2002 16:30:44
Hello,

> I think Linux can detect when a floppy is write protected at *mount
> time*. If you try to mount a write-protected disk as writeable you will
> get an error and it will be mounted read-only (if I remember properly).
> Neat feature (if it actually happens as I remember it).
> 
On my linux host:

pc:~# mount -t vfat -o rw /dev/fd0 /floppy/
mount: block device /dev/fd0 is write-protected, mounting read-only
pc:~# 


And if you try to open /dev/fd0 read-write when  a write-protected
floppy is in the drive, the open() call will fail with EROFS.

Bye	Pavel