How do I remount partition on FreeBSD operating systes? How do I mount/remount read-only partition in read-write mode without rebooting the systems?
Linux or other Unixish operating systems need to pass the -o remount option to the mount(8) command to remount partition. However, FreeBSD does not require any special option to remount file system. It can use your standard mount command. The mount utility calls the mount(2) system call to prepare and graft a special device or the remote node (rhost:path aka NFS) on to the file system tree at the point node. For example, if your file system is mounted in read only mode then you can remount it using the following command. First, login as root user.
Freebsd remount disk command example
Type the following command as the root user (superuser):
# mount -o rw /dev/ad0s1a /
# mount -o rw /
- -o : Takes different options as follows:
- rw : Read write mount.
- ro : Read only mount.
Make sure you replace /dev/ad0s1a and / with appropriate values. See FreeBSD mount command man page for more information.