summaryrefslogtreecommitdiffstats
path: root/sbin/mount/mount.8
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-21 23:34:04 +0000
committerjkh <jkh@FreeBSD.org>1996-07-21 23:34:04 +0000
commitc7085060925fdf483fee64aa03f20d3a2d3e0b02 (patch)
tree731b8d701580f8a15625ca9abd05be5d1dbfda84 /sbin/mount/mount.8
parentc6af739d2a68ea292932278921f1cea664a53706 (diff)
downloadFreeBSD-src-c7085060925fdf483fee64aa03f20d3a2d3e0b02.zip
FreeBSD-src-c7085060925fdf483fee64aa03f20d3a2d3e0b02.tar.gz
I have added a new option -p to the mount command. This was
inspired by SunOS version of mount which uses option -p to indicate that the mount information should be printed in fstab format. This is a neat way to create a new fstab file to use later when one has modified the mount points or mount options or added or removed mount some mount points. You just type mount -p > /etc/fstab.new and there is your new fstab file ready to be used though you will of course have to add any necessary noauto flags manually. [Committers note: This also seems to do the wrong thing for AMD mounts, but in the more average case this is a nifty feature nonetheless and one can always edit the bogus entries out] Submitted-By: Jukka Ukkonen <jau@jau.csc.fi>
Diffstat (limited to 'sbin/mount/mount.8')
-rw-r--r--sbin/mount/mount.810
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8
index b141b75..3654075 100644
--- a/sbin/mount/mount.8
+++ b/sbin/mount/mount.8
@@ -39,13 +39,13 @@
.Nd mount file systems
.Sh SYNOPSIS
.Nm mount
-.Op Fl adfruvw
+.Op Fl adfpruvw
.Op Fl t Ar ufs | lfs | external_type
.Nm mount
-.Op Fl dfruvw
+.Op Fl dfpruvw
.Ar special | node
.Nm mount
-.Op Fl dfruvw
+.Op Fl dfpruvw
.Op Fl o Ar options
.Op Fl t Ar ufs | lfs | external_type
.Ar special node
@@ -167,6 +167,10 @@ to execute the equivalent of:
.Bd -literal -offset indent
/sbin/mount_mfs -o nosuid -N -s 4000 /dev/dk0b /tmp
.Ed
+.It Fl p
+Print mount information in fstab format. Implies also the
+.Fl v
+option.
.It Fl r
The file system is to be mounted read-only.
Mount the file system read-only (even the super-user may not write it).
OpenPOWER on IntegriCloud