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 ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Dummies Questions & Answers
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
3. 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
4. UNIX for Advanced & Expert Users
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
5. IP Networking
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. Linux
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
7. UNIX for Dummies Questions & Answers
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
8. Gentoo
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)
http://imageplay.net/img/tya22288136/IMG0204A.jpg (real_root - real panic)
The case of omitting real_root and... (1 Reply)
Discussion started by: Xcislav
1 Replies
9. Shell Programming and Scripting
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
LEARN ABOUT ULTRIX
umount
mount(8) System Manager's Manual mount(8)
Name
mount, umount - mount or unmount file systems
Syntax
/etc/mount [ options ] [ device ] [ directory ]
/etc/umount [ options ] [ device ] [ directory ]
Description
This is a general description of the command. Additional descriptions are provided to define the syntax and options for the NFS and UFS
file systems.
Each invocation of the command announces to the system that a file system is present on the device device. The file system may be local or
remote. File directory must exist as a directory file. It becomes the name of the newly mounted file system root.
If invoked without arguments, prints the list of mounted file systems.
Physically write-protected disks and magnetic tape file systems must be mounted read-only or an error will occur at mount time.
General users can only mount file systems with certain restrictions. For example, the user, other than the superuser, performing the mount
must own the directory directory. Furthermore, no users other than the superuser can execute or programs on the mounted file systems. In
addition, users other than the superuser cannot access block or special character devices such as on the mounted file systems.
The command announces to the system that the removable file system previously mounted on the specified directory is to be removed. Only
the person who mounted a particular file system or the superuser can unmount the file system again.
Options
-a Reads the file and mounts, or unmounts, all file systems listed there.
-f Fast unmount. The option has no meaning for local file systems and directories. However, for remote file system types (such
as NFS), the option causes the client to unmount the remotely mounted file systems and directories without notifying the
server. This can avoid the delay of waiting for acknowledgment from a server that is down.
-o options Specifies a string that is passed to the kernel and used by the specific file system's mount routine in the kernel. For spe-
cific options, refer to the file system-specific description, such as
-r Indicates that the file system is to be mounted read only. To share a disk, each host must mount the file system with the -r
option.
-t type Specifies the type of file system is being mounted. When used with the option, the option mounts all file systems of the given
type found in the file. For specific file system types, refer to the file system-specific description, such as
-v Tells what did or did not happen. (Verbose flag)
The options for are:
-a Unmounts all mounted file systems. It may be necessary to execute twice to accomplish unmounting of all mounted file systems.
-v Tells what did or did not happen. (Verbose flag)
Restrictions
Mounting corrupted file systems will crash the system.
Files
File systems information table
See Also
getmnt(2), mount(2), fstab(5), fsck(8), mount(8nfs), mount(8ufs)
mount(8)