LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-19-2014, 10:05 PM   #1
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Rep: Reputation: Disabled
Unhappy Slackware mount MTP as a non-root user


Code:
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?

Last edited by gonny95; 02-19-2014 at 10:06 PM.
 
Old 02-20-2014, 05:58 PM   #2
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Unhappy

I'm really desperate... I would really appreciate if you help me...
 
Old 02-20-2014, 06:42 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,794
Blog Entries: 13

Rep: Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948
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.

You might take a look at installing mtpfs: http://slackbuilds.org/repository/13...timedia/mtpfs/ I've never had to use it, but that's what I would try.

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

Last edited by frankbell; 02-20-2014 at 06:48 PM.
 
Old 02-20-2014, 07:01 PM   #4
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Thanks for your replying
I did as you said
Code:
cat /etc/fstab
cat /etc/mtab    <---------with the device unmounted and with it mounted
The results are
Code:
bash-4.2# cat /etc/fstab
/dev/sdc5        swap             swap        defaults         0   0
/dev/sdc2        /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        defaults 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0

/dev/sda5        /.1C             ntfs        rw,noauto,user,umask=000   1   0
/dev/sdb1        /.2D             ntfs        rw,noauto,user,umask=000   1   0
Code:
bash-4.2# cat /etc/mtab
/dev/sdc2 / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
gvfsd-fuse /home/guest/.gvfs fuse.gvfsd-fuse rw,nosuid,nodev,user=guest 0 0
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]'

Last edited by gonny95; 02-20-2014 at 07:09 PM.
 
Old 02-20-2014, 07:09 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,794
Blog Entries: 13

Rep: Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948
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.

Here's a good article: http://www.linuxchix.org/content/cou...m/Lesson5.html

What is the precise device you are attempting to mount? I think that information would help a lot.

Last edited by frankbell; 02-20-2014 at 07:12 PM.
 
Old 02-20-2014, 07:13 PM   #6
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
I'm using 32-bit Slackware 14.1

And my phone is Galaxy S3 4.3 JellyBean
 
Old 02-20-2014, 08:01 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,794
Blog Entries: 13

Rep: Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948
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.

Last edited by frankbell; 02-20-2014 at 08:02 PM.
 
Old 02-21-2014, 05:55 AM   #8
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Thanks but I gotta solve this problem completely.

Looks like something's wrong with 'libusb_open()'

It happens only when I logged-on as a non-root
Code:
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

Last edited by gonny95; 02-21-2014 at 05:59 AM.
 
Old 02-21-2014, 06:24 AM   #9
gonny95
Member
 
Registered: Feb 2014
Distribution: Slackware,Ubuntu
Posts: 84

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gonny95 View Post
Thanks but I gotta solve this problem completely.

Looks like something's wrong with 'libusb_open()'

It happens only when I logged-on as a non-root
Code:
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...)

Code:
SUBSYSTEM=="usb",

ATTR{idVendor}=="04e8",

ATTR{idProduct}=="6860", MODE="0666"
Then it works partially

When I tried to mount through Thunar It was mounted very well

But When I used mtpfs command, it just freezes... very weird
 
1 members found this post helpful.
Old 02-21-2014, 07:17 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,794
Blog Entries: 13

Rep: Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948Reputation: 2948
Cool. I'll have to try this out, but I probably won't get to it until next week.
 
1 members found this post helpful.
Old 04-20-2014, 01:55 AM   #11
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current multilib on an OinkPod 4300.
Posts: 82

Rep: Reputation: 31
Cool awesome help

the MTP mount thing is a real P.I.A.

The android rules setting fixed it.

How did you find this out?
 
Old 08-02-2014, 01:48 PM   #12
ckuttruff
LQ Newbie
 
Registered: Dec 2007
Distribution: Slackware 12
Posts: 6

Rep: Reputation: 1
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

To find the vendor / product IDs:
https://wiki.archlinux.org/index.php...our_Device_Ids

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.

Thanks Arch folks!! <3

Last edited by ckuttruff; 08-02-2014 at 02:00 PM.
 
1 members found this post helpful.
  


Reply

Tags
hardware, linux, mtp, slackware


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
[SOLVED] SSHFS: How to mount remote directory of the root to non root user? postcd Linux - Security 1 02-11-2014 01:35 AM
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Samsung YP-K3 > MTP Device < How to mount!? Thoddy Linux - Hardware 3 07-14-2007 05:09 PM
help please: mount -t smbfs -a fails as normal user, as root, doesn't mount anything thevic Linux - Networking 11 04-09-2007 03:09 AM
Mount Cd as non-root user rayyen Linux - Newbie 4 08-31-2003 09:21 AM


All times are GMT -5. The time now is 10:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration