Ubuntu mount 2.27.1 命令详解


挂载文件系统。

另请参阅: tmpfs 临时文件系统     umount

基本用法     详细用法


			

基本语法

mount [-lhV]
 
mount -a [options]
 
mount [options] [--source] <source> | [--target] <directory>
 
mount [options] <source> <directory>
 
mount <operation> <mountpoint> [<target>]
			

Options 选项

参数 EN 解释 中文翻译 备注
-a, --all mount all filesystems mentioned in fstab 挂载 fstab 中提到的所有文件系统
-c, --no-canonicalize don't canonicalize paths 不规范化路径
-f, --fake fork off for each device (use with -a) 分叉每设备 (与 -a 一起使用)
-T, --fstab <path> alternative file to /etc/fstab /etc/fstab 的替代文件
-i, --internal-only don't call the mount.<type> helpers 不调用 mount.<type> 帮助程序
-l, --show-labels show also filesystem labels 还展示文件系统标签
-n, --no-mtab don't write to /etc/mtab 不写入 /etc/mtab
-o, --options <list> comma-separated list of mount options 逗号分隔挂载选项列表
-O, --test-opts <list> limit the set of filesystems (use with -a) 限制文件系统集 (与 -a 一起使用)
-r, --read-only mount the filesystem read-only (same as -o ro) 以只读方式挂载文件系统 (如同 -o ro)
-t, --types <list> limit the set of filesystem types 限制文件系统类型集
--source <src> explicitly specifies source (path, label, uuid) 明确指定源 (路径 标签 UUID)
--target <target> explicitly specifies mountpoint 明确指定挂载点
-v, --verbose say what is being done 说正在做什么
-w, --rw, --read-write mount the filesystem read-write (default) 以读写方式挂载文件系统 (默认)
-h, --help display this help and exit 显示此帮助并退出
-V, --version output version information and exit 输出版本信息并退出

Source 源

参数 EN 解释 中文翻译 备注
-L, --label <label> synonym for LABEL=<label> 同义词 LABEL=<label>
-U, --uuid <uuid> synonym for UUID=<uuid> 同义词 UUID=<uuid>
LABEL=<label> specifies device by filesystem label 通过文件系统标签指定设备
UUID=<uuid> specifies device by filesystem UUID 通过文件系统 UUID 指定设备
PARTLABEL=<label> specifies device by partition label 通过分区标签指定设备
PARTUUID=<uuid> specifies device by partition UUID 通过分区 UUID 指定设备
<device> specifies device by path 通过路径指定设备
<directory> mountpoint for bind mounts (see --bind/rbind) 用于绑定挂载的挂载点 (见 --bind/rbind)
<file> regular file for loopdev setup 用于 loopdev 设置的常规文件

Operations 操作

参数 EN 解释 中文翻译 备注
-B, --bind mount a subtree somewhere else (same as -o bind) 在其它地方挂载子树 (如同 -o bind)
-M, --move move a subtree to some other place 将子树移到其它地方
-R, --rbind mount a subtree and all submounts somewhere else 挂载子树, 和在其它地方挂载所有子挂载
--make-shared mark a subtree as shared 将子树标记为共享
--make-slave mark a subtree as slave 把子树标记为从属
--make-private mark a subtree as private 把子树标记为私有
--make-unbindable mark a subtree as unbindable 把子树标记为不可绑定
--make-rshared recursively mark a whole subtree as shared 把整个子树递归标记为共享
--make-rslave recursively mark a whole subtree as slave 把整个子树递归标记为从属
--make-rprivate recursively mark a whole subtree as private 把整个子树递归标记为私有
--make-runbindable recursively mark a whole subtree as unbindable 把整个子树递归标记为不可绑定

基本用法

功能 命令 文字解释 示例 示例解释
版本 mount -V 展示版本信息
mount --version
帮助 mount -h 展示帮助信息
mount --help

 

版权声明: 本文为独家原创稿件,版权归 乐数软件 ,未经许可不得转载。