From owner-freebsd-stable@FreeBSD.ORG Fri Dec 9 00:48:02 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E20DA16A41F for ; Fri, 9 Dec 2005 00:48:01 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.4/8.13.1) with ESMTP id jB90m1fJ038459 for ; Thu, 8 Dec 2005 19:48:01 -0500 (EST) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.4/8.13.1/Submit) id jB90m1GI038458 for freebsd-stable@freebsd.org; Thu, 8 Dec 2005 19:48:01 -0500 (EST) (envelope-from green) Date: Thu, 8 Dec 2005 19:48:01 -0500 From: Brian Fundakowski Feldman To: freebsd-stable@freebsd.org Message-ID: <20051209004801.GH98704@green.homeunix.org> References: <20051203213226.GA44199@outcold.yadt.co.uk> <20051203214605.GB44199@outcold.yadt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051203214605.GB44199@outcold.yadt.co.uk> User-Agent: Mutt/1.5.11 Subject: Re: Data Loss with samba shared USB drive X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2005 00:48:02 -0000 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. \,,,,,,,,,,,,,,,,,,,,,,\