LinuxQuestions.org
Help answer threads with 0 replies.
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 12-16-2007, 06:34 PM   #1
emymcse
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
changing /tmp mount on fstab file with noexc


Hello,

I need to mount /tmp as a separate drive with noexec and /tmp already mounted on /etc/fstab

LABEL=/tmp /tmp ext3 defaults 1 2
/tmp /var/tmp ext3 defaults,bind,noauto 0 0

if I change the options from defaults,bind,noauto to loop,noexec,nosuid,rw without unmout /tmp , dose these change take effect at the moment ? or I have to unmout and mount /tmp again ?

also what dose these two lines mean :

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/sda6 1035660 42180 940872 5% /tmp
/tmp 1035660 42180 940872 5% /var/tmp

why /tmp mounted to /var/tmp ?? I'm really confused !

Thanks
 
Old 12-16-2007, 06:54 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Change settings in fstab, then run 'mount /tmp -o remount' should do if nothing is using /tmp ('fuser /tmp' or 'lsof -w -n +D /tmp'). /tmp and /var/tmp have comparable functions, that may be a reason why it's mounted that way.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
Changing Fstab in ubuntu to mount vfat drive mikeymorgan Linux - Newbie 13 06-23-2005 08:50 AM
What process is changing /etc/fstab and deleting my swap mount? ffrr Linux - Software 8 03-18-2005 10:16 PM
Create file using 'touch ./tmp.$$', file tmp.3941 is created, why? huangyanfeng Linux - General 1 04-13-2004 04:36 AM


All times are GMT -5. The time now is 07:23 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