Re: mounting an MP3 player?
On Tue, Oct 21, 2008 at 04:05:24PM +0200, Johannes-Maria Kaltenbach wrote: > Hello, > > Roland Smith wrote: > > > $ file -s /dev/da* > > > /dev/da1: writable, no read permission > > > /dev/da2: writable, no read permission > > > /dev/da3: writable, no read permission > > > /dev/da4: writable, no read permission > > > > Aha! you have a permissions problem. Try running the following commands > > as root, with the device plugged in: > > > > chown root:wheel /dev/da* > > chmod 660 /dev/da* > > this doesn't solve the problem: > > # ls -l /dev/da* > > crw-rw 1 root wheel0, 128 Oct 21 15:34 /dev/da0 > crw-rw 1 root wheel0, 129 Oct 21 15:34 /dev/da2 > crw-rw 1 root wheel0, 130 Oct 21 15:34 /dev/da3 > crw-rw 1 root wheel0, 131 Oct 21 15:34 /dev/da4 > > but the output of file -s /dev/da* ist still as above: > > # file -s /dev/da* > /dev/da0: writable, no read permission > /dev/da2: writable, no read permission > /dev/da3: writable, no read permission > /dev/da4: writable, no read permission Looking into the source code for the file command, this is an indication that the file command cannot open the files, even with the correct permissions. I guess that this device has some quirks that need to be addressed in the driver. Maybe you can find more help on the freebsd-usb list. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpGcPswHdFEt.pgp Description: PGP signature
Re: mounting an MP3 player?
Hello, Roland Smith wrote: > On Mon, Oct 20, 2008 at 03:39:04PM +0200, Johannes-Maria Kaltenbach wrote: > > Hello, > > > > Roland Smith wrote: > > > > > > On Sat, Oct 18, 2008 at 11:32:37AM +0200, Johannes-Maria Kaltenbach wrote: > > > > ... > > > Are there any filesystems on these devices? Try 'file -s /dev/da*' and > > > post the results. > > > > my filesystems are mounted on /dev/ad0s...; > > > > $ file -s /dev/da* > > /dev/da1: writable, no read permission > > /dev/da2: writable, no read permission > > /dev/da3: writable, no read permission > > /dev/da4: writable, no read permission > > Aha! you have a permissions problem. Try running the following commands > as root, with the device plugged in: > > chown root:wheel /dev/da* > chmod 660 /dev/da* this doesn't solve the problem: # ls -l /dev/da* crw-rw 1 root wheel0, 128 Oct 21 15:34 /dev/da0 crw-rw 1 root wheel0, 129 Oct 21 15:34 /dev/da2 crw-rw 1 root wheel0, 130 Oct 21 15:34 /dev/da3 crw-rw 1 root wheel0, 131 Oct 21 15:34 /dev/da4 but the output of file -s /dev/da* ist still as above: # file -s /dev/da* /dev/da0: writable, no read permission /dev/da2: writable, no read permission /dev/da3: writable, no read permission /dev/da4: writable, no read permission (and the same if I chmod to 666) Trying to mount the mp3 player to one of these /dev/da#-files yields mount: /dev/da#: Device not configured (the same after the camcontrol comands proposed by Frank Shute in his reply.) [btw: now there is a /dev/da0 again, but no /dev/da1, last time I had no /dev/da0 but a /dev/da1, an so on; I've not yet found out under what condition a given /dev/da# is created at boot time. If I connect a usb memory stick then there appears automatically a /dev/da#s#, some examples: /dev/da1s1, /dev/da4s1, /dev/da0s1, /dev/da6s1 etc. The mounting of the memory stick to these dev-files is no problem; I've only problems with th usb mp3 player.] > These permissions will last until you remove the device. Now you can try > mounting the devices. (try file -s first, to see what kind of > filesystems are on there!) > > To be able to mount USB disks as a regular user instead of root or to > make the permissions permanent, there are several things that need to be > done, especially editing the /etc/devfs.rules configuration file. These > are explained (among other things) on my FreeBSD page (especially the > devfs section): http://www.xs4all.nl/~rsmith/freebsd/index.html > > Read this page and see if you can apply it. Don't hesitate to ask (me or > the mailing list) if you have questions. it's sufficient to mount as root but at the moment I'm not able to mount at all > Good luck! 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]"
Re: mounting an MP3 player?
On Mon, Oct 20, 2008 at 06:37:50AM -0700, Jeremy Chadwick wrote: > On Mon, Oct 20, 2008 at 03:51:20PM +0200, Johannes-Maria Kaltenbach wrote: > > > > Hello, > > > > > Message: 3 > > > Date: Sun, 19 Oct 2008 14:57:43 +0100 > > > From: dgmm <[EMAIL PROTECTED]> > > > Subject: Re: mounting an MP3 player? > > > > > [...] > > > > > > Have you tried just mounting da0 etc? The may not be any slices. > > > > yes, I tried all /dev/da*; in each case the result was > > mount: /dev/da...: Device not configured > > One thing people here haven't mentioned is that device quirks (meaning: > "one-offs" in the driver code) might be required to get this device to > work. It's a common problem, and exists in many operating systems. Part of the problem (revealed in a private communication) was that the device permissions were incorrect; they were _write only_. :-/ Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpPA7Jlj33Lo.pgp Description: PGP signature
Re: mounting an MP3 player?
On Mon, Oct 20, 2008 at 03:51:20PM +0200, Johannes-Maria Kaltenbach wrote: > > Hello, > > > Message: 3 > > Date: Sun, 19 Oct 2008 14:57:43 +0100 > > From: dgmm <[EMAIL PROTECTED]> > > Subject: Re: mounting an MP3 player? > > > [...] > > > > Have you tried just mounting da0 etc? The may not be any slices. > > yes, I tried all /dev/da*; in each case the result was > mount: /dev/da...: Device not configured One thing people here haven't mentioned is that device quirks (meaning: "one-offs" in the driver code) might be required to get this device to work. It's a common problem, and exists in many operating systems. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mounting an MP3 player?
Hello, > Message: 3 > Date: Sun, 19 Oct 2008 14:57:43 +0100 > From: dgmm <[EMAIL PROTECTED]> > Subject: Re: mounting an MP3 player? > [...] > > Have you tried just mounting da0 etc? The may not be any slices. yes, I tried all /dev/da*; in each case the result was mount: /dev/da...: Device not configured > -- > Dave Johannes-Maria ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mounting an MP3 player?
On Saturday 18 October 2008, 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 > > 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) > > and from usbdevs: > | Controller /dev/usb4: > | addr 1: high speed, self powered, config 1, EHCI root hub(0x), > | Intel(0x), rev 1.00 port 1 powered > | port 2 powered > | port 3 powered > | port 4 powered > | port 5 powered > | port 6 addr 2: high speed, power 400 mA, config 1, TrekStor(0x2791), > | TrekStor(0x071b), rev 1.00 port 7 powered > | port 8 powered > > Which device file should I use (or create?) to get access > to this MP3 player? > > (I'm using FreeBSD 6.0) Have you tried just mounting da0 etc? The may not be any slices. -- Dave ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mounting an MP3 player?
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. Are there any filesystems on these devices? Try 'file -s /dev/da*' and post the results. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpCVmuFBCkiv.pgp Description: PGP signature
Re: mounting an MP3 player?
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mounting an MP3 player?
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? > > > 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 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 should initialise /dev/da0 (the SD card?) Then: # mount -t msdosfs /dev/da0 /mnt/dos 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"