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?
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?
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]
mounting an MP3 player?
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: | 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) 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) 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: network configuration problem
Hello, Steve Bertrand wrote: Johannes-Maria Kaltenbach wrote: Hello, many thanks for your help. The problem was already solved with the first answer I read by Steve Bertrand, Derek does have an important point. If you ever need to add any other workstations to the network, you will want to ensure that the IP you added to FreeBSD manually does not fall within the DHCP scope of the gateway. For instance, if you plug a Windows PC into the gateway, it will by default request an address via DHCP. If the gateway provides the Windows PC the same address as FreeBSD, you will have communication problems. Regards, Steve I've changed the address according to Derek's helpful explanation. Thank you both for your valuable help. Regards, Johannes-Maria ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
network configuration problem
Hello, at the moment I'm using internet an emails via a 56k modem and ppp. I want to change to DSL -- but I'm not able to do it without help. I've bought a router/gateway from my provider (Telekom/T-Online) which is called Speedport W 502V Typ A an has the ip address 192.168.2.1; it is connectet to an ethernet card (rl0). The provider requests DHCP, but this doesn't work; I get the message | Bogus domain search list 15: Speedport_W_502V_Typ_A (Speedport_W_502V_Typ_A) | Invalid lease option - ignoring offer several times and the error message Network is unreachable. Then I assigned an address (e. g. 192.168.10.1) to the ethernet card with the help of ifconfig rl0 192.168.10.1 255.255.255.0 and made it the default route: route add default 192.168.10.1 output of ifconfig: | rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 | options=8VLAN_MTU | inet 192.168.10.1 netmask 0xff00 broadcast 255.255.255.0 | inet6 fe80::214:85ff:fe75:eac8%rl0 prefixlen 64 scopeid 0x1 | ether 00:14:85:75:ea:c8 | media: Ethernet autoselect (100baseTX full-duplex) | status: active and netstat: | Routing tables | | Internet: | DestinationGatewayFlagsRefs Use Netif Expire | default192.168.10.1 UGS 0 2304rl0 | localhost localhost UH 0 490lo0 | 192.168.10 link#1 UC 00rl0 | 192.168.10.1 00:14:85:75:ea:c8 UHLW2 36lo0 I cannot ping the router/gateway: | PING 192.168.2.1 (192.168.2.1): 56 data bytes | 36 bytes from 192.168.10.1: Time to live exceeded | Vr HL TOS Len ID Flg off TTL Pro cks Src Dst | 4 5 00 5400 025f 0 01 01 29f8 192.168.10.1 192.168.2.1 | | 36 bytes from 192.168.10.1: Time to live exceeded | Vr HL TOS Len ID Flg off TTL Pro cks Src Dst | 4 5 00 5400 0269 0 01 01 29ee 192.168.10.1 192.168.2.1 | | 36 bytes from 192.168.10.1: Time to live exceeded | Vr HL TOS Len ID Flg off TTL Pro cks Src Dst | 4 5 00 5400 0273 0 01 01 29e4 192.168.10.1 192.168.2.1 etc. With firefox http://192.168.2.1; (to get the configuration menu of the speedport) I get the error message: | The connection was refused when attempting to contact 192.168.2.1. and with telnet: | Trying 192.168.2.1... | telnet: connect to address 192.168.2.1: No route to host | telnet: Unable to connect to remote host What I'm doing wrong? Can you please help me? Thanks, Johannes-Maria P. S.: I'm using FreeBSD 6.0-RELEASE. (That's the only operating system on my pc, so I cannot test or configure the speedport with Linux or MS-Windows.) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: network configuration problem
Hello, many thanks for your help. The problem was already solved with the first answer I read by Steve Bertrand, ... You essentially gave yourself an address outside of the gateways LAN address scope, and then proceeded to route all unknown traffic to yourself. You probably want: # ifconfig rl0 192.168.2.100 255.255.255.0 ...and # route add default 192.168.2.1 Tanks also for your hint: Then, for name resolution: # echo nameserver ip.of.isp.dns /etc/resolv.conf I'm also thankful for all the other replies to my question, of course; always happy to learn something. Regards, Johannes-Maria ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]