LinuxQuestions.org
Visit Jeremy's Blog.
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 09-17-2013, 09:18 PM   #1
krishnakishorerhce
LQ Newbie
 
Registered: Jun 2013
Posts: 16

Rep: Reputation: Disabled
How to mount an NTFS external drive as a normal user automatically?


I had NTFS fuse bundle installed on my system. I tried to mount an Eternal Hard disk of NTFS file system as a normal user, it shows error you doesn't have priviliges to mount this volume but I can mount it as a Super user and use it.

I have made an entry in fstab file as shown below

/dev/sdb1 /mnt ntfs defaults 0 0

but of no use.

I want my external hard disk to get mounted automatically whenever I connect it to my PC.

Pls help. Thanks in advance.
 
Old 09-17-2013, 09:32 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
if the GUI is not mounting it for you, then you need to configure udev rules. sorry im not much help on how to do that, but google will be your friend.
 
Old 09-17-2013, 10:28 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,057

Rep: Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313Reputation: 1313
The defaults will be to mount as root user so if you want to be able to mount that partition as a user, you need to indicate that in your fstab entry. It isn't really clear to me whether you want it auto-mounted, to be able to mount as a normal user or both?
 
Old 09-18-2013, 12:43 AM   #4
krishnakishorerhce
LQ Newbie
 
Registered: Jun 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
I tried it by editing fstab file entry as

/dev/sdb1 /mnt ntfs defaults,user 0 0

and also to

/dev/sdb1 /mnt uid=500,gid=500 0 0

but of no use.


Quote:
Originally Posted by yancek View Post
It isn't really clear to me whether you want it auto-mounted, to be able to mount as a normal user or both?
I need solution to mount it automatically. it is good if you mention both.

Thank you
 
Old 09-18-2013, 06:01 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,618
Blog Entries: 26

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
Member Response

Hi,

As root edit the '/etc/fstab' file. I use this for everyone to have access for win7;
Code:
/dev/sdb2        /mnt/win7        ntfs-3g     fmask=111,dmask=000 1   0
Please note the use of 'ntfs-3g' in the above line.
You might want to consider not using the fmask & dmask the way I have sampled since security will/can be an issue;
Quote:
From fstab;
umask=nnn, dmask=nnn, fmask=nnnSets the user file creation mode mask, umask, the same for directories only, dmask and for files only, fmask. More detailed information about the fstab file can be found in the man page about Linux fstab
To understand fmask & dmask you can look at fstab or 'man fstab'. Plus 'man mount' will provide useful information to understand options.

Hope this helps!
 
  


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
LXer: Two Methods That Allow Ubuntu User to Mount Automatically NTFS Drive in Ubuntu 12.04 LXer Syndicated Linux News 0 05-17-2012 06:20 AM
How to mount an NTFS external drive vintage2010 Linux - Hardware 3 05-06-2011 10:57 AM
[SOLVED] How r/w mount external USB with NTFS automatically within GNOME on CentOS 5.6 PatDB Linux - Desktop 2 04-09-2011 11:56 AM
[SOLVED] is it possible to have my hard drive mount automatically(NTFS)? insanity99 Ubuntu 8 06-06-2010 08:05 AM
How to grant permission to mount ntfs file system for normal user m.parthiban Fedora 3 02-21-2010 09:17 AM


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