Mounting USB flash drive

Peter Trifonov petert at dcn.nord.nw.ru
Mon Jan 28 07:04:48 PST 2008


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





More information about the freebsd-usb mailing list