LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2012, 03:36 PM   #1
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
user mounting of USB drive...


I caught this thread on this same subject , but I don't want to hijack his thread and he's running 64 bit and I am not, so here it is...

I have tried several variations in my /etc/fstab, all result in "Sucks to be you" messages when trying to mount using Xfce right-click > "Mount Volume".

Here's the current (and (#)former) /etc/fstab entries:
Code:
#/dev/sdc1     /media/Keepers      ntfs-3g     defaults           0   0
#/dev/sdc1     /media/Keepers      ntfs-3g     noexec,users,nodev,rw 0 0
/dev/sdc1     /media/Keepers      ntfs-3g     defaults        1 2
#/dev/sdc1     /media/Keepers      ntfs-3g     noauto,user,rw 1 0
#/dev/sdc1 /media/Keepers ntfs-3g defaults 0 0
#/dev/sdc1 /media/Keepers ntfs-3g noexec,users,nodev,rw 0 0
/dev/sdc1 /media/Keepers ntfs-3g defaults 1 2
#/dev/sdc1 /media/Keepers ntfs-3g noauto,user,rw 1 0

Thank you,

JJ of c9

edit: I can Unmount the volume, but must use "sudo mount -a" to get it up using
Code:
/dev/sdc1	 /media/Keepers	  ntfs-3g     noexec,users,nodev,rw 0 0
in /etc/fstab.

Last edited by Habitual; 07-30-2012 at 03:45 PM.
 
Old 07-30-2012, 04:11 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
So are you still having issues? You must run the command as sudo in order to mount it. Your last few lines indicate that you were able to mount it.
 
Old 07-30-2012, 04:36 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374

Original Poster
Blog Entries: 37

Rep: Reputation: Disabled
I can mount as root and umount as user via Xfce > right-click.

Can users not mount these devices?

Thanks!
 
Old 07-30-2012, 05:00 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Users can not mount devices. Almost all distro's should come with some sort of automount process for these via udev. If it is not automatically mounted users should be able to call upon the command with udevtrigger. The slackwiki has a good page on udev you may want to read over.
 
Old 07-30-2012, 05:36 PM   #5
natharran
Member
 
Registered: Jul 2012
Location: Czech Republic
Distribution: Slackware64 14.1
Posts: 34

Rep: Reputation: Disabled
Hi,

I see you're having the same issue I had. This is what I needed to do to solve it.

1) User must have a write access to the mount point (/media/Keepers) - so either make sure you have it or change the mount point. I guess that by default users are not permitted to write there.
2) User must be a member of "disk" group in order to access the media - see

Code:
ls -l /dev/sd*
3) Your /bin/ntfs-3g must have a setuid root, or it won't allow you to mount the devices. According to ChangeLog:

Quote:
Mon Jul 16 19:00:08 UTC 2012
a/ntfs-3g-2012.1.15-x86_64-2.txz: Rebuilt.
Made /bin/ntfs-3g setuid root, because otherwise it refuses to allow
non-root users to mount volumes now, even if /etc/fstab allows it.
Just run

Code:
su
chmod u+s /bin/ntfs-3g
And it should work. Btw, you don't need to specify the "noexec nodev" in your fstab, the "user" or "users" already implies that - see

Code:
man mount
 
1 members found this post helpful.
Old 07-30-2012, 05:52 PM   #6
natharran
Member
 
Registered: Jul 2012
Location: Czech Republic
Distribution: Slackware64 14.1
Posts: 34

Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
I can mount as root and umount as user via Xfce > right-click.

Can users not mount these devices?

Thanks!
You can umount the device as user because that's done via fusermount. To mount ntfs as a user, however, you need to use the ntfs-3g that now needs a setuid root - see above. I was also confused by this.
 
Old 07-30-2012, 08:42 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374

Original Poster
Blog Entries: 37

Rep: Reputation: Disabled
Thanks to everyone, I got it sorted out.

  1. Added myself to disk group.
  2. chown root:disk /media/Keepers
  3. su
  4. chmod u+s /bin/ntfs-3g
  5. Logout|in.
/etc/fstab:
Code:
/dev/sdc1     /media/Keepers      ntfs-3g     users,rw    0 0
mounted with "sudo mount -a" and I can umount and remount it, so it's all gooood.

Done.

Last edited by Habitual; 07-30-2012 at 08:43 PM.
 
  


Reply


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
Mounting drive for a user bobby33 Linux - Newbie 3 04-23-2012 08:22 AM
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 08:58 AM
Mounting USB external drive with multiple partitions, USB bluetooth mouse xmeson Slackware 7 12-17-2006 09:00 AM
Mounting split raid drive as normal drive via USB William_Syd Linux - Newbie 2 11-01-2006 07:07 PM
Mounting a drive as my user Avatar33 Linux - General 6 10-06-2005 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:08 PM.

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
Open Source Consulting | Domain Registration