Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Dec 2005 19:48:01 -0500
From:      Brian Fundakowski Feldman <green@freebsd.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: Data Loss with samba shared USB drive
Message-ID:  <20051209004801.GH98704@green.homeunix.org>
In-Reply-To: <20051203214605.GB44199@outcold.yadt.co.uk>
References:  <20051203213226.GA44199@outcold.yadt.co.uk> <20051203214605.GB44199@outcold.yadt.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 03, 2005 at 09:46:05PM +0000, David Taylor wrote:
> 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.

Do you also know that nothing has /usb or a subdirectory of it open
as a current working directory, and that no files are open?  You're
saying that the umount fails and the file also turns out to be
corrupted, right?

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051209004801.GH98704>