The problem is in the way a filesystem is handled under Unix. When you
write to the device the is driver would return a ok immediately but will
actually queue it for writting at a later stage. Any process reading or
writing to the filesystem wouldnt be aware of this. In case of a
hotswapable device - be it a floppy or something else you need to flush
the write queue before it is removed. This is done using the "sync"
command. Ofcourse when you unmount a filesystem in RW mode the unmount
command forces a sync.

As for your particular situation I think you might be using a DOS based
floppy - in that case you are better of using mtools. mdir a:, mcopy a:
etc would not require a sync or mount/umount hassles. I do believe
mtools can also be used for a ext2 filesystem - man mtools for more :).



Mithun

----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to