Re: umount without sync

2010-09-17 Thread Timo Juhani Lindfors
T o n g mlist4sunt...@yahoo.com writes: I saw that it is a common practice to issue sync several times before umount. I know it's a good practice, but is it really necessary? There have been some bugs afaik and a sync has been a workaround. If I copy a big chuck of file to my USB, then

Re: umount without sync

2010-09-17 Thread T o n g
On Fri, 17 Sep 2010 15:32:35 +0300, Timo Juhani Lindfors wrote: There have been some bugs afaik and a sync has been a workaround. . . . You should not lose any data if you wait for umount to succeed afaik. So the workaround doesn't hold any more? -- Tong (remove underscore(s) to

Re: umount without sync

2010-09-17 Thread Jochen Schulz
T o n g: I saw that it is a common practice to issue sync several times before umount. I know it's a good practice, but is it really necessary? No, it's completely unnecessary as umount does the sync for you. Just don't unplug removable drives before umount returns. If I copy a big chuck

Re: umount without sync

2010-09-17 Thread Scott Ferguson
On 17/09/10 22:25, T o n g wrote: Hi, I saw that it is a common practice to issue sync several times before umount. I know it's a good practice, but is it really necessary? If I copy a big chuck of file to my USB, then issue umount immediately, will I lost any data? I think Linux will

Re: umount without sync

2010-09-17 Thread Erwan David
On Fri, Sep 17, 2010 at 02:32:35PM CEST, Timo Juhani Lindfors timo.lindf...@iki.fi said: T o n g mlist4sunt...@yahoo.com writes: I saw that it is a common practice to issue sync several times before umount. I know it's a good practice, but is it really necessary? There have been some

Re: umount without sync

2010-09-17 Thread Daniel Barclay
Scott Ferguson wrote: On 17/09/10 22:25, T o n g wrote: ... umount swap? I suspect you mean swapoff (though I can't think of many uses). There probably aren't many, but one is to reclaim disk space. For example, if you use swap files (as opposed to partitions) and the file system