Force readonly mount always.

Thread Tools Search this Thread
Operating Systems Linux Debian Force readonly mount always.
# 1  
Old 11-11-2009
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  
Old 11-11-2009
You may want to export the partitions in question as NFS read-only (?).
# 3  
Old 11-12-2009
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  
Old 12-05-2009
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..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to mount nas-share using generated credentials (mount EC 13,32)

Heyas At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it. EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...). Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies

2. Gentoo

Help & lead me to the end. VFS: readonly/fs couldn't mount.

In a case of root=/dev/ram0 real_root=/dev/sda2 No filesystem could mount root, tried: ext3 ext2... Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) (real_root - real panic) The case of omitting real_root and... (1 Reply)
Discussion started by: Xcislav
1 Replies

3. UNIX for Dummies Questions & Answers

Set readonly

I'm confused using hdparm -r1 /dev/sda9 although it shows readonly set to 1 (on) - I can touch a file and edit and save it. why? (7 Replies)
Discussion started by: daWonderer
7 Replies

4. Linux

root filesystem goes readonly

I see this when tried to create a dir using root fstab entries are pretty normal tried to remount with rw but it is still the same block device /dev/sda2 is write-protected ---------- Post updated at 04:57 PM ---------- Previous update was at 03:51 PM ---------- fstab entry ... (4 Replies)
Discussion started by: robo
4 Replies

5. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

6. UNIX for Advanced & Expert Users

mount -t cifs permission denied by mount -t smbfs works fine

I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password="" mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies

7. Shell Programming and Scripting


After I issused $readonly THIN. How to change back the varaibale from read only to writeable? (1 Reply)
Discussion started by: Paris Heng
1 Replies

8. UNIX for Dummies Questions & Answers

Readonly access

Hi, I have create a user using the following command useradd -d /home/rozan -s /bin/bash -c "Rozan ahmed" -g dba rozan I would like to give her only the read only access to $BDUMP_HOME/alert.log file The owner of the file is oracle:oinstall Regards Faruque (13 Replies)
Discussion started by: faruque.ahmed
13 Replies

9. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

Hi... question is this: How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure. ... (4 Replies)
Discussion started by: soulshaker
4 Replies
Login or Register to Ask a Question