From owner-freebsd-questions@FreeBSD.ORG Sun Oct 19 09:22:30 2008 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 7F2C1106568C for ; Sun, 19 Oct 2008 09:22:30 +0000 (UTC) (envelope-from johannes-maria@t-online.de) Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) by mx1.freebsd.org (Postfix) with ESMTP id AB7188FC13 for ; Sun, 19 Oct 2008 09:22:29 +0000 (UTC) (envelope-from johannes-maria@t-online.de) Received: from fwd03.aul.t-online.de by mailout03.sul.t-online.de with smtp id 1KrUUT-0008T4-00; Sun, 19 Oct 2008 11:22:25 +0200 Received: from t-online.de (ThimPgZCohmNv6oF-YjMFA4ep+WXF6cWNlmo0ELycIq3swUkS9at4l1YnOx7JhLQfb@[87.181.119.88]) by fwd03.t-online.de with esmtp id 1KrUUJ-0S8lJg0; Sun, 19 Oct 2008 11:22:15 +0200 Sender: jmk@t-online.de Message-ID: <48FAFE8E.AE1F45C2@t-online.de> Date: Sun, 19 Oct 2008 11:31:58 +0200 From: Johannes-Maria Kaltenbach X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.2 i686) MIME-Version: 1.0 To: Frank Shute References: <48F9AD35.396CEE3E@t-online.de> <20081018165328.GA67515@melon.esperance-linux.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ID: ThimPgZCohmNv6oF-YjMFA4ep+WXF6cWNlmo0ELycIq3swUkS9at4l1YnOx7JhLQfb X-TOI-MSGID: 02d9f646-f923-4de4-920d-b085102129a7 Cc: freebsd-questions@freebsd.org Subject: Re: mounting an MP3 player? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: johannes-maria@t-online.de List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2008 09:22:30 -0000 Hello, Thank you for your answer. Frank Shute wrote: > > On Sat, Oct 18, 2008 at 11:32:37AM +0200, Johannes-Maria Kaltenbach wrote: > > > > > > Hello, > > > > can anyone tell me how to mount an MP3 player (usb)? > > I seem to be too stupid to figure it out by myself. > > I thought it would be as easy as mounting a usb memory stick > > which I can mount with a device file of the form /dev/da#s#, > > e. g. /dev/da0s1, which is present after connecting the > > memory stick, but not if connecting the player instead; in this > > case I've got only /dev/da1 to /dev/da4. > > I tried all these and also /dev/usb, /dev/usb1, ..., /dev/usb4, > > but that doesn't work (as I expected but tried nevertheless). > > > > If I connect the player to the usb bus I get the following in > > /var/log/messages: > > > > | kernel: umass1: TrekStor TrekStor, rev 2.00/1.00, addr 2 > > It should say more after that. Can you post it? no; it's only this one line at the end of /var/log/messages, but if I type dmesg I find | umass1: TrekStor TrekStor, rev 2.00/1.00, addr 2 | (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 | (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error | (da1:umass-sim0:0:0:0): SCSI Status: Check Condition | (da1:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0 | (da1:umass-sim0:0:0:0): Medium not present | (da1:umass-sim0:0:0:0): Unretryable error | Opened disk da1 -> 6 | (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 | (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error | (da2:umass-sim0:0:0:1): SCSI Status: Check Condition | (da2:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0 | (da2:umass-sim0:0:0:1): Medium not present | (da2:umass-sim0:0:0:1): Unretryable error | Opened disk da2 -> 6 | (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 | (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error | (da1:umass-sim0:0:0:0): SCSI Status: Check Condition | (da1:umass-sim0:0:0:0): NOT READY csi:0,aa,55,40 asc:3a,0 | (da1:umass-sim0:0:0:0): Medium not present | (da1:umass-sim0:0:0:0): Unretryable error | Opened disk da1 -> 6 | (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 | (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error | (da2:umass-sim0:0:0:1): SCSI Status: Check Condition | (da2:umass-sim0:0:0:1): NOT READY csi:0,aa,55,40 asc:3a,0 | (da2:umass-sim0:0:0:1): Medium not present | (da2:umass-sim0:0:0:1): Unretryable error | Opened disk da2 -> 6 | (da3:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0 | (da3:umass-sim0:0:0:2): CAM Status: SCSI Status Error | (da3:umass-sim0:0:0:2): SCSI Status: Check Condition | (da3:umass-sim0:0:0:2): NOT READY csi:0,aa,55,40 asc:3a,0 | (da3:umass-sim0:0:0:2): Medium not present | (da3:umass-sim0:0:0:2): Unretryable error | Opened disk da3 -> 6 | (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 | (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error | (da4:umass-sim0:0:0:3): SCSI Status: Check Condition | (da4:umass-sim0:0:0:3): NOT READY csi:0,aa,55,40 asc:3a,0 | (da4:umass-sim0:0:0:3): Medium not present | (da4:umass-sim0:0:0:3): Unretryable error | Opened disk da4 -> 6 > > and from usblist: > > > > | at scbus1 target 0 lun 0 (da1,pass0) > > | at scbus1 target 0 lun 1 (da2,pass1) > > | at scbus1 target 0 lun 2 (da3,pass2) > > | at scbus1 target 0 lun 3 (da4,pass3) > > > > > > It looks like your player has a number of areas of storage e:g SD > card, flash card, it's own internal memory etc. and they all have an > associated device node: > > $ ls /dev | grep da da1 da2 da3 da4 > You can manipulate these devices with camcontrol(8) E.g: > > # camcontrol stop 1:0:0 > # camcontrol rescan 1:0:0 > # camcontrol load 1:0:0 # camcontrol stop 1:0:0 Unit stopped successfully # camcontrol rescan 1:0:0 Re-scan of 1:0:0 was successful # camcontrol load 1:0:0 Unit started successfully, Media loaded > should initialise /dev/da0 (the SD card?) # ls /dev/da0 ls: /dev/da0: No such file or directory # ls /dev/da* /dev/da1 /dev/da2 /dev/da3 /dev/da4 > Then: > > # mount -t msdosfs /dev/da0 /mnt/dos I tried it with all available /dev/da* devices: mount_msdosfs: /dev/da#: Device not configured > will mount it & you can read/write files from it. > > When you're finished: > > # umount /mnt/dos > # camcontrol eject 1:0:0 > > If you have problems, post back the signifigant parts of > /var/log/messages and any other errors. > > Regards, > > -- > > Frank > > Contact info: http://www.shute.org.uk/misc/contact.html Thanks Johannes-Maria