On Tue, Apr 7, 2009 at 9:20 PM, varadarajan narayanan < [email protected]> wrote:
> > If you yank the usb without unmounting the data is not wriiten ! > Is this something to do with caching ? Is there a way to disable this and > write the data immediately in to the drive so that we can yank it any time > ? Data is not written immediately. It is written asynchronously. You can force it to be written to the disk by using the sync call.. This call will exit only when all data waiting to be written has been written (This works even when you have two or more disks where data remains unwritten) #sync Now if you pull the usb drive, data is safe. Anyway. I feel it is better to unmount. Unmouting calls sync internally. But then, I guess it does some more stuff too. --- Ashok `ScriptDevil` Gautham _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
