From owner-freebsd-stable@FreeBSD.ORG Sat Dec 3 21:46:06 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE4D616A41F for ; Sat, 3 Dec 2005 21:46:06 +0000 (GMT) (envelope-from davidt@yadt.co.uk) Received: from outcold.yadt.co.uk (outcold.yadt.co.uk [81.187.204.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35A4243D5D for ; Sat, 3 Dec 2005 21:46:06 +0000 (GMT) (envelope-from davidt@yadt.co.uk) Received: from localhost (localhost [127.0.0.1]) by outcold.yadt.co.uk (Postfix) with ESMTP id 4B1C31DD4B5 for ; Sat, 3 Dec 2005 21:46:05 +0000 (GMT) Received: from outcold.yadt.co.uk ([127.0.0.1]) by localhost (outcold.yadt.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 41857-03 for ; Sat, 3 Dec 2005 21:46:05 +0000 (GMT) Received: by outcold.yadt.co.uk (Postfix, from userid 1001) id 0A81C1DD4AC; Sat, 3 Dec 2005 21:46:05 +0000 (GMT) Date: Sat, 3 Dec 2005 21:46:05 +0000 From: David Taylor To: freebsd-stable@freebsd.org Message-ID: <20051203214605.GB44199@outcold.yadt.co.uk> Mail-Followup-To: freebsd-stable@freebsd.org References: <20051203213226.GA44199@outcold.yadt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20051203213226.GA44199@outcold.yadt.co.uk> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: amavisd-new 2.3.3 (20050822) at yadt.co.uk 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: Sat, 03 Dec 2005 21:46:07 -0000 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