Most of the time on newly created file systems of NFS filesystems we see error like below :
This is because file system is mounted as read only. In such scenario you have to mount it in read-write mode. Before that we will see how to check if file system is mounted in read only mode and then we will get to how to re mount it as a read write filesystem.
How to check if file system is read only
To confirm file system is mounted in read only mode use below command –
Grep your mount point in
cat /proc/mounts
and observer third column which shows all options which are used in mounted file system. Here ro
denotes file system is mounted read-only.
You can also get these details using
mount -v
command
In this output. file system options are listed in braces at last column.
Re-mount file system in read-write mode
To remount file system in read-write mode use below command –
Observe after re-mounting option
ro
changed to rw
. Now, file system is mounted as read write and now you can write files in it.Note : It is recommended tofsck
file system before re mounting it.
Sometimes there are some corrections needs to be made on file system which needs reboot to make sure there are no processes are accessing file system.
0 comments:
Post a Comment