[SOLVED] how to use mtpfs to transfer files to my android fone
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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.
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.
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).
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
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".
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...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.