So I found a guide on how to mount my n7 under linux.
the only proble is that I have to enter the command "sudo mtpfs -o allow_other /media/Nexus7" everytime I plug it in.
Is there a way to automate this?
The guide can be found here.
http://www.nexus7tablethelp.com/2012/07/connect-nexus-7-to-linux-via-mtp-using.html
What linux disto are you running? If you're using Ubuntu w/ Unity, this is much easier: ubuntuforums.org/showthread.php?t=1895820.
For what it's worth, I manage my Nexus 7 through gMTP (available in software center) on Ubuntu 12.04. It's not the fastest thing in the world, and sometimes it acts like it's locked up when it's still thinking, but it's never let me down.
Thanks guys!
Related
Is there a nfsd type application for WM, that will let me mount the Universal from another computer running linux? I am thinking of something like nfsd such that I can do`mount -t nfs ipaddr_universal:/' from the linux machine
That way, I can transfer files back and forth from my linux-laptop.
Thanks.
I have the idea that Just as the Ubuntu hacks for android work, we could use androidVNC to connect and view the webtop from the phone without HDMI or the dock, using the phones screen.
Another thing is many of us are using SystemR89's ubuntu hack, with Gnome or LXDE so then all we need is to have tightVNCserver installed as well in the Ubuntu eviroment. Do the steps provided in the above site androlinux.com and trigger that Ubuntu Session to start and then connect on loopback should work.
As I recall ubuntu.sh sets up the soft links or Binds. I don't recall what Booubuntu does but it appears to chroot you to the Ubuntu enviroment for install of the rest of the packages.
I don't think we need to mess with those, they have been done by SystemR89's WebtopMOD. We just need to Chroot to the Ubuntu.disk and give the command "export USER=root" and "vncserver -geometry 1024x800" to start the VNC server Then connect via AndroidVNC.
You'll note that our Phone already has a ubuntu.sh on the root directory. Evidence that moto basically copied the work??? IDK.
I'm looking for some ideas or help from someone who knows ubuntu better then me on how to do this.
I'll hack at it a bit and see if I can get anywhere.
I doubt too many people will find this useful, maybe I'm wrong though. If it would be helpful to you let me know, it will add to my drive to figure it out.
I just recently installed Arch Linux with KDE as the GUI and I can't for the life of me figure out how to mount my Nexus S. It doesn't show up in /media so I don't know how on earth I can mount it. I've tried in CWM with mount USB and still nothing shows up anywhere on my system. Prior to Arch I was running OS X (10.7) and it was mounting fine. Obviously very different OS and Arch is a lot more complicated to use. I've spent several hours trying to figure out how to mount it but I can't find anything that solves it. Maybe anybody out there using linux could give me a hand?
Arch is best Good choice.
Easiest way is to mount it manually. First you'll have to find out which device it is. Plenty of ways to do this, using "fdisk -l" in terminal, gparted, etc. It will be something like "/dev/sdc1". Once you know this, you need to create a folder to mount it. Something like:
mkdir /media/nexus
Now, you need to mount it (after you've chosen to mount on the phone). To do this:
mount -t auto /dev/sdc1 /media/nexus
auto is the file system, you can type fat32 also but it can figure it out. Then the disk location, then where to mount.
You may need root permissions or changes to the sudoers file to do these. Type "man mount" or "man command" for just about every commands manual. I'm on the phone so I can't write up anything much better than that.
Also, the arch Linux wiki is an invaluable resource, make the most of it.
Harbb said:
Arch is best Good choice.
Easiest way is to mount it manually. First you'll have to find out which device it is. Plenty of ways to do this, using "fdisk -l" in terminal, gparted, etc. It will be something like "/dev/sdc1". Once you know this, you need to create a folder to mount it. Something like:
mkdir /media/nexus
Now, you need to mount it (after you've chosen to mount on the phone). To do this:
mount -t auto /dev/sdc1 /media/nexus
auto is the file system, you can type fat32 also but it can figure it out. Then the disk location, then where to mount.
You may need root permissions or changes to the sudoers file to do these. Type "man mount" or "man command" for just about every commands manual. I'm on the phone so I can't write up anything much better than that.
Also, the arch Linux wiki is an invaluable resource, make the most of it.
Click to expand...
Click to collapse
Thanks very much for your help. I'll work on this later tonight since I have a lot of school work I need to get done now. Oh yeah you say to mount the device on the computer after pressing mount on the phone but that dialog never actually shows up when I plug the phone in. The phone doesn't recognize it's being plugged into a computer it just shows that it's charging. The arch wiki is definitely a great place for all things arch. Best documentation for any operating system I think I've ever seen.
Try in recovery first if it doesn't show up in Android. If it still doesn't show up I'll try to break my arch and fix it, whether its in android or cwm.
tycruickshank said:
Thanks very much for your help. I'll work on this later tonight since I have a lot of school work I need to get done now. Oh yeah you say to mount the device on the computer after pressing mount on the phone but that dialog never actually shows up when I plug the phone in. The phone doesn't recognize it's being plugged into a computer it just shows that it's charging. The arch wiki is definitely a great place for all things arch. Best documentation for any operating system I think I've ever seen.
Click to expand...
Click to collapse
I've experienced this before as well. It turned out that I had a dodgy cable that's just not compatible with my NS for some reason.
If you want a pop on your KDE desktop when you enable UMS mode on your phone, make sure you udev is added to the daemon list in /etc/rc.conf. Then, you can either reboot or do /etc/rc.d/udev start and restart KDE again.
I've tried everything that you guys have said and still no luck. Its not showing up anywhere. Not in fdisk -l, I tried lsusb, looked in /dev/disk and it wasn't there. Nothing was pointing to a device being connected. I checked the everything.log file as well. Last photo is the everything.log and of course these were all taken with my phone connected to my computer. I tried multiple different USB cables too.
Sent from my Nexus S using Tapatalk 2
Just curious, with the phone on, and screen unlocked, what do you get with:
adb devices
?
Sorry but try to check it with other OS to be sure that your USB host is good .
Sent from my Nexus S
Unplug the USB. Then plug it back in then immediately run lsusb. If you dont see the device should be /dev/sdb1 should be the device according to your current fstab.
If it does not show in /dev/ or lsusb you have a bad cable.
Sent from my Nexus S 4G using xda premium
Well this morning it decided to work. I had turned my computer off last night and I tried it this morning with the same cable and it decided to work. I hope it's not going to be intermittent but seems to be working for now. Thanks everybody for all the help!
So I have my Nexus 7. It ran fine when I was under Windows. Now that I'm back to running linux again (Arch Linux) the mass storage isn't working anymore. After a bit of reading around it's apparently because it using the MTP protocol which is a Microsoft based protocol. I understand that there are hacky libraries that I can install that may or may not make it work properly, but that's not what I want. I just want to be able to go back into mass storage mode like it used to be. I don't want to have to deal with some janky proprietary protocol when it isn't necessary. Is there any way to get back mass storage mode like the way it used to be, or are people over android 3.0 just S.O.L? Is there an option is CyanogenMod or is it something they may be working on at some point? The open standards, flexibility and freedom was the entire reason I chose to use android over ios in the first place.. this is really unfortunate.
Not trying to come off as an entitled twat, but this is really frusterating :/
I've never get it to work in Linux. I've tried updating MTP to the latest subversion/cvs and just couldn't get it to do anything.
I have to use adb to transfer anything!
On Ubuntu, I've managed to get it working with mtpfs and gMTP. Not sure how useful that is for Arch though...
rowanparker said:
I've never get it to work in Linux. I've tried updating MTP to the latest subversion/cvs and just couldn't get it to do anything.
I have to use adb to transfer anything!
Click to expand...
Click to collapse
This is what I do as well.
There are ways to get it working but they (for me) were a pain and for some reason yielded super slow transfers.
Sent from my Nexus 7 using Tapatalk 2
HawkiesZA said:
On Ubuntu, I've managed to get it working with mtpfs and gMTP. Not sure how useful that is for Arch though...
Click to expand...
Click to collapse
I use mtpfs and it works, ish.
The bigger the file, the longer it sits there after I use cp, and then after a bit [maybe 10 secs for 350MB file, much longer for bigger files], it will say something about preserving timestamps not being implemented, and it looks like it finished copying. But it has only just started. So I use du to see how big the file is, and for me I get around 14MB/s once it has started transferring. Not too shabby, but the overhead is ridiculous. I want mass storage mode too!
Hi!
I've made a little solution for mounting Nexus 7 to Linux pc.
Using mtpfs was laggy, don't know why, so I used similar tool, called go-mtpfs for that (project link) with some changes (see here).
Just untar attached archive, and run install.sh.
It uses udev to automatically mount and unmount device on plugging/unplugging. (no non-root unmounting though)
Checked on Ubuntu 12.04, but must work with others versions and distros, i guess.
thanks to everyone for your comments and responses. the way everyone is talking it seems really grim... are we really just stuck with trying to make mtp work? there's no way to have it go back into mass storage mode?
i even tried to mount my sd card in cwm and that didn't even work. later on i'm going to try installing twrp to see if that'll allow me to mount my drive properly.
well, neither cwm nor twrp allow me to mount the sdcard. i did a lot of scouring around and i think I may have found why it won't work in recovery either.
It's true that Galaxy Nexus doesn't support UMC because the sdcard is a subfolder of the data partition instead of independent, like in the Galaxy S2. But I was talking about OTG, it is mounting an usb pendrive to save cwm backups there.
Click to expand...
Click to collapse
http://forum.xda-developers.com/archive/index.php/t-1500008.html
i know this is a different device, but i don't see why it would be any different. i'm gunna start mixing and matching kernels with recoveries to see if i can make that work. and if i truly and honestly can't get it working in mass storage mode i'll just stick with adb push.
vpupkin said:
Hi!
I've made a little solution for mounting Nexus 7 to Linux pc.
Using mtpfs was laggy, don't know why, so I used similar tool, called go-mtpfs for that (project link) with some changes (see here).
Just untar attached archive, and run install.sh.
It uses udev to automatically mount and unmount device on plugging/unplugging. (no non-root unmounting though)
Checked on Ubuntu 12.04, but must work with others versions and distros, i guess.
Click to expand...
Click to collapse
Forgot to mention that you have to restart udev
I am finding it's just less hassle to use Airdroid.
gMTP is the only acceptable method I have found in linux but it seems to hang a lot for me.
I found gMTP to be very slow, appearing to hang at times. So I set up Samba and use ES File Explorer on the tablet to access my shared mount points. It's possibly not as fast as AirDroid but is an easy solution, though it means controlling everything from the Nexus 7.
--
Sent from my Nexus 7 using Tapatalk 2
I simply use adb. I was recently turned onto QtADB which is adb with a gui and some other cool features. I would highly recommended it.
I haz no sig
I use gMTP on ubuntu. I really don't have any complaints about it. It does act like it's hanging at times but I've always found it to recover just fine without any additional issues. It's not wicked fast but it does what I need. I often utilize samba and airdroid for specific uses but sometimes I find gMTP to be an easy wired based solution.
mentose457 said:
I simply use adb. I was recently turned onto QtADB which is adb with a gui and some other cool features. I would highly recommended it.
I haz no sig
Click to expand...
Click to collapse
+1000 for you. That solved all my problems working with my files and my android devices.
adb worked perfectly for me! Download the android SDK and then under platform-tools directory,
./adb push <local> <remote>
fgoyti said:
adb worked perfectly for me! Download the android SDK and then under platform-tools directory,
./adb push <local> <remote>
Click to expand...
Click to collapse
Yes but how fast (slow) does it transfer? 1MB/s?
Sent from my SCH-I500 using xda app-developers app
I transferred 500MB in 1-2 minutes. Sorry, didn't record anything more specific but even at 2 min, that works out to 4MB/s which ain't bad
As many have suggested, just read up on adb and use that. If you need to get something off the N7 and dont quite remember were it went to.. adb shell and cd to the sdcard and ls the dir. It'll print everything cd in to the next folder you think it may be in ls.. it'll show the contents. If you dont like having to put things into the android-sdk-linux/platform-tools and then having to cd into that dir everytime. Just add the platform-tools to your PATH and you can issue commands through any directory. It is very unfortunate that MTP leaves us Linux users in the dark.
Also, if you have a rooted kernel such as Siyah for the Galaxy S2, it lets you force mass storage mode. I haven't tested this but it looks like it should work for linux
ÜBER™ said:
As many have suggested, just read up on adb and use that. If you need to get something off the N7 and dont quite remember were it went to.. adb shell and cd to the sdcard and ls the dir. It'll print everything cd in to the next folder you think it may be in ls.. it'll show the contents. If you dont like having to put things into the android-sdk-linux/platform-tools and then having to cd into that dir everytime. Just add the platform-tools to your PATH and you can issue commands through any directory. It is very unfortunate that MTP leaves us Linux users in the dark.
Click to expand...
Click to collapse
Well, with some little configuration, it's not a big thing to configure MTP or even automount-MTP on Linux systems. A small introduction you can find in my blog http://anddisa.blogspot.de
Sent from my Nexus 7 using xda app-developers app
I plug it in and it charges the phone but it doesn't recognize the device, the phone says "connected ad s media device" but I never get prompted in my pc about it nor the device appears as a detected, ergo I can't access the files or transfer anything from the phone to the pc or viceversa, HELP!
Sent from my Nexus 4
LRC1710 said:
I plug it in and it charges the phone but it doesn't recognize the device, the phone says "connected ad s media device" but I never get prompted in my pc about it nor the device appears as a detected, ergo I can't access the files or transfer anything from the phone to the pc or viceversa, HELP!
Sent from my Nexus 4
Click to expand...
Click to collapse
Also having this problem.
LRC1710 said:
I plug it in and it charges the phone but it doesn't recognize the device, the phone says "connected ad s media device" but I never get prompted in my pc about it nor the device appears as a detected, ergo I can't access the files or transfer anything from the phone to the pc or viceversa, HELP!
Sent from my Nexus 4
Click to expand...
Click to collapse
matt0401 said:
Also having this problem.
Click to expand...
Click to collapse
Ubuntu doesnt support mtp out of the box... You will have to add it with something like this...
http://www.webupd8.org/2013/01/upgrade-to-gvfs-with-mtp-support-in.html
I haven't tested it personally i usually transfer files via WiFi but the comments suggest it works well.
Sent from my Nexus 4 using xda premium
same issue here.
i tried this method,
http://forum.xda-developers.com/showthread.php?t=2004182
but some how, after this
8. Mount with the following command:
sudo mtpfs -o allow_other /media/nexus4
nothing happens.
mtpfs does not work as it should be.
This works for me on Debian Unstable using manual metod below :
search in google : how-to-mount-android-40-ubuntu-go-mtpfs ( i still can not post url's )
Manual install steps :
sudo apt-get install golang fuse git-core libmtp-dev libfuse-dev
mkdir /tmp/go
cd /tmp/go
go get github.com/hanwen/go-mtpfs
sudo mv /tmp/go/bin/go-mtpfs /usr/bin/
Now, go-mtpfs is installed. To mount your Android device, run these commands:
mkdir /media/nexus4
Plugin USB cable in your Nexus and :
go-mtpfs -allow-other=true /media/nexus4/
Voila! Your device’s contents can now be found at the /media/nexus4. If you belong to the “everything must be unmounted safely” tribe (like I do), then here’s your unmounting command:
umount /media/nexus4
Ubuntu 13.04 will support mtp out of the box. My laptop that I upgraded to 13.04 recognized the phone perfectly.
Sent from my Nexus 4 using xda premium
tory13579 said:
Ubuntu 13.04 will support mtp out of the box. My laptop that I upgraded to 13.04 recognized the phone perfectly.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Is ubuntu 13.04 already available?
Sent from my Nexus 4
LRC1710 said:
Is ubuntu 13.04 already available?
Sent from my Nexus 4
Click to expand...
Click to collapse
"Daily" builds are available but it is not a final product I believe.
Here's the link - http://cdimage.ubuntu.com/daily-live/current/
Sent from my Nexus 4 using xda premium