submount.8

来自「linux下mount各种文件系统的程序submount的源代码」· 8 代码 · 共 151 行

8
151
字号
.\" $Header: /aolnet/dev/src/CVS/sgml/docbook-to-man/cmd/docbook-to-man.sh,v 1.1.1.1 1998/11/13 21:31:59 db3l Exp $.\".\"	transcript compatibility for postscript use..\".\"	synopsis:  .P! <file.ps>.\".de P!.fl\!!1 setgray.fl\\&.\".fl\!!0 setgray.fl			\" force out current output buffer\!!save /psv exch def currentpoint translate 0 0 moveto\!!/showpage{}def.fl			\" prolog.sy sed -e 's/^/!/' \\$1\" bring in postscript file\!!psv restore..de pF.ie     \\*(f1 .ds f1 \\n(.f.el .ie \\*(f2 .ds f2 \\n(.f.el .ie \\*(f3 .ds f3 \\n(.f.el .ie \\*(f4 .ds f4 \\n(.f.el .tm ? font overflow.ft \\$1...de fP.ie     !\\*(f4 \{\.	ft \\*(f4.	ds f4\"'	br \}.el .ie !\\*(f3 \{\.	ft \\*(f3.	ds f3\"'	br \}.el .ie !\\*(f2 \{\.	ft \\*(f2.	ds f2\"'	br \}.el .ie !\\*(f1 \{\.	ft \\*(f1.	ds f1\"'	br \}.el .tm ? font underflow...ds f1\".ds f2\".ds f3\".ds f4\"'\" t.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n.TH "SUBMOUNT" "8".SH "NAME"SUBMOUNT \(em automatically mounts and unmounts removable media devices..SH "SYNOPSIS".PP\fBsubmount\fR.PPA system for accessing removable media devices without manuallyremounting them between media changes..SH "DESCRIPTION".PPThis manual page briefly documents the\fBsubmount\fR       system..PP\fBSubmount\fR is a program that automaticallymounts removable media devices or other filesystems when the mountdirectory is accessed, and unmounts them when they are no longerin use.  It requires two parts: the subfs.o kernel module and thesubmountd program.  Submountd should never be accessed directly bythe user..PPTo invoke submount, use the mount(3) command, or edit therelevant entries in the fstab(5) file.  Devices mounted to usesubmount should use \fBsubfs\fP as the filesytem type,and add the option \fBfs=< true filesystem > \fP to thelist of options..PPeg. mount -t subfs /dev/scd0 /cdrom -o fs=iso9660,ro.PPTo edit the fstab(5) file, one should also remove the "user","owner" and "noauto" options.  eg..PP/dev/scd0 /cdrom udf:iso9660 ro,noauto,owner 0 0.PPbecomes.PP/dev/scd0 /cdrom subfs fs=udf:iso9660,ro 0 0.PPThe \fBfs=\fP can take an individual filesystem,a colon-seperated list of filesystems, which submountd will attmeptto mount in the order in which they appear in the list, or a built-inlist.  As of version 0.5, the available lists are \fBcdfss\fP     and \fBfloppyfss\fP, which include the filesystems most commonlyused on CD and floppy devices respectively.  You may also use\fBfs=auto\fP, in which case, submountd will attempt todetermine the filesystem by reading the device's superblock..PP\fBprocuid\fP can be added to the list of options if you wish to mountthe filesystem with the UID and GID numbers of the calling process.  Thiscan be useful for some security strategies..PPIf you want to mount nfs or another network filesystem, use thealternative program net-submountd by adding \fBprogram=/sbin/net-submountd\fPto the list of options.  The net-submountd program takes theoption \fBinterval=\fPXX where XX represents the time in secondssubmount will wait between attempts to unmount the filesystem.  Ifno value is give, net-submountd will default to a 15 second interval..PPThe net-submountd program is intended for use for simple network sharesonly, where editing /etc/auto.master and related files are a hassle ratherthan an opportunity to automate the configuration of many shares.  For complexnfs setups automount is, and will continue to be the appropriate tool.An example with nfs(5):.PP192.168.1.12:/myshare /mnt/myshare nfs rsize=8192,.....PPbecomes.PP192.168.1.12:/myshare /mnt/myshare subfs fs=nfs,program=/sbin/net-submount,.....SH "SEE ALSO".PPmount(3), fstab(5), nfs(5)..PPAdditional documentation may be found at \fI    http://submount.sourceforge.net\fP.SH "AUTHOR".PPThis manual page was written by Eugene S. Weiss yossarian@users.sourceforge.net.Permission isgranted to copy, distribute and/or modify this document underthe terms of the GNU General Public License, Version 2 anylater version published by the Free Software Foundation..\" created by instant / docbook-to-man, Mon 8, Dec 2003, 09:12

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?