LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware 14 - how to mount Samsung Galaxy S3 as usb (http://www.linuxquestions.org/questions/slackware-14/slackware-14-how-to-mount-samsung-galaxy-s3-as-usb-4175452388/)

magicm 03-02-2013 10:12 AM

slackware 14 - how to mount Samsung Galaxy S3 as usb
 
Thanks for any guidance in advance.
Subject says it all. Interested in transferring podcasts from my phone for storage. When I plug phone in, I see this in /var/log/messages
Code:

Mar  2 08:23:14 wigwam kernel: [ 3078.946324] usb 2-1.2: new high-speed USB device number 5 using ehci_hcd
Mar  2 08:23:14 wigwam logger: ACPI group battery / action BAT0 is not defined
Mar  2 08:23:14 wigwam kernel: [ 3079.033201] usb 2-1.2: New USB device found, idVendor=04e8, idProduct=6860
Mar  2 08:23:14 wigwam kernel: [ 3079.033208] usb 2-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Mar  2 08:23:14 wigwam kernel: [ 3079.033215] usb 2-1.2: Product: SAMSUNG_Android_SCH-I535
Mar  2 08:23:14 wigwam kernel: [ 3079.033218] usb 2-1.2: Manufacturer: SAMSUNG
Mar  2 08:23:14 wigwam kernel: [ 3079.033221] usb 2-1.2: SerialNumber: 3404b2dc
Mar  2 08:23:14 wigwam kernel: [ 3079.035041] cdc_acm 2-1.2:1.1: ttyACM0: USB ACM device
Mar  2 08:23:14 wigwam modem-manager[2166]: <info>  (ttyACM0) opening serial port...
Mar  2 08:23:17 wigwam modem-manager[2166]: <info>  (ttyACM0) closing serial port...
Mar  2 08:23:17 wigwam modem-manager[2166]: <info>  (ttyACM0) serial port closed
Mar  2 08:23:17 wigwam modem-manager[2166]: <info>  (ttyACM0) opening serial port...
Mar  2 08:23:17 wigwam modem-manager[2166]: <info>  (Generic): GSM modem /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2 claimed port ttyACM0
Mar  2 08:23:17 wigwam modem-manager[2166]: <info>  (ttyACM0) closing serial port...
Mar  2 08:23:17 wigwam modem-manager[2166]: <info>  (ttyACM0) serial port closed
Mar  2 08:23:17 wigwam NetworkManager[2147]: <info> (ttyACM0): new GSM/UMTS device (driver: 'cdc_acm' ifindex: 0)
Mar  2 08:23:17 wigwam NetworkManager[2147]: <info> (ttyACM0): exported as /org/freedesktop/NetworkManager/Devices/4
Mar  2 08:23:17 wigwam NetworkManager[2147]: <info> (ttyACM0): now managed
Mar  2 08:23:17 wigwam NetworkManager[2147]: <info> (ttyACM0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Mar  2 08:23:17 wigwam NetworkManager[2147]: <info> (ttyACM0): deactivating device (reason 'managed') [2]
Mar  2 08:23:17 wigwam NetworkManager[2147]: <info> (ttyACM0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Mar  2 08:23:21 wigwam logger: ACPI group battery / action BAT0 is not defined

Got and comipled mtpfs from SlackBuilds - an it reports
Code:

bash-4.2$ mtpfs
Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note.
  Found 1 device(s):
  Samsung: GT-P7310/P7510/N7000/I9100/Galaxy Tab 7.7/10.1/S2/Nexus/Note (04e8:6860) @ bus 2, dev 5
Attempting to connect device
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
Unable to open raw device 0

lsusb reports
Code:

bash-4.2$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 005: ID 17ef:480f Lenovo Integrated Webcam [R5U877]
Bus 001 Device 008: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
Bus 002 Device 005: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II], GT-P7500 [Galaxy Tab 10.1]

What should I try next? Thx again.

bosth 03-02-2013 11:28 AM

Have you turned on USB mass storage on your phone? I'm using Cyanogen mod on an SII so my menus are probably a bit different but here is the procedure anyhow:
Settings->Storage->USB computer connection->Mass storage

magicm 03-02-2013 11:48 AM

Thx for your reply. But, as you suggested, my menus are different. Phone not rooted. From the phone's view when I plug it in, it reports "Connected as a media device/Touch for other USB options". When I make that selection, it reports "USB PC Connection" / Connect as ... with a checkbox choices of
  • Media device (MTP) <selected>
  • Camera (PTP)
I suppose that I should mention that I have no issues mounting from Windows (xp, or 7)

bosth 03-02-2013 12:19 PM

Yeah, I've always been able to mount my two Android phones as USB mass storage devices on Linux by just selecting that option in the phone, but perhaps the SIII doesn't support this?

I'd guess that on Windows, it is using MTP, which I've never used on Linux. By the way, if you install F-Droid, there's a FTP Server application so you can transfer files over wifi without needing to physically connect your phone.

Mark Pettit 03-02-2013 12:42 PM

In my humble opinion, I think the current libmtp and implementations based on this is totally broken on current linuxes. I tried going to the latest (unreleased) version, but that broke numerous things on Slackware (like mounting devices). The I found "go-mtpfs" - you will need to google for it - this is the only thing that works fairly reliably. That said, I think you're better off running sshdroid on the phone, and then mounting it with sshfs.

magicm 03-02-2013 01:10 PM

bosth - I don't think that I can get around MTP on the Galaxy S III

Mark Petit - thx - will look into both go-mtpfs, sshfs (I'd need to add SSHDroid on the phone, and sshfs-fuse on Slackware, wouldn't I?).

bosth 03-02-2013 01:16 PM

magicm - I also use ssh for my file transfers: Dropbear on Android (might require root?). I just use scp to copy media over, so no extra Slackware packages are needed:
Code:

scp /home/bosth/podcasts/*.mp3 192.168.0.100:/sdcard/media
The only caveat is that Android's media subsystem won't be aware of the new files until you force a rescan of your sdcard, but there are applications for that too.

Mark Pettit 03-02-2013 01:37 PM

You don't need root for sshdroid - it would then default to port 2222 instead of port 22. But, you're a slacker, and that makes you special. So root the phone and show it who's the boss :-)

Bazzaah 03-02-2013 03:31 PM

I gave up trying to get MTP to work - the ssh app I use works really well.

Perhaps you can you back the podcasts up to somewhere like Dropbox and download to your S3 from there.

volkerdi 03-02-2013 04:25 PM

If your computer has bluetooth, that's another option. And if it doesn't, a USB bluetooth adapter can be found online for less than 5 dollars.

vigi 03-02-2013 04:46 PM

I am using a toshiba netbook with slack_current. To transfer files from my samsung galaxy P6800 7.7" tablet phone, i would reboot the netbook into win xp.

What a terrific surprise, with the update of kde to version 4.10 it now interacts through dolphin. No need to reboot. Thank you mr volkerding.

magicm 03-02-2013 05:17 PM

Thanks everyone for all replies. Managed to get this to work by installing SSHDroid on my phone, and then sftp from a console on my laptop, so please mark this solved. HooRay! :)

Didn't think about Dropbox (use SugarSync on Windows & phone, but the same idea). Need to set that up in Slackware.
Didn't think about bluetooth, either (my laptop does have it, and have a bluetooth mouse configured).
Will try both, just to see which is more to my liking.

Need to learn to think more about how many ways there might be to get something done, when the obvious doesn't work out.
There's a lesson for me... :doh:

Will remove mtpfs, as I don't see the point of having installed something that I can't get to work.

volkerdi - thank you so much for Slackware, it just gets better all the time.

Slacktivist 10-25-2014 05:43 PM

Interesting. I'll have to give sshDroid a try.

rkelsen 10-26-2014 09:15 PM

If you just want to transfer files, you can use the FTP Server app: https://play.google.com/store/apps/d...TPServer&hl=en


All times are GMT -5. The time now is 11:11 PM.