115 lines · 2.9 KB · Text
RawDownload
.TH "9mount" "1" "23 July 2008" "9mount" "User commands".SH NAME9mount, 9bind, 9umount \- mount/unmount 9p filesystems.SH SYNOPSIS.B 9mount[ insuvx ] [ -a SPEC ] [ -c CACHE ] [ -d DEBUG ] [ -m MSIZE ] DIAL MOUNTPT.PP.B 9bindOLD NEW.PP.B 9umountMOUNTPT.SH DESCRIPTION.B 9mountmounts a 9p filesystem served at DIAL on MOUNTPT. MOUNTPT must bewritable by you and not sticky. DIAL is a dial string assuming one ofthe forms:.PPunix!SOCKET.brtcp!HOST[!PORT].brvirtio!CHANNEL.br-.PPwhere SOCKET is the name of a file representing a socket, HOST is ahostname, PORT is a port number or service name, and CHANNEL is avirtio channel name (currently ignored). - indicates that 9p messagesshould be read/written on stdin/stdout..B 9mounthas several options:.TP-imount the file system with your uid/gid.TP-ndry-run, print mount command to stderr but don't actually mount anything.TP-ssingle attach mode - all users accessing the mount point see the samefilesystem (by default they'll each see a unique attach).TP-uuse the 9P2000.u extensions.TP-vuse device mapping.TP-xexclusive access - other users cannot access the mount point.TP-a SPECSPEC determines which file tree to mount when attaching to file servers thatexport multiple trees.TP-c CACHEturns on caching using CACHE mode. Currently only.I loosecache mode is available, which is suitable for exclusive read-only mounts..TP-d DEBUGcomma seperated list of channels for which to enable debug output. Possiblechannels include: err, devel, 9p, vfs, conv, mux, trans, alloc, fcall..TP-m MSIZEspecifies the maximum length of a single 9p message in bytes..PP.B 9bindperforms a bind mount, making the tree visible at directory OLD also visibleat mount point NEW..PP.B 9umountunmounts a 9p filesystem previously mounted by you..SH ENVIRONMENT.TP$USERthe uname to provide to the server..SH EXAMPLES.TP9mount -i 'unix!/tmp/ns.'$USER'.:0/factotum' $HOME/n/factotummount p9p's factotum interface.TP9mount 'tcp!sources.cs.bell-labs.com' $HOME/n/sourcesimport plan 9's "sources".TP9mount -u -a/home/sqweek/mail 'tcp!wren!5640' $HOME/mailimport my maildir from my server(wren), being served by ufs.TP9mount -i 'tcp!wren' $HOME/n/wren; 9bind $HOME/n/wren/home/sqweek/mail $HOME/mailagain importing my maildir, this time serving via u9fs.SH BUGS.B 9mounttruncates user names and SPECs to 249 characters..B 9umountdoesn't know this, so you won't be able to unmount anythingoutside your home directory. But you probably never botherlogging out if your user name is that long..PP.B 9mountdoesn't update /etc/mtab..PP.B 9bindonly does a "shallow", non-recursive bind - any mounted filesystemsunder the OLD tree will not appear mounted in the NEW tree..PPIf you.B 9binda non-9p filesystem outside your home directory,.B 9umountwon't let you unmount it..SH AUTHORsqweek@gmail.com.SH SEE ALSO.BR mount (1)