LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-17-2015, 02:57 AM   #1
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Rep: Reputation: Disabled
how to use mtpfs to transfer files to my android fone


i have installed mtpfs for transferring files to and from my android phone....
i also created the mount point as required.... /mnt/phone
i can see my files in the phone too but i am not able to copy files to my phone....

Code:
mtpfs /mnt/phone
mtpfs -o allow_other /mnt/phone
ls -lh /mnt/phone //lists the phone contents
now i tried doing cp of a song from my linux folder to the phone but it doesnt copy though the operation completes with no errors printed either...i run
Code:
cp -v file1.mp3 /mnt/phone/Phone\ Storage/mp3/
but the file is not copied....
 
Old 09-17-2015, 03:01 AM   #2
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
cool...i got the solution from this link:
as explained it says we need to go by file numbers to copy and not by file names in your phone....

Code:
mtp-folders // lists the files with numbers mapped to it for your phone
mtp-connect --sendfile file1.mp3 172 //172 was my mp3 folder in my phone
[COLOR="Silver"]

Last edited by nitecrawler; 09-17-2015 at 03:19 AM.
 
Old 09-17-2015, 01:05 PM   #3
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.2 64 Multi-Lib
Posts: 564

Rep: Reputation: 237Reputation: 237Reputation: 237
Hmmm - I battled with this stuff quite some time back. Nothing seemed to work, and the mtpfs libraries on Slack seemd to be out of date. Then I installed go-mtpfs. Problem solved. And you don't need to do weird things like my you describe above. Simple tools like MidnightCommander work perfectly fine.
 
1 members found this post helpful.
Old 09-18-2015, 12:59 PM   #4
Julius-Caesar
LQ Newbie
 
Registered: Nov 2014
Posts: 10

Rep: Reputation: Disabled
For me, the solution is to install an FTP server on my tablet:

FTP server

It is very easy to use and it is free software.
 
1 members found this post helpful.
Old 09-23-2015, 07:11 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,801

Rep: Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988Reputation: 988
There are other ways which are better than MTP to transfer files to your phone.

If you're going to use a cable, you should set the phone up to present itself as a USB storage device. For reasons beyond my comprehension, this is not enabled by default in the latest versions of Android... but, fortunately, it is easy to find and change this setting.

Otherwise, +1 to what Julius-Caesar said. Hail Caesar! Install an FTP server app on your phone/tablet and copy whatever you like between devices wirelessly. My preferred app is: primitive ftpd. I've had better results with it than most others, and, despite it's name, it has some fairly advanced security features. Hint: Under Linux, I use gFTP as a client, since it is either pre-installed or easily available for most distros. If you have to use Windows, get FileZilla.
 
Old 09-23-2015, 08:30 PM   #6
play4
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
I like btsync. You can sync your devices over a local lan.
 
Old 09-24-2015, 06:33 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,004

Rep: Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556
Quote:
Originally Posted by rkelsen View Post
If you're going to use a cable, you should set the phone up to present itself as a USB storage device. For reasons beyond my comprehension, this is not enabled by default in the latest versions of Android... but, fortunately, it is easy to find and change this setting.
Not all phones support this. My Nexus 6 only supports MTP or PTP. I think this is only allowed on devices that have a micro-sd card, but I'm not sure. I haven't had the ability to run any of my devices as a USB storage device after my Nexus One (as that is the last Nexus phone that had expandable memory).
 
Old 09-24-2015, 06:41 AM   #8
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: Wiesbaden, Germany
Distribution: Manjaro
Posts: 1,065

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
https://play.google.com/store/apps/d...transfer&hl=en

Is IMHO much simpler and what I use
 
Old 09-24-2015, 07:04 AM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,592
Blog Entries: 7

Rep: Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064Reputation: 2064
1) Save all data on the phone to the microsd card and unmount and unplug it
2) Get a usb / mini sd adaptor for it (about 10 or less)
3) Insert the microsd card and plug it into a USB port/sd port
4) Mount the filesystem and grab your files
 
