[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Removable Media: What is the practical answer??



On Wed, Apr 02, 2003 at 02:47:12PM -0500, Derrick 'dman' Hudson wrote:
> 
> Different removable media is different (because of the hardware).  The
> biggest issue is floppies on x86 systems.  The insertion mechanism is
> purely mechanical and sends no notification to the software.  Likewise
> for the eject button.  Thus the kernel has no way of knowing that a
> floppy was inserted or is about to be ejected.  Thus it can't do a
> very good job of automatically mounting the disk (though the
> automounter can attempt a mount upon access, AFAIK) and it can't
> ensure that the file system is flushed before the disk is really
> removed.

One thing that may help is to mount the floppy with the sync option.
Most people (Mom's) are sufficiently trained to not remove the floppy
while the it is still spinning / light is on.

This isn't clean, of course, and won't help much if Mom really flakes
out and inserts another disk, but it should prevent filesystem
corruption on the first floppy.

-troy



Reply to: