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

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。