Old 09-24-2015, 07:19 AM   #10
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Current: Debian and OpenSUSE. Past: Arch, RedHat (pre-RHEL). FreeBSD & OpenBSD novice, Hackintosh
Posts: 1,193
Blog Entries: 7

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by bassmadrigal View Post
Not all phones support this. My Nexus 6 only supports MTP or PTP. I think this is only allowed on devices that have a micro-sd card, but I'm not sure. I haven't had the ability to run any of my devices as a USB storage device after my Nexus One (as that is the last Nexus phone that had expandable memory).
Samsung removed the UBSMS ability from their phones as well, so it's becoming a less common "feature".
 
Old 09-24-2015, 08:21 AM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,004

Rep: Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556Reputation: 5556
Quote:
Originally Posted by cynwulf View Post
1) Save all data on the phone to the microsd card and unmount and unplug it
Phones with microsd support are becoming less and less common. This may not always be an option.

Although, many, if not all, phones support USB-OTG (on-the-go), basically allowing you to plug a thumbdrive into the phone. This could be an alternative to transferring files, although, I tend to just transfer stuff using wifi (I have Root Explorer which supports SMB shares, so I can easily copy stuff to and from my phone).

But I also have mtp working fine on my computer and I can transfer stuff using Konqueror...
 
Old 09-29-2015, 05:30 AM   #12
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
well, i dont like the idea of a wireless transfer...thats like eating my bandwidth data for no use....was looking for a cabling solution....no offence meant...but just the idea of wireless transfer is difficult on low data plan users...

i have been told to exercise caution over mtpfs as it is all buggy...and to have a look at adb push/pull....well i need to check on it....
i remember using adb for rooting my phone once...

and for SD-card lots of phones today coming with no micro SD slot like bassmadrigal pointed out....

again a command line solution was what i was looking for.....

if anyone found issues with mtp do let me know...

Last edited by nitecrawler; 09-29-2015 at 05:35 AM.
 
Old 09-29-2015, 07:04 AM   #13
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: Wiesbaden, Germany
Distribution: Manjaro
Posts: 1,065

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
You're not using you cell connection you're using you home wifi.
 
Old 09-29-2015, 07:23 AM   #14
nitecrawler
Member
 
Registered: Dec 2014
Distribution: slackware x86-64 14.2
Posts: 188

Original Poster
Rep: Reputation: Disabled
home wifi yes, but conception of bandwidth data is what i was intending on....use of bandwidth no matter cell or home wifi is consumption which gives that much less data to use if you use for transfer....
well thats what i think of it...you use wifi to transfer data....isnt it equivalent to upload/download of data from phone to pc and vice versa?correct me if am wrong...

Last edited by nitecrawler; 09-29-2015 at 07:24 AM.
 
Old 09-29-2015, 08:50 AM   #15
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: Wiesbaden, Germany
Distribution: Manjaro
Posts: 1,065

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Quote:
Originally Posted by nitecrawler View Post
home wifi yes, but conception of bandwidth data is what i was intending on....use of bandwidth no matter cell or home wifi is consumption which gives that much less data to use if you use for transfer....
well thats what i think of it...you use wifi to transfer data....isnt it equivalent to upload/download of data from phone to pc and vice versa?correct me if am wrong...
Your bandwidth is measured from your network out not internally between two computers in your home.
 
  


Reply


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
broken screen get data off of fone schneidz Linux - Mobile 1 02-01-2015 06:08 AM
[SOLVED] re-purposing old fone as media center pc schneidz Linux - Mobile 0 06-28-2014 05:45 PM
slack64 and android mtpfs? wufo Slackware 7 01-21-2014 08:00 AM
LXer: How to Transfer Files from Arch Linux to Android LXer Syndicated Linux News 0 06-09-2013 11:20 AM
Contacts transfer from BB Curve to LG Android metallica1973 Linux - Mobile 2 03-27-2011 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:46 AM.

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