Data Loss with samba shared USB drive

David Taylor davidt at yadt.co.uk
Sat Dec 3 13:46:07 PST 2005


On Sat, 03 Dec 2005, David Taylor wrote:

> I have a USB drive (SanDisk 1GB flash drive), which I have mounted
> on a windows PC using samba 3.0.
> 
> I recently discovered the copy of my files on my USB device were
> corrupted (thankfully I had a backup), being filled entirely with
> 0's (that's ASCII '0', not NUL).
> 
> I have managed to reproduce the problem with these steps.  
> 
> 1. Mount USB drive on (say) /usb
> 2. Share /usb over samba
> 3. (Optional) On windows PC mount \\server\usb as (say) U:
> 4. Change something on /usb drive (from windows or freebsd)
> 5. On FreeBSD machine type "umount /usb" -- get "Device busy" error
> 6. View changed file.

I should probably mention that this is with the drive formatted with
a FAT filesystem.

-- 
David Taylor


More information about the freebsd-stable mailing list