Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sbin/mount Pull up revisions 1.27-1.28 (requested by fa...



details:   https://anonhg.NetBSD.org/src/rev/b2337e902833
branches:  netbsd-1-4
changeset: 470754:b2337e902833
user:      he <he%NetBSD.org@localhost>
date:      Fri Jul 07 17:59:21 2000 +0000

description:
Pull up revisions 1.27-1.28 (requested by fair):
  Add an EXAMPLES section to the mount(8) manual page.
  Fixes PR#10232.

diffstat:

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

diffs (61 lines):

diff -r f0115c7cf3fc -r b2337e902833 sbin/mount/mount.8
--- a/sbin/mount/mount.8        Fri Jul 07 17:38:27 2000 +0000
+++ b/sbin/mount/mount.8        Fri Jul 07 17:59:21 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mount.8,v 1.24 1998/12/01 23:20:43 kenh Exp $
+.\"    $NetBSD: mount.8,v 1.24.2.1 2000/07/07 17:59:21 he Exp $
 .\"
 .\" Copyright (c) 1980, 1989, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -296,6 +296,43 @@
 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
@@ -304,6 +341,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