Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-22-2010, 11:47 PM   #1
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 82

Rep: Reputation: 19
/etc/fstab question

I have a partition mounted as following in my /etc/fstab

/dev/sdb1 /mnt/tmp ext4 defaults 0 0
This makes it mount for root after boot/login. Normal user cannot use it.

Will changing it to
/dev/sdb1 /mnt/tmp ext4 auto,user,rw 0 0
make it mount for the user after boot/login?

Specifically, when are devices mentioned in /etc/fstab mounted? During boot as root or at login as user?

Old 07-22-2010, 11:58 PM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Assuming you want it automatically mounted at boot time, the fstab entry looks fine.

You probably just need to change the permissions:

chmod aog+w /mnt/tmp
Have a look at the fstab man page for more information.

Old 07-23-2010, 01:52 AM   #3
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
As per the previous poster - remember that your fstab is meant to persist your filesystem mounts in the event of a reboot.

This is not related to any of your users on a reboot. Thus irrespective of who reboots the machine; your original entry is still valid and the the mount will always happen.

What you can control is the permissions to that filesystem on a per user basis.


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
fstab question drjay1627 Linux - Newbie 6 10-01-2009 12:45 PM
/etc/fstab question yenonn Linux - Newbie 1 07-19-2006 11:27 PM
A question regarding fstab trainee Slackware 6 05-22-2005 02:03 PM
fstab question cjstm Linux - Newbie 1 12-12-2004 02:46 PM
fstab question phoenix99 Linux - Newbie 3 06-29-2004 01:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration