Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2008 17:48:07 +0300
From:      "Peter Trifonov" <petert@dcn.nord.nw.ru>
To:        <freebsd-usb@freebsd.org>
Subject:   Mounting USB flash drive
Message-ID:  <000901c861bc$cb8b9e90$62a2dbb0$@nord.nw.ru>

next in thread | raw e-mail | index | archive | help
Hello everyone, 


I am trying to configure FreeBSD 6.3 to allow hot removal of USB flash cards
without their manual unmounting.
I have successfully used the patches by Henrik Gulbrandsen
(http://www.freebsd.org/cgi/query-pr.cgi?pr=46176&cat= )
to avoid kernel panic after device removal, and the only problem remaining
is cache management. 

If the device is mounted without the sync option, the performance is
perfect, but hot removal
sometimes causes data corruption on the flash disk. If sync option is used
while mounting the device,
write performance becomes terrible (20 KB/s). Is there any way to improve
write performance with sync option
or prevent data corruption without it?

I understand that umount should be used to completely avoid these problems,
but in my case it is not 
possible to invoke it, since the users will not be given shell access. 



With best regards,
P. Trifonov






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000901c861bc$cb8b9e90$62a2dbb0$>