Hi
I'm looking for a guide to mount and transfer data (music, images) between my PC with ArchLinux and my Lumia 735.
So far, the system can detect the phone, but It cannot mount it.
On another Linux PC, with Ubuntu, I am able to mount the phone (SD + internal storage) and to transfer the data, but when I open the Music or Foto apps, I cannot see the data.
Has anybody solved these 2 issues (ArchLinux + file exchange)?
I'll admit, the idea of somebody using Linux on the PC but Windows on a phone amuses me. Not that I haven't occasionally been known to use exactly that, but not to the point of expecting them to work together (I use Windows on the PC when I need to connect my phone). I'll check next time I've got a Linux system and a USB cable in front of me...
Tip: this is a request for help, and therefore should go in the Q&A sub-forum. General would be a good place to mention if you had found a solution and wanted to share it, but Q&A is a better place to post requests. Doesn't much matter, though.
Related
I have recently gotten ubuntu working on my G2. I have ran into 3 problems though...
1) after rebooting my phone and going into terminal (to start ubuntu up) i type
"cd /sdcard/ubuntu"
then
"bootubuntu"
Which goes off without a hitch, but when i start up the VNC so i can use the GUI, i get a problem. all the commands go through but it makes a new localhost.. which gives me problems because A) i dont wanna setup a new VNC everytime i wanna use ubuntu and B) When the new localhost:2 or localhost:3 (depending on how many times i run "bootubuntu") i dont know the port its calling for or whatever information its needs for to connect to it with VNC. (to see what i mean by this look at the screenshot i took!
AND SECONDLY...
2) WHEN i can get into ubuntu (the only way ive gotten it to work is when i use it the first time) (ie. whenever i wanna use it i delete the ubuntu SD card contents and recopy them over and re-run "sh install.sh" this doesnt take long to run but it does take long to copy over 2 GB of stuff to the SD card) Which definately isnt the way its supposed to be used everytime i wanna use ubuntu. BUT BUT BUT, when i do this and it works, the keyboard inputs in ubuntu or completely screwed up! Ive yet to find the answer online so if anyone can help me this would be much appreciated, but not useful if i cant fix my first problem...
THIRDLY...
3) When i try to use USB storage after running ubuntu in VNC it simply wont connect, I have tryed and tryed again. The only way to fix this is to reboot my phone, which is when i found my problem with restarting and not being able successfully restart ubuntu without recopying the files over..
ANY HELP IS APPRECIATED!!!
This is hardly the place for this post. You would get a much better response if this was in the G2 and Desire Z Android Development Forum.
Either way, I'd say you should try creating a virtual partition on your SD card and see how that works out.
will do, mods, please delete this post!
Posting your thread in General, Q&A AND Dev will not get your results. It will get you banned.
With many devices not supporting mass storage anymore Android seemed to have moved from mass storage to PTP and MTP
With Windows supporting MTP by default and Mac OSX with an application there isn't any native support in Linux.
There are a few work arounds like gMTP but that didn't really work for me.
There also is another work around that requires you to edit some files.
To make it easier for others I wrote a little bash script, that does most for you.
Step 1 : sudo apt-get install mtp-tools mtpfs
Step 2 : Plugin your device
Step 3 : Open up a terminal
Step 4 : Type in : “mtp-detect”
Step 5 : Write the PID and VID down, you will need this later
Step 6 : disconnect your device
Step 7 : Download the script and execute it by sudo ./mtp (don't forget to make it an executable first)
Step 8: Follow the instructions on screen and after it's done reboot and plugin your device
Step 9: Use the command "android-connect" to mount your device and "android-disconnect" to dismount
It's not much, but I hope it helped someone.
Please let me know if it worked for your device/distro.
Original post
Tested and working on the P3110 and P5110.
EDIT 1:
(First) time mount can take up to 1-2 minutes, have had where it would mount in a few seconds, others half a minute. Be patient.
mussieonlinux said:
With many devices not supporting mass storage anymore Android seemed to have moved from mass storage to PTP and MTP
Tested and working on the P3110 and P5110.
Click to expand...
Click to collapse
Thanks for this. I think I have tried all this before and it has not worked, but will try again. A few things come to mind though. First, I think you have to turn USB debugging off, right? There is another thread where several of us are able to see the tablet, but not really get any files. Also there is a way to get the tablet to share PTP or MTP and that changes things too (PTP lets me see the top level but no subdirectories).
Will report back if this works or not.
I think USB debugging has to be on, at least for my phone. Mine is always on on all my devices.
Yeah you can see it in the file manager (1 for each SD card) with MTP but you can't access the files.
I am not sure about the PTP.. However for the MTP I just made a new folder in on my other SD card named extSD since MTP shows all directories of both sdcards in one directory.
mussieonlinux said:
I think USB debugging has to be on, at least for my phone. Mine is always on on all my devices.
Yeah you can see it in the file manager (1 for each SD card) with MTP but you can't access the files.
I am not sure about the PTP.. However for the MTP I just made a new folder in on my other SD card named extSD since MTP shows all directories of both sdcards in one directory.
Click to expand...
Click to collapse
Nope doesn't work with or without USB debug. I think the issue may be due to some problem with mtp-tools on 64 bit Linux. Are you running 32?
The mtpfs mounts but any attempt to list the mounted directory just hangs.
I am using 64bit, did you do the reboot and android-connect? If you are using nautilus you wont see your device under "Devices". You will see it above your filesystem.
Can you tell me what isn't working?
mussieonlinux said:
I am using 64bit, did you do the reboot and android-connect? If you are using nautilus you wont see your device under "Devices". You will see it above your filesystem.
Can you tell me what isn't working?
Click to expand...
Click to collapse
Well I'm using Kubuntu so no Nautilus. And I'm just looking at the mount point. My udev rules already have an entry for the mtd device. I also grabbed the latest libmtd and built it from source.
The fuse mount seems to work but any ls on the mount point just hangs forever.
Very strange.
At times like this I miss ubuntu
On my Arch (+XFCE), I use gMTP (uses mtpfs ofcourse). Most of the times it works, and then there are times when it is a pain in the a##. Gets stuck, does not respond, fails to copy what not.
I find the only reliable way is using adb.
Gosh! I push and pull everytime! :silly:
yeah, after a couple of days I found it not very stable at all, so I too switched over to ADB, it's not the fastest method. But we gotta get around, don't we?
I am also waiting for a permanent fix... Just switched back to Ubuntu from Windows 8 Preview, and I love it!!!
The only issue I have at the moment is the fact that I cannot connect directly to the PC from the Tab, although transfer speeds are better by removing the memory card and inserting it into the computer directly. Would be nice to use Rhythmbox to manage my MP3s.
I've tried a few solutions and nothing seems to work fully. I'll give the ideas mentioned above a try.
I have found my peace finally with qtADB.
By far the fastest, and most efficient app for this job.
qtadb[dot]wordpress[dot]com
Worked on my Galaxy S2 (i9100G) with cm10 nightly TY!
Worked only once! i get this...
Hello, this worked greatly on my ubuntu machine. Would this work on an ArchLinux headless PC? I'm willing to try it out if this doesn't mess anything up.
I can confirm this does not work on virtual box not sure on vmware as i dont have it so idk.
[email protected]:~$ android-connect
fuse: bad mount point `/media/GT-P3100': Transport endpoint is not connected
[email protected]:~$
As you can see above, i tried this for P3100. Can someone tell me what am i doing wrong here? I really want to handle my device from Ubuntu 12.04.
hi there,
in newer kernel - at this thime for example debain testing jessie - is kio-mtp implemented. this compinent load your nexus 4 mtp device autmotically like in windows. can access device via filemenager without doing steps in console before. in long time support distribution - example debian stable wheezy - this is not implemented yet. you can compile own your own to get this working
kio-mtp is for kde
gnome-vfs with mtp is for gnome
Works on Kali Linux with 3.14 kernel - HTC One with 4.4.3. Thanks a lot
Hey guys,
I'm having a bit of an issue with my s4, in my efforts to fix it, I am transferring files to my laptop, I'm using LinuxMint Mate Edition but I get a "can not lock device" error. I can use my windows partition, and it works fine so no problems there, but was seeing if anyone knew how to mount as a hard drive? I've enabled usb debugging and no go.
Mtp shows 2 ipods/media players but no files inside.
Ptp shows a camera, but files are all "corrupted". (they are not, that's just what it's telling me.)
I can put them on windows then access via linux, but I'd like to be able to just boot linux instead of running around.
(my windows is jacked, after x minutes it starts giving up, hard drive is partitioned so linux isn't affected by bad sectors, runs perfectly).
So yeah, any assistance would be most appreciated
Thanks
***edit:
Figured it out.
1. Apparently the ports was iffy, cable had to be just right for data transfer. Switched ports.
2. Look up go-mptfs! Build it from source and you should be good to go for those older linux distros
Hi all,
Of late i have been facing this issue of transferring media files from PC to my nexus 10. On connection, MyComputer just crawls and whenever it connects the file transfer bar shows virtually no progress. Even if the file is just a few MB. I also have 2 users on this tablet and on the other user the same thing happens. I have to do multiple restarts to fix this and multiple file transfers is not possible as the whole PC hangs and Windows Explorer crashes.
Any help will be appriciated.
PS. Windows 7 OS and stock N10 with 4.4.2
Hi,
While I can't help you with the Windows issue I can offer you a temporary solution! Which is using adb push.
To do as such please go to the Manta Help Thread and check how to set up adb and enable USB Debugging. From there you will now open a terminal in the folder you want to copy the files and type:
Code:
adb push *filename* /sdcard/
Now the file is in your Nexus 10, if you want to push many files, I suggest creating one folder with the files and pushing the folder itself.
Code:
adb push *foldername*/ /sdcard/
Hope this helps a little . I use it a lot since my Fedora can't recognise MTP hahaha .
~Lord
"All I ever needed was a little piece of hope" - World of Fantasy (Helloween)
Sent from my Xperia Z1
Have you looked at the wifi file transfer apps? - I've never tried them because I'm rooted and use Sambadroid.
Re the transfer speed problem I've a vague recollection that a USB 1 device, like a keyboard will pull other usb 2 devices on the same hub down to usb1 speeds. Have you tried other usb sockets? Other things you can try are disabling USB Legacy Support and enabling AHCI in your BIOS.
If you decide to pursue the USB problem then you may find these progs helpful
There's a microsoft program usbview.exe that you can get from MS here http://msdn.microsoft.com/en-us/library/windows/hardware/ff551063(v=vs.85).aspx It's also here http://www.ftdichip.com/Support/Utilities/usbview.zip . My copy is copyright 1996-98 and it runs under W8.1
http://www.nirsoft.net/utils/usb_devices_view.html
XxLordxX said:
Hi,
While I can't help you with the Windows issue I can offer you a temporary solution! Which is using adb push.
To do as such please go to the Manta Help Thread and check how to set up adb and enable USB Debugging. From there you will now open a terminal in the folder you want to copy the files and type:
Code:
adb push *filename* /sdcard/
Now the file is in your Nexus 10, if you want to push many files, I suggest creating one folder with the files and pushing the folder itself.
Code:
adb push *foldername*/ /sdcard/
Hope this helps a little . I use it a lot since my Fedora can't recognise MTP hahaha .
~Lord
"All I ever needed was a little piece of hope" - World of Fantasy (Helloween)
Sent from my Xperia Z1
Click to expand...
Click to collapse
Will try.
peterk-1 said:
Have you looked at the wifi file transfer apps? - I've never tried them because I'm rooted and use Sambadroid.
Re the transfer speed problem I've a vague recollection that a USB 1 device, like a keyboard will pull other usb 2 devices on the same hub down to usb1 speeds. Have you tried other usb sockets? Other things you can try are disabling USB Legacy Support and enabling AHCI in your BIOS.
If you decide to pursue the USB problem then you may find these progs helpful
There's a microsoft program usbview.exe that you can get from MS here http://msdn.microsoft.com/en-us/library/windows/hardware/ff551063(v=vs.85).aspx It's also here http://www.ftdichip.com/Support/Utilities/usbview.zip . My copy is copyright 1996-98 and it runs under W8.1
http://www.nirsoft.net/utils/usb_devices_view.html
Click to expand...
Click to collapse
Thanks
You've had a few tangential suggestions, the ADB push being the fastest with the hardware and software you have currently.
I don't actually store files on my "PC" really as my source, I store them on a NAS and then pull them either to my PC or my other devices. This makes all my devices "stateless" as I find individual devices I'm moving around with ultimately break more often so I prefer the NAS route. My NAS is a Raspberry Pi running Rasbian with a 1TB USB hardd drive and a 64GB OTG flashdrive.
You can add to the other ideas:
Airdroid which runs a small web server on your Android device and you access the Android device from browser on PC and push files, at Wifi speeds.
run web server on your "PC" and then in Android just get them in a download app. My "PC" is Linux and its running Apache and I either SSH from the PC to the Android and then wget the file or use of the file download methods inside Android.
USB OTG stick which also serves to augment capacity, I get about 22MB/s from USB to inside N10
One other indirect thing, is when you do a full Android flash wipe it seems to reformat and speed up the filesystem better than if you've done an upgrade, although I never benchmarked it to know, just an impression.
Hey guys,
I build a new pc, first new build in 20 years.
I’m using an ASUs tug gaming x670e plus WiFi motherboard with and 7800x3d cpu.
I’m stuck with the windows installation from usb.
First attempt I used a SanDisk 8gb stick and windows media creator. That’s right load, but looking back that was probably because of bios settings.
second attempt I used a leef 16gb stick. Art the verify stage at 99% it failed.
Third attempt save stick same method created the usb successfully. Had to pay around a lot with bios settings to get the stick seen as bootable. But during the windows installation it reported a file inaccessible or missing. Soo I put the stick in another machine to check but the file in question was there.
Soo I tried again, but now it cannot start up from the usb stick.
I’m in progress of creating an iso usb using the 8gb SanDisk drive, but I think I’m missing something significant.
I’ve attached my bios settings for booting.
If anyone can give some clarification, that would be greatly appreciated! If I can’t die this tonight I’ll bring it in a shop this weekend (just for a windows installation, sigh)
This... happy hunting.
Make a cloned copy of the disk once loaded and configured but before adding data, antivirus or trashware with Acronis to a spare hdd for easy OS restore.
*Redundantly backup critical data, first*
Separate data drives + OS drive are best plus the backup drives that are physically and electronically isolated from each other and the PC.
Managed to get an install.
Had to change a few bios settings (apparently one of the videos I watched for the right bios settings was the exact opposite of what was needed). Agassi used an iso stick.
That seemed to do the trick.
Thanks for the suggestions. It’s much appreciated.
I managed to get things installed. My issues were a combination of bad luck with my usb drives (and how the bootable stick was generated), as well as some poor advice on YouTube that told me the opposite of what was needed.
I also had problems obtaining an activation key legally, but that got resolved as well, so I finally managed to get my pc up and running.
Thanks again for the suggestions!