From owner-freebsd-questions@FreeBSD.ORG Mon Jan 8 04:56:41 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F74D16A403 for ; Mon, 8 Jan 2007 04:56:41 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 0A78813C44C for ; Mon, 8 Jan 2007 04:56:40 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l084uePS096047; Sun, 7 Jan 2007 22:56:40 -0600 (CST) (envelope-from dan) Date: Sun, 7 Jan 2007 22:56:40 -0600 From: Dan Nelson To: "Michael M. Press" Message-ID: <20070108045640.GB41724@dan.emsphone.com> References: <44b564930701071948n4defad59u142b8b6c3d4650f8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44b564930701071948n4defad59u142b8b6c3d4650f8@mail.gmail.com> X-OS: FreeBSD 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: USB drive is a CDROM drive and is not writable 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, 08 Jan 2007 04:56:41 -0000 In the last episode (Jan 07), Michael M. Press said: > I have a 2 gigabyte USB memory stick from made by PNY. When I plug it > in, I get the following: > > umass0: vendor 0x0930 USB Flash Memory, rev 2.00/2.00, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: < USB Flash Memory 6.50> Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 1901MB (3894975 512 byte sectors: 255H 63S/T 242C) > cd1 at umass-sim0 bus 0 target 0 lun 1 > cd1: < USB Flash Memory 6.50> Removable CD-ROM SCSI-0 device > cd1: 40.000MB/s transfers > cd1: Attempt to query device size failed: NOT READY, Medium not present > > I want to be able to mount the device read-write, so I use the > following command: > > mount -t cd9660 -o rw /dev/cd1 /media/flashdrv > > The command runs without spitting any errors at me, but it does a > read-only mount. I can see files on the drive, but (of course) I > can't change them. Does my problem have anything to do with the > device being detected as a CD-ROM drive? If that is what's wrong I > don't really know where to start looking to fix it. Any ideas? Very interesting! cd1 and da0 look like the same device, with cd1 just on LUN 1. I bet if you were to examine /dev/da0 you'd see the real writable FAT filesystem there. I wonder if it is doing fat->cd9660 filesystem emulation on the fly? -- Dan Nelson dnelson@allantgroup.com