Sponsored Content
Full Discussion: Set readonly
Top Forums UNIX for Dummies Questions & Answers Set readonly Post 302610927 by daWonderer on Thursday 22nd of March 2012 03:28:25 AM
Old 03-22-2012
Quote:
Originally Posted by Corona688
Setting read-only on a mounted disk tears the floor out from under the operating system, because you're telling the disk itself, not OS, to act in a read-only fashion.
I don't understand.
If a program tries to write on a disk it doesn't call a system function to get if it is writeenabled? why it doesn't check for this disk setting too?

Quote:
I suspect it would cause write-errors much later, not immediate 'permission denied'. That's if it realizes the write failed at all -- if it doesn't, very inexplicable behavior and crashes are probably in the near future when the contents on disk end up having less and less resemblance to what the kernel believes they should
I tested the creation and editing of a file and OS told me the file is there and changed. After restart the file was still there.

I'll check mount to set readonly flag..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Making files readonly with vi?

Hi, I'm new at this whole Unix thing, but definately learning (lots of fun)... and I was wondering - how do you make a file read-only with vi? I don't mean how do you load up vi in read-only mode, but how do you save a file (or flag a file, or whatever) in vi to read-only? How do you make it... (2 Replies)
Discussion started by: Flyguy
2 Replies

2. 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

3. UNIX for Advanced & Expert Users

how to unset the readonly variable

Hi All, May be this is a very simple question... $ b=8 $ readonly b $ echo $b 8 $ b=90 -bash: b: readonly variable $ unset b -bash: unset: b: cannot unset: readonly variable I m not able to change the readonly mode of variable b Please help me out.. Thanks Nidhi (2 Replies)
Discussion started by: Nidhi2177
2 Replies

4. Shell Programming and Scripting

Readonly

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

5. Debian

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... (3 Replies)
Discussion started by: thegeek
3 Replies

6. AIX

How to make LOGNAME writeable? It is set as READONLY in .profile

LOGNAME variable is set as READONLY in .profile. I want to make it WRITEABLE so that I can modify the LOGNAME values programatically/throush shell programs. Thanks, Guru (1 Reply)
Discussion started by: gurubbc
1 Replies

7. 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

8. Shell Programming and Scripting

removing readonly behaviour from variable

Hi, I am new to shell programming. I just wanted to know if I set a variable to readonly. How do I revert it back to normal. name="some_name" readonly name Now I want to make name variable back to it normal, on which I can perform write operation too. Thanks (3 Replies)
Discussion started by: dearvivekkumar
3 Replies
quotacheck(1M)						  System Administration Commands					    quotacheck(1M)

NAME
quotacheck - ufs file system quota consistency checker SYNOPSIS
quotacheck [-fp] [-v] filesystem... quotacheck -a [-fpv] DESCRIPTION
quotacheck examines each mounted ufs file system, builds a table of current disk usage, and compares this table against the information stored in the file system's disk quota file. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated. filesystem is either a file system mount point or the block device on which the file system resides. quotacheck expects each file system to be checked to have a quota file named quotas in the root directory. If none is present, quotacheck will not check the file system. quotacheck accesses the character special device in calculating the actual disk usage for each user. Thus, the file systems that are checked should be quiescent while quotacheck is running. OPTIONS
The following options are supported: -a Check the file systems which /etc/mnttab indicates are ufs file systems. These file systems must be read-write mounted with disk quotas enabled, and have an rq entry in the mntopts field in /etc/vfstab. -f Force check on file systems with logging enabled. Use in combination with the -p option. -p Check quotas of file systems in parallel. For file systems with logging enabled, no check is performed unless the -f option is also specified. -v Indicate the calculated disk quotas for each user on a particular file system. quotacheck normally reports only those quotas modi- fied. USAGE
See largefile(5) for the description of the behavior of quotacheck when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes). FILES
/etc/mnttab Mounted file systems /etc/vfstab List of default parameters for each file system ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
edquota(1M), quota(1M), quotaon(1M), repquota(1M), attributes(5), largefile(5), quotactl(7I), mount_ufs(1M) SunOS 5.10 31 Jul 1998 quotacheck(1M)
All times are GMT -4. The time now is 08:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy