LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2016, 10:50 AM   #1
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
Can't connect to Samsung Gear 360 as MTP device


Hi
I'm simply trying to access the videos on my Samsung gear 360 from a Linux(Ubuntu) desktop.
I'm using the following mtp packages and have confirmed the Camera is recognized as an MTP device.

Code:
    sudo apt-get install libmtp-dev mtp-tools mtpfs
However when I try and connect via the following command

Code:
    mtp-files > file_list.txt
I successfully create the text file but it only contains
Quote:
libmtp version: 1.1.10

mtp-files: Successfully connected
and get the following command line errors

Quote:
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
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
Anyone have any luck connecting to a Samsung gear 360 from the command line?
 
Old 12-22-2016, 02:21 PM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 4,179

Rep: Reputation: Disabled
These may help.

http://gphoto.sourceforge.net/doc/ma...camera-support
http://gphoto.sourceforge.net/doc/ma...g-gphoto2.html
 
Old 12-23-2016, 02:05 PM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,520

Rep: Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095
In my opinion simple-mtpfs is the quickest, most reliable, and easiest way to mount a mtp device right now.
https://github.com/phatina/simple-mtpfs/

Then make a little script for it, mount it and browse it like any other fs.
Code:
#! /usr/bin/env bash

#Script for simple-mtpfs

[ -d $HOME/camera ] || mkdir $HOME/camera

PS3="
Select an option.:  "
					
while :; do
  clear
  options="Quit List_Device Mount Umount"
    select opt in $options; do
      case $opt in
        Quit) clear; exit
        ;;

        List_Device) simple-mtpfs --list-devices
        ;;
            
        Mount) simple-mtpfs ~/camera; echo "Mounted to ~/camera" 
        ;;

        Umount) fusermount -u ~/camera; echo "Unmounted" 
        ;;
      esac
    done
done
 
Old 12-27-2016, 10:27 AM   #4
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Original Poster
Rep: Reputation: Disabled
teckk
Thanks. I successfully downloaded and compiled simple-mtpfs but the problem remains, how to you copy files from an MTP device with this package?
I tried simple-mtpfs -h but can see no options for copying

Previously I was able to create a textfile of the files on the MTP device like so
Quote:
mtp-files > file_list.txt
 
Old 12-27-2016, 12:40 PM   #5
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,520

Rep: Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095Reputation: 1095
If you mount the device with simple-mtpfs, then copy to or from that directory with cp, or using a file manager, whatever you normally use to copy a file from one directory to another.
Example, with the device plugged in:
Code:
mkdir ~/camera
simple-mtpfs ~/camera
ls ~/camera
pic1.jpg
pic2.jpg
.....
Then when you are done unmount it.
Code:
fusermount -u ~/camera
Look at:
man simple-mtpfs
man fusermont


Edit: or maybe you don't know how to copy a file from one directory to another.
To device example:
Code:
cp myfile.jpg ~/camera/pictures/
From device:
Code:
cp ~/camera/pictures/file.jpg myfilename.jpg
Look at:
man cp
Or just use a file manager to drag and drop.

Last edited by teckk; 12-27-2016 at 12:49 PM.
 
  


Reply

Tags
mtp, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Death by incompatibility: A Samsung Galaxy Gear review LXer Syndicated Linux News 0 10-07-2013 12:30 AM
LXer: Samsung to unveil Galaxy Gear smartwatch Sept. 4 LXer Syndicated Linux News 0 08-27-2013 11:18 PM
On slack-current: /usr/bin/mtp-getfile -> /tmp/package-libmtp/usr/bin/mtp-connect ? LuckyCyborg Slackware 3 05-03-2010 01:13 PM
Samsung YP-K3 > MTP Device < How to mount!? Thoddy Linux - Hardware 3 07-14-2007 05:09 PM
Samsung YH-925 MP3, MTP-detect problem Sander50 Linux - Hardware 0 01-24-2007 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration