Norman Ding <yuanshanding(a)hotmail.com> wrote:
> I need to verify that the floppy that is mounted is the same one that
> is actually in the drive prior to writing to it (otherwise it erases
> the disk). Novice Linux users are accidentally erasing disks when
> copying files from one floppy to another. The current plan is to
> either verify the disk label/serial ID, or else unmount and re-mount
> before each write. Any suggestions on what changes I will actually
> need to make to implement this (ideas on better approaches are also
Have your users use mtools instead of mounting the floppy drive.
Presumably your /etc/fstab has '/floppy' with the option 'user'?
If you take that off, then users can't mount the floppy drive.
Presumably your users are in the group ('floppy' on my system) which is
allowed write access to the floppy device ('/dev/fd0' on my system) ?
Leave them on there, and then they can use mtools.
fdutils mailing list