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

FAQ
It is currently Wed Aug 23, 2017 8:58 am


Discussions on RAM, DRAM, shared memory, NAS, SAN, RAID, backups, SCSI, IDE, UFS, UFS2, JFS, JFS2, EXT2, EXT3

Author Message
mandrei99
Post  Post subject: FreeBSD 9 : Remount an already mounted filesystem without unmounting it  |  Posted: Wed Feb 05, 2014 12:16 pm

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

FreeBSD 9 : Remount an already mounted filesystem without unmounting it

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.





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "FreeBSD 9 : Remount an already mounted filesystem without unmounting it"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD: fsck: Could not determine filesystem type

mandrei99

0

1759

Sat Feb 15, 2014 4:39 pm

mandrei99 View the latest post

There are no new unread posts for this topic. Linux: Show UUID of filesystem

mandrei99

0

720

Fri Feb 28, 2014 6:35 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD - Monitor geom disk i/o statistics using gstat/iostat

mandrei99

0

5052

Mon Mar 03, 2014 9:47 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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