From owner-freebsd-questions@FreeBSD.ORG Mon Oct 26 02:16:55 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A93EA106566B for ; Mon, 26 Oct 2009 02:16:55 +0000 (UTC) (envelope-from dfunk6@cox.net) Received: from eastrmmtai104.cox.net (eastrmmtai104.cox.net [68.230.240.11]) by mx1.freebsd.org (Postfix) with ESMTP id 6ABB88FC12 for ; Mon, 26 Oct 2009 02:16:55 +0000 (UTC) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao103.cox.net (InterMail vM.8.00.01.00 201-2244-105-20090324) with ESMTP id <20091026020551.YZEG913.eastrmmtao103.cox.net@eastrmimpo01.cox.net>; Sun, 25 Oct 2009 22:05:51 -0400 Received: from [10.254.239.137] ([68.0.79.23]) by eastrmimpo01.cox.net with bizsmtp id xE5q1c0030WARwL02E5qdF; Sun, 25 Oct 2009 22:05:50 -0400 X-VR-Score: -160.00 X-Authority-Analysis: v=1.0 c=1 a=0LF1de5yfm4Ca2sG08wA:9 a=3iR4EMoDT-q3-gNInZEA:7 a=SUBhAo68xRi5E-9mctL_I48rCD0A:4 X-CM-Score: 0.00 Message-ID: <4AE50443.7020006@cox.net> Date: Sun, 25 Oct 2009 21:06:59 -0500 From: Derek Funk User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: rob1940@gmail.com References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: WD External Disc Drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2009 02:16:55 -0000 Rob Hurle wrote: > Dear All, > > This may sound like a Windows problem, but please read on. I made a > mistake and bought a WD "My Passport" external 350GB disc drive for > use on several Windows machines, on some of which I don't have admin > access, and a couple of FreeBSD systems. > > On first use on Windows the disc shows up only as a virtual CD (I > assume this is the firmware), "unlock.exe" has to be run and the > software installed (admin privileges necessary). Once it's unlocked > and the software installed, the big disc appears, the software can be > uninstalled, and the big disc reformatted as NTFS. From then on, the > virtual CD can be ignored and the big disc used on any Windows system. > > Now to FreeBSD. The newly formatted (as NTFS) disc appears as two > devices - /dev/cd0 (never seen this before) and /dev/da0s1 (the normal > USB disc drive device). They can be mounted as follows: > > freebsd [10:45] ~#mount_udf /dev/cd0 /mnt > freebsd [10:45] ~#mount /usb0 > > (/etc/fstab describes the NTFS file system type, and the virtual CD is > a UDF file system). We now have: > > freebsd [10:46] ~#df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/cd0 582962 582962 0 100% /mnt > /dev/da0s1 311877845 2332729 309545116 1% /usb0 > > If we look at each device, the virtual CD has the WD software, as expected: > > freebsd [10:45] ~#ll /mnt > total 6300 > drwxr-xr-x 3 501 staff 2048 12 Sep 05:32 Extras > -rwxrwxrwx 1 501 staff 3680544 5 Sep 08:20 Unlock.exe > drwxrwxrwx 5 501 staff 2048 5 Sep 08:30 User Manuals > drwxr-xr-x 3 501 staff 2048 12 Sep 05:28 WD SmartWare > -rwxrwxrwx 1 501 staff 2770208 5 Sep 08:20 WD SmartWare.exe > -rwxrwxrwx 1 501 staff 695 19 Jun 03:06 What is this.html > -rwxrwxrwx 1 501 staff 88 19 Jun 07:12 autorun.inf > > No problem. Now for the FreeBSD problem. If we look at what's on the > big disc (newly formatted as NTFS on a Windows system): > > freebsd [10:45] ~#ll /usb0 > total 75200 > -rwxrwxrwx 1 root wheel 2560 23 Apr 2009 $AttrDef > -rwxrwxrwx 1 root wheel 0 25 Oct 14:37 $BadClus > -rwxrwxrwx 1 root wheel 9746184 23 Apr 2009 $Bitmap > -rwxrwxrwx 1 root wheel 8192 25 Oct 14:37 $Boot > drwxrwxrwx 1 root wheel 0 25 Oct 14:37 $Extend > -rwxrwxrwx 1 root wheel 67108864 25 Oct 14:37 $LogFile > -rwxrwxrwx 1 root wheel 4096 25 Oct 14:37 $MFTMirr > -rwxrwxrwx 1 root wheel 0 23 Apr 2009 $Secure > -rwxrwxrwx 1 root wheel 131072 23 Apr 2009 $UpCase > -rwxrwxrwx 1 root wheel 0 25 Oct 14:37 $Volume > drwxrwxrwx 1 root wheel 0 25 Oct 15:54 MyStuff > drwxrwxrwx 1 root wheel 0 25 Oct 16:23 RECYCLER > drwxrwxrwx 1 root wheel 0 25 Oct 14:37 System Volume > Information > > The only thing that shows up in Windows is the "MyStuff" directory, > which I put there. I can copy anything from "MyStuff" to anywhere > else on the FreeBSD system, no worries. But if I attempt to copy a > new file into the "MyStuff" directory, I get the following: > > freebsd [10:46] ~#cp ~/tmp/test /usb0/MyStuff > cp: /usb0/MyStuff/test: No such file or directory > freebsd [11:08] ~# > > What on earth is going on? Why do I get the message that "test" does > not exist, on the directory that I'm copying to? I can copy nothing > to this big disc from FreeBSD, but can copy from it OK. Why are those > other files there? Are they part of the standard Windows NTFS > formatting? Can I use newfs(8) to make an NTFS file system on the big > disc? Any pointers to a solution would be most welcome. I'm also > trying to ask similar questions on the WD lists. Thanks for any help. > > Cheers, > Rob Hurle > I would use a tool like gparted and FAT32 the drive... It may run a bit slower but both systems can read and write to it.