Q. How do I remount partition under FreeBSD? How do I mount readonly partition as (remount) read write mode?
A. Linux or other Unixish oses need to pass -o remount option to mount command. However, FreeBSD does not require any special option to remount file system. It can use 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 following command (log in as a root user):
Freebsd Remount Command
Type the following command as the root user (superuser):
# mount -o rw /dev/ad0s1a /
OR
# mount -o rw /
Where,
- -o : Takes different options as follows:
- rw : Read write
- ro : Read only
Make sure you replace /dev/ad0s1a and / with appropriate values.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 3 comments… read them below or add one }
Your first example did not work for me on FreeBSD 6.1, but if I leave the device off (like in your second command), it does work properly as shown here:
frenzy:~# mount -o rw /dev/ad0s1a /mnt/ad0s1a.ufs/
mount: /dev/ad0s1a: Operation not permitted
frenzy:~# mount -o rw /mnt/ad0s1a.ufs/
frenzy:~#
Thanks for the tip (I’m a Linux geek, so these subtle differences are annoying)!
If you update an entry in fstab you can test it like this
mount -o remount /fstabmountpoint
This will remount ALL mount points mentioned in fstab that are automounted
mount -o remount -a
———————————————————————-
From http://linux.die.net/man/8/mount
mount -a [-t type] [-O optlist]
(usually given in a bootscript) causes all file systems mentioned in fstab (of the proper type and/or having or not having the proper options) to be mounted as indicated, except for those whose line contains the noauto keyword. Adding the -F option will make mount fork, so that the filesystems are mounted simultaneously.
(ii) When mounting a file system mentioned in fstab, it suffices to give only the device, or only the mount point.
That thing doesn’t work. In my case I needed to remount as noexec.
What works (on my freebsd 6) is:
mount -u -o noexec /tmp
Check the manpage for mount.
Mount -o remount,opts only works on Linux afaik.