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:
> >
> > | <Generic USB SD Reader 1.00>       at scbus1 target 0 lun 0 (da1,pass0)
> > | <Generic USB CF Reader 1.01>       at scbus1 target 0 lun 1 (da2,pass1)
> > | <Generic USB SM Reader 1.02>       at scbus1 target 0 lun 2 (da3,pass2)
> > | <Generic USB MS Reader 1.03>       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



_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to