I have a Samsung M800 phone that I had (wrongly) assumed would show up as a USB drive on Linux so I can transfer files to it and so on.
Instead, it appears to present itself as a modem. Is there any way to make it appear as a usb drive?
Dec 1 13:47:17 mutt kernel: usb 5-1: new full speed USB device using uhci_hcd and address 3 Dec 1 13:47:17 mutt kernel: usb 5-1: configuration #1 chosen from 1 choice Dec 1 13:47:18 mutt kernel: cdc_acm 5-1:1.0: ttyACM0: USB ACM device Dec 1 13:47:18 mutt kernel: usbcore: registered new driver cdc_acm Dec 1 13:47:18 mutt kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters Dec 1 13:47:37 mutt kernel: usb 5-1: USB disconnect, address 3 Dec 1 13:47:38 mutt kernel: usb 5-1: new full speed USB device using uhci_hcd and address 4 Dec 1 13:47:38 mutt kernel: usb 5-1: configuration #1 chosen from 1 choice Dec 1 13:47:38 mutt kernel: scsi9 : SCSI emulation for USB Mass Storage devices Dec 1 13:47:43 mutt kernel: usb 5-1: USB disconnect, address 4 Dec 1 13:47:44 mutt kernel: usb 5-1: new full speed USB device using uhci_hcd and address 5 Dec 1 13:47:45 mutt kernel: usb 5-1: configuration #1 chosen from 1 choice Dec 1 13:47:45 mutt kernel: cdc_acm 5-1:1.0: ttyACM0: USB ACM device Dec 1 13:51:13 mutt kernel: usb 5-1: USB disconnect, address 5 nd address 6 Dec 1 13:51:16 mutt kernel: usb 5-1: configuration #1 chosen from 1 choice Dec 1 13:51:16 mutt kernel: cdc_acm 5-1:1.0: ttyACM0: USB ACM device
2009/12/1 Frank Cox theatre@sasktel.net
I have a Samsung M800 phone that I had (wrongly) assumed would show up as a USB drive on Linux so I can transfer files to it and so on.
Instead, it appears to present itself as a modem. Is there any way to make it appear as a usb drive?
my (motorola em325) phone can be configured as modem or mass storage device. if your phone has this option, just choose mass storage device.
On Tue, 2009-12-01 at 22:31 +0200, cornel panceac wrote:
my (motorola em325) phone can be configured as modem or mass storage device. if your phone has this option, just choose mass storage device.
I wish it did have that option. Unfortunately, if it does it's so well hidden that I can't find it.
I just called my cellphone service provider (who I got the phone from) and asked their tech support how to switch it from modem to mass storage mode (without saying anything about using Linux). Their response was that they don't provide help with that kind of thing and I should search the Internet for more information.
2009/12/1 Frank Cox theatre@sasktel.net:
I wish it did have that option. Unfortunately, if it does it's so well hidden that I can't find it.
Does this help - http://www.linux-usb.org/FAQ.html#ts9 ?
Ben
On Tue, 2009-12-01 at 21:13 +0000, Benjamin Donnachie wrote:
Does this help - http://www.linux-usb.org/FAQ.html#ts9 ?
Thanks for the information! I learned quite a bit more about this than I knew before after reading it.
Unfortunately, my phone doesn't show under /proc/scsi/scsi. I suspect that it won't show up until it is in mass storage mode, and if I can get it into mass storage mode I probably won't have to worry about the issue described in that tech note.
It was a very interesting read, though. Thanks for posting it!
Frank Cox wrote:
On Tue, 2009-12-01 at 21:13 +0000, Benjamin Donnachie wrote:
Does this help - http://www.linux-usb.org/FAQ.html#ts9 ?
Thanks for the information! I learned quite a bit more about this than I knew before after reading it.
Unfortunately, my phone doesn't show under /proc/scsi/scsi. I suspect that it won't show up until it is in mass storage mode, and if I can get it into mass storage mode I probably won't have to worry about the issue described in that tech note.
It was a very interesting read, though. Thanks for posting it!
The quick fix (and much faster access too) is to use a usb adapter for the micro-sd card.
Does it make a difference if you slide the 'disconnect' slider over? Or is that showing when you connect the phone?
On Tue, 2009-12-01 at 18:14 -0600, Les Mikesell wrote:
The quick fix (and much faster access too) is to use a usb adapter for the micro-sd card.
Indeed. But then I have to pull the card out and put it back. It would be much more convenient to just plug the phone into the computer.
Does it make a difference if you slide the 'disconnect' slider over? Or is that showing when you connect the phone?
There is a little "connect to computer" slider in the Settings menu. When I slide it over to "on", /var/log/messages tells me that the usb device has disconnected, then it immediate reconnects just the way it was before. The phone comes up with a message telling me that the phone is now off and I should disconnect the usb cable to resume use as a phone (because the file transfer function apparently works only when the phone part is disabled), and then after several seconds the main menu screen comes back on the phone. In other words, contrary to what the screen says and what the manual says, it switches itself back to phone mode without me disconnecting the usb cable or taking any further action at all.
On Wed, 2009-12-02 at 06:09 +0200, cornel panceac wrote:
can you use bluetooth for that?
Possibly, but I don't have any computers with bluetooth hardware.
Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java $DAEMON_ARGS >/dev/null 2>&1 &"
I can get it to startup alrite, but the litte "thingy" is that I have no way of getting the process ID of the started service to put in the PIDFILE, in order for me to later on be able to stop the service. (I can have up to 5 of these Java services running, each needing a different pidfile).
This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!
Please help! TIA /Rob
Am Mittwoch, den 02.12.2009, 10:55 +0100 schrieb Robert Bielik:
Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java $DAEMON_ARGS >/dev/null 2>&1 &"
I can get it to startup alrite, but the litte "thingy" is that I have no way of getting the process ID of the started service to put in the PIDFILE, in order for me to later on be able to stop the service. (I can have up to 5 of these Java services running, each needing a different pidfile).
This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!
Please help! TIA /Rob
We are a java shop and use an old/patched debian version of start-stop-daamon rolled in our own rpm. It works but but one problem whe have is when java is updated stop/restart won't work because the inode of the process binary is changed. Also interesting to have a look at is jsvc, we use that for tomcat and we are quite happy with it.
Chrid
financial.com AG
Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553
Christoph Maser skrev:
We are a java shop and use an old/patched debian version of start-stop-daamon rolled in our own rpm. It works but but one problem whe have is when java is updated stop/restart won't work because the inode of the process binary is changed. Also interesting to have a look at is jsvc, we use that for tomcat and we are quite happy with it.
Thnx, I remember trying jsvc for my java services before, but I failed then to get it to work properly. But I'll try again :)
Regards /Rob
From: Robert Bielik robert.bielik@xponaut.se
Ok, I think I'm going nuts. I simply want to startup a Java Service like so: daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java $DAEMON_ARGS >/dev/null 2>&1 &" I can get it to startup alrite, but the litte "thingy" is that I have no way of getting the process ID of the started service to put in the PIDFILE, in order for me to later on be able to stop the service.
Try without the '='
JD
On Wed, Dec 2, 2009 at 3:55 AM, Robert Bielik robert.bielik@xponaut.se wrote:
Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java $DAEMON_ARGS >/dev/null 2>&1 &"
I can get it to startup alrite, but the litte "thingy" is that I have no way of getting the process ID of the started service to put in the PIDFILE, in order for me to later on be able to stop the service. (I can have up to 5 of these Java services running, each needing a different pidfile).
This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!
I use the Java Service Wrapper to run JBoss in CentOS 4. A little work to set up, but it works great once you get it figured out. My version is s few years old now, so I can't speak for what may have changed in the meantime.
http://wrapper.tanukisoftware.org/doc/english/download.jsp
-- Jeff
On Dec 2, 2009, at 8:47 AM, Jeff wrote:
I use the Java Service Wrapper to run JBoss in CentOS 4. A little work to set up, but it works great once you get it figured out. My version is s few years old now, so I can't speak for what may have changed in the meantime.
this software is also available from the JPackage repository (http://jpackage.org/ ) as 'tanukiwrapper'.
-steve
-- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v http://five.sentenc.es
Robert Bielik wrote:
Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java $DAEMON_ARGS >/dev/null 2>&1 &"
I can get it to startup alrite, but the litte "thingy" is that I have no way of getting the process ID of the started service to put in the PIDFILE, in order for me to later on be able to stop the service. (I can have up to 5 of these Java services running, each needing a different pidfile).
This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!
Please help!
The straightforward way would be to give each of your services a different name (service-a, service-b, etc) so you would have different init file instances, different pid file names, and can specify the appropriate arguements to each program.
Les Mikesell skrev:
The straightforward way would be to give each of your services a different name (service-a, service-b, etc) so you would have different init file instances, different pid file names, and can specify the appropriate arguements to each program.
Yeah, thought of doing multiple: ln -s /usr/bin/java service_a ln -s /usr/bin/java service_b etc.
If the jsvc track fails, I'll fallback on this.
Thnx /R
Robert Bielik wrote:
Les Mikesell skrev:
The straightforward way would be to give each of your services a different name (service-a, service-b, etc) so you would have different init file instances, different pid file names, and can specify the appropriate arguements to each program.
Yeah, thought of doing multiple: ln -s /usr/bin/java service_a ln -s /usr/bin/java service_b etc.
If the jsvc track fails, I'll fallback on this.
Don't they really need different config files for things like which port to bind to anyway? Using different init scripts instead of links would give you a place to specify that - or you could use the RedHat-style scheme of extrapolating specific variable settings into files that match the service name under /etc/sysconfig to keep local changes out of the distributed init and config files.
2009/12/1 Frank Cox theatre@sasktel.net:
Unfortunately, my phone doesn't show under /proc/scsi/scsi. I suspect that it won't show up until it is in mass storage mode, and if I can get it into mass storage mode I probably won't have to worry about the issue described in that tech note.
Hmmm... I suspect that the phone may need a command over the USB bus to put it into mass storage mode - these guys may be able to help - http://www2.one-eyed-alien.net/~mdharm/linux-usb/ However, many of the multi-function Samsung devices listed don't work properly so you may not have much success.
Ben
Benjamin Donnachie wrote:
2009/12/1 Frank Cox theatre@sasktel.net:
Unfortunately, my phone doesn't show under /proc/scsi/scsi. I suspect that it won't show up until it is in mass storage mode, and if I can get it into mass storage mode I probably won't have to worry about the issue described in that tech note.
Hmmm... I suspect that the phone may need a command over the USB bus to put it into mass storage mode - these guys may be able to help - http://www2.one-eyed-alien.net/~mdharm/linux-usb/ However, many of the multi-function Samsung devices listed don't work properly so you may not have much success.
This is the Sprint Instinct, right? The phone does connect as a disk on a Mac with no drivers but that only started working after an update to the phone firmware so be sure you are up to date. If you aren't on Sprint in the US, it might be different, though. I'll try it with a Centos box later today. But I still recommend a usb adapter for the memory card if you are moving any media files, especially video - it's faster even if you count the time popping the card in and out.
On Wed, 2009-12-02 at 07:45 -0600, Les Mikesell wrote:
This is the Sprint Instinct, right?
Yes.
The phone does connect as a disk on a Mac with no drivers but that only started working after an update to the phone firmware so be sure you are up to date.
Interesting to know. Sask Tel might frown on me updating the firmware, though.
If you aren't on Sprint in the US, it might be different, though.
I'm on Sask Tel in Saskatchewan, Canada, so I might be out of luck.
I'll try it with a Centos box later today.
Let me know what happens.
Frank Cox wrote:
On Wed, 2009-12-02 at 07:45 -0600, Les Mikesell wrote:
This is the Sprint Instinct, right?
Yes.
The phone does connect as a disk on a Mac with no drivers but that only started working after an update to the phone firmware so be sure you are up to date.
Interesting to know. Sask Tel might frown on me updating the firmware, though.
If you aren't on Sprint in the US, it might be different, though.
I'm on Sask Tel in Saskatchewan, Canada, so I might be out of luck.
I'll try it with a Centos box later today.
Let me know what happens.
OK, I just verified that it does connect and auto-mounts on the desktop as you'd expect on a centos5 box. But your behavior is what I used to see when connecting to a Mac with the original firmware - and it might have needed the drivers installed to work on windows. Bluetooth would work even before the update but its too slow to be useful with a several-gig micro-sd card.
Frank Cox wrote:
I have a Samsung M800 phone that I had (wrongly) assumed would show up as a USB drive on Linux so I can transfer files to it and so on.
this program supports a lot of phones... http://www.bitpim.org/
On Tue, 2009-12-01 at 13:21 -0800, John R Pierce wrote:
this program supports a lot of phones... http://www.bitpim.org/
Looks nice, but the Samsung M800 isn't on the list of supported phones.
That's a good program to know about for other phones, though. Thanks for posting it!