From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 14:52:21 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 727EE295 for ; Thu, 26 Jun 2014 14:52:21 +0000 (UTC) Received: from www94.your-server.de (www94.your-server.de [213.133.104.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 312B62237 for ; Thu, 26 Jun 2014 14:52:21 +0000 (UTC) Received: from [92.230.74.144] (helo=[192.168.178.40]) by www94.your-server.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1X0Afc-0001lN-Ur; Thu, 26 Jun 2014 16:29:01 +0200 Subject: Re: Cannot create files on exfat card / 10-stable From: Mathias Picker To: Kevin Oberman In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Organization: virtual earth GmbH Date: Thu, 26 Jun 2014 16:28:57 +0200 Message-ID: <1403792937.2308.16.camel@marcopolo.fritz.box> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Authenticated-Sender: Mathias.Picker@virtual-earth.de X-Virus-Scanned: Clear (ClamAV 0.98.1/19131/Wed Jun 25 22:55:38 2014) Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 14:52:21 -0000 Am Mittwoch, den 25.06.2014, 13:48 -0700 schrieb Kevin Oberman: > > Hi all, > > > > I just got my first exfat formatted sdxc card. > > > > If I mount it with (as root) mount.exfat /dev/da2s1 /mnt I can read the > > content, create *directories*, but *not files*??? > > > > > > root@marcopolo:/mnt # touch test1 > > touch: test1: Invalid argument > > root@marcopolo:/mnt # mkdir test1 > > root@marcopolo:/mnt # touch test1/test > > touch: test1/test: Invalid argument > > root@marcopolo:/mnt # ll -d test1 > > drwxr-xr-x 1 root wheel 131072 16 Feb 19:46 test1/ > > root@marcopolo:/mnt # ll test1 > > total 0 > > > > > > > > Shouldn't this work? > > > > I rebuilt fusefs-lib and fusefs-exfat with gcc48, same result... > > > > This is on a recent stable: > > marcopolo% uname -a > > FreeBSD marcopolo 10.0-STABLE FreeBSD 10.0-STABLE #14 r261827: Thu Feb > > 13 13:13:01 CET 2014 mathiasp@marcopolo:/usr/obj/usr/src/sys/GENERIC > > amd64 > > > > The card is a Sandisk Extreme MicroSDXC 64Gb. Works fine in my phone. > > > > Any tips, hints, experiences? > > > > Thanks, Mathias > > I have no answer as I found this message in the archive while > researching the root cause of the problem. > Thanks, first feedback, now I finally know it's not just me... > > Workaround: After writing to the device on FreeBSD, put the card into > a Windows system. (It will also be usable to write to the device.) > Open an explorer (not Internet Explorer) window > Right click on the ExFAT device > Select "Properties" > In the Properties window, select the "Tools" tab > > In the tools window click "Check now" > > In the disk check window click start > > No errors should be found, but the disk will now be writable on > Windows. Note that the directories you appeared to be creating on > FreeBSD will be gone. > > Eject the media and mount it on the FreeBSD system I t will be > writable until it is re-mounted. :) Interesting approach, I switched to FAT for now, works well enough for me... > > > I believe the problem is that unmounting the file system fails to mark > the fs as clean. You might notice that a message that the device was > not cleanly dismounted is printed to the console and messages when the > device is re-mounted on FreeBSD. There is no fsck for ExFAT, so I need > to use Windows to do the same job. > > > It looks like all that is needed is to clear the second bit of byte > 106 of the VBR (block 0). I will try this some day when I am feeling > brave. > > > I'd love to see this fixed Me too! But way over my head. Again, thanks for the feedback! Mathias > > -- > R. Kevin Oberman, Network Engineer, Retired > E-mail: rkoberman@gmail.com >