lkml.org 
[lkml]   [2004]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Delay in unmounting a USB pen drive
On Wed, Nov 24, 2004 at 02:55:57PM +0530, Raj wrote:
> SuSE kernel 2.6.5:
>
> My USB pen drive has a vfat FS. When i transfer some files & try to
> unmount the drive ( umount /mnt ) , the command appears hung. CTRL+C also
> does not work. Only later did i realise that it was actually taking a
> longer time ( 10 - 15 sec )
> to unmount.

The data is only actually being written to the pen drive when you unmount.
To make unmounting fast, either mount with -o sync, or run 'sync' before
umounting.


> - Is it safe to remove the pen drive from it's slot when the umount is still in
> progress ?? ( I tried this the first time & maybe lucky me, the
> files copied were fine )

Try reading them - you will find emtpiness.

--
http://www.PowerDNS.com Open source, database driven DNS Software
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.049 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site