Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Failed to mount "SHV-E210L"
Unable to open MTP device '[usb:001,019]'
These messages appear when I try to mount MTP as a non-root user
Other USB devices or hard disks that are not MTP can be mounted with no problems by any user
How can I mount this without logging into root?
Posting to your own thread (or "bumping" as it is sometimes called) is not a good idea at LQ. LQ automatically "bumps" zero reply threads, and posting to it takes it out of the zero-reply list, where persons who might be able to help might miss seeing it.
If you've already done that, please post the output of these two commands, being sure to surround it with "code" tags, which become available when you click the "Go Advanced" button to the right of the "Post Quick Reply" button at the bottom of the reply window.
Code:
cat /etc/fstab
cat /etc/mtab <---------with the device unmounted and with it mounted
Well it's first time I've ever seen /etc/mtab
I didn't know that file even exist
What's the difference between /etc/fstab/ and /etc/mtab?
And I installed mtpfs but seems that some errors happened
Code:
bash-4.2# mtpfs
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Found 1 device(s):
Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 6
Attempting to connect device
For your information, the following error was happend when I tried to mount MTP device in Thunar as a non-root user
Code:
Failed to mount "SHV-E210L"
Unable to open MTP device '[usb:001,019]'
Fstab is the File System Table. It lists the partitions that the computer is aware of. Before automount came along, the easiest way to mount a new partition repeatedly was to enter it in fstab.
Mtab is the Mount table; it shows what partitions are actually mounted.
I have an HTC One running Android 4.3, and I haven't been able to get it to mount.
My workaround was to install the ES File Explorer app, free in the Play Store, which is capable of browsing network shares. Since I installed that, I've stopped exploring ways to mount the device, because I could accomplish my larger purpose--to copy files to and from my phone.
Googling around, I find that it appears that mounting Android 4.3 devices to Linux is not as easy as (I think) it should be.
In other words, I gave up, because I have other brick walls to pound my head against.
Maybe someone who has succeeded will stumble over this thread and help both of us out.
bash-4.2$ mtpfs /PHONE
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Found 1 device(s):
Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 4
Attempting to connect device
libusb_open() failed!: Permission denied
LIBMTP PANIC: Unable to initialize device
Unable to open raw device 0
That had nothing to do with the permission of the mount point directory
bash-4.2$ mtpfs /PHONE
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
Found 1 device(s):
Samsung: Galaxy models (MTP) (04e8:6860) @ bus 2, dev 4
Attempting to connect device
libusb_open() failed!: Permission denied
LIBMTP PANIC: Unable to initialize device
Unable to open raw device 0
That had nothing to do with the permission of the mount point directory
Guess I found the cause
that's because I didn't specify /etc/udev/rules.d/51-android.rules
So I made /etc/udev/rules.d/51-android.rules
and specified as following:
(I don't know exactly what is udevrules,though...)
It looks like arch linux has some excellent info about android-related issues (and this is where I'm assuming that these udev rules came from): https://wiki.archlinux.org/index.php/android
When adding the rules file, reloading the udev rules (as specified in the aforementioned arch documentation), and then running mtpfs, I can confirm that things show up perfectly fine now in my file manager.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.