Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount Add example text to answer PR 10232.



details:   https://anonhg.NetBSD.org/src/rev/1e3aee128cda
branches:  trunk
changeset: 494501:1e3aee128cda
user:      fair <fair%NetBSD.org@localhost>
date:      Fri Jul 07 09:25:36 2000 +0000

description:
Add example text to answer PR 10232.

diffstat:

 sbin/mount/mount.8 |  41 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 40 insertions(+), 1 deletions(-)

diffs (62 lines):

diff -r a8225b7d144a -r 1e3aee128cda sbin/mount/mount.8
--- a/sbin/mount/mount.8        Fri Jul 07 08:44:16 2000 +0000
+++ b/sbin/mount/mount.8        Fri Jul 07 09:25:36 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mount.8,v 1.26 2000/06/15 22:36:07 fvdl Exp $
+.\"    $NetBSD: mount.8,v 1.27 2000/07/07 09:25:36 fair Exp $
 .\"
 .\" Copyright (c) 1980, 1989, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -308,6 +308,44 @@
 Fast File System (FFS) are described in the
 .Xr mount_ffs 8
 manual page.
+.Pp
+The particular type of filesystem in each partition of a disk can
+be found by examining the disk label with the
+.Xr disklabel 8
+command.
+.Sh EXAMPLES
+.Pp
+Some useful examples:
+.Pp
+.Bl -hang -offset indent -width "MS-DOS"
+.It Tn CD-ROM
+.br
+mount -t cd9660 -r /dev/cd0a /cdrom
+.It Tn MS-DOS
+.br
+mount -t msdos /dev/fd0a /floppy
+.It Tn NFS
+.br
+mount nfs-server-host:/directory/path /mount-point
+.El
+.Pp
+The "noauto" directive in
+.Pa /etc/fstab
+can be used to make it easy to manually mount and unmount removeable
+media using just the mountpoint filename, with an entry like this:
+.Pp
+.Dl
+/dev/cd0a  /cdrom  cd9660 ro,noauto 0 0
+.Pp
+That would allow a simple command like
+.Qq mount /cdrom
+or
+.Qq umount /cdrom
+for media using the
+.Tn ISO-9660
+filesystem format in the first
+.Tn CD-ROM
+drive.
 .Sh FILES
 .Bl -tag -width /etc/fstab -compact
 .It Pa /etc/fstab
@@ -316,6 +354,7 @@
 .Sh SEE ALSO
 .Xr mount 2 ,
 .Xr fstab 5 ,
+.Xr disklabel 8 ,
 .Xr mount_ados 8 ,
 .Xr mount_cd9660 8 ,
 .Xr mount_ext2fs 8 ,



Home | Main Index | Thread Index | Old Index