Module Name: src
Committed By: wiz
Date: Sun Aug 12 17:13:34 UTC 2012
Modified Files:
src/share/man/man5: fstab.5
Log Message:
Add examples for NAME, both with gpt and without.
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/share/man/man5/fstab.5
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man5/fstab.5
diff -u src/share/man/man5/fstab.5:1.41 src/share/man/man5/fstab.5:1.42
--- src/share/man/man5/fstab.5:1.41 Mon Jun 11 23:28:19 2012
+++ src/share/man/man5/fstab.5 Sun Aug 12 17:13:34 2012
@@ -1,4 +1,4 @@
-.\" $NetBSD: fstab.5,v 1.41 2012/06/11 23:28:19 christos Exp $
+.\" $NetBSD: fstab.5,v 1.42 2012/08/12 17:13:34 wiz Exp $
.\"
.\" Copyright (c) 1980, 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)fstab.5 8.1 (Berkeley) 6/5/93
.\"
-.Dd June 11, 2012
+.Dd August 12, 2012
.Dt FSTAB 5
.Os
.Sh NAME
@@ -336,6 +336,21 @@ configuration file.
.It Pa /usr/share/examples/fstab/
Some useful configuration examples.
.El
+.Sh EXAMPLES
+To use
+.Dq NAME
+on a non-GPT disk, use:
+.Bd -literal
+NAME=sb2k5Root/a / ffs rw,log 1 1
+NAME=sb2k5Root/b none swap sw,dp 0 0
+.Ed
+For a
+.Xr gpt 8
+disk, use:
+.Bd -literal
+NAME=firstpartition / ffs rw,log 1 1
+NAME=secondpartition none swap sw,dp 0 0
+.Ed
.Sh SEE ALSO
.Xr getfsent 3 ,
.Xr getfsspecname 3 ,