Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Tue Nov 12, 2019 12:31 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - FreeBSD 9 : Remount an already mounted filesystem without unmounting it
Author Message
Post subject: FreeBSD 9 : Remount an already mounted filesystem without unmounting it  |  Post Posted: Wed Feb 05, 2014 12:16 pm
Existing mounted filesystems and their options.

To remount an already mounted filesystem without unmounting it (in Linux world) is changing mount options in FreeBSD world.
Quote "man mount":
Quote:
-u The -u flag indicates that the status of an already mounted file
system should be changed. Any of the options discussed above
(the -o option) may be changed; also a file system can be changed
from read-only to read-write or vice versa. An attempt to change
from read-write to read-only will fail if any files on the file
system are currently open for writing unless the -f flag is also
specified. The set of options is determined by applying the
options specified in the argument to -o and finally applying the
-r or -w option.


Code:
# mount
/dev/da0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/da0p4 on /storage (ufs, local, journaled soft-updates)
devfs on /var/named/dev (devfs, local, multilabel)

The goal is to change the "/storage" filesystem mount option to add "noatime".
Code:
# mount -u -o rw,noatime /storage 
# mount
/dev/da0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/da0p4 on /storage (ufs, local, noatime, journaled soft-updates)
devfs on /var/named/dev (devfs, local, multilabel)


No unmounting, no reboot required.
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO