The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Debian
.
grep unix.com with google



Debian Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-11-2009
Registered User
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 618
Force readonly mount always.

I would want one of my partition to be mounted read only always... How to do that ?

1. /etc/fstab

I know that, in options we can give ro -- so when the machine boots up or 'mount -a' it will be mounted read only. But i dont want that to be mounted when machine boots up.

We will mount that when only required !

2. announcing all users

I can announce all users to use ro mount always, but that is not practical as they may not do it.

As there is sensible data, which for sure we will use only for reading..

Finally, How to force read only mount always for a specific partition ?
  #2 (permalink)  
Old 11-11-2009
Registered User
 

Join Date: Dec 2008
Location: Switzerland
Posts: 257
You may want to export the partitions in question as NFS read-only (?).
  #3 (permalink)  
Old 11-12-2009
Registered User
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 618
I can take this one of the suggestion, but it would really be good to get some other good solution.

Bcoz, basically NFS is meant for some other purpose.
  #4 (permalink)  
Old 12-05-2009
gaurav1086's Avatar
Registered User
 

Join Date: Nov 2009
Location: india
Posts: 209
Hello, seeing that mount can only be done as root .
you can simply remove that entry from fstab.

Last edited by gaurav1086; 12-26-2009 at 04:04 AM..
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File owned by oracle user and dba group need readonly access to other users groosha Security 2 09-25-2009 04:41 PM
Readonly Paris Heng Shell Programming and Scripting 1 06-07-2009 10:54 AM
how to unset the readonly variable Nidhi2177 UNIX for Advanced & Expert Users 2 09-12-2007 06:35 AM
Readonly access faruque.ahmed UNIX for Dummies Questions & Answers 13 01-31-2007 09:25 AM
Making files readonly with vi? Flyguy UNIX for Dummies Questions & Answers 2 11-15-2003 06:52 AM



All times are GMT -4. The time now is 02:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0