開心生活站

位置:首頁 > IT科技 > 

linux,mount命令詳解

IT科技1.52W

1、mount命令功能:

mount命令是在Linux系統經常會使用到的命令,用於掛載Linux系統外的文件

2、語法:

mount [-hV]

mount -a [-fFnrsvw] [-t vfstype]

mount [-fnrsvw] [-o options [,...]] device | dir

mount [-fnrsvw] [-t vfstype] [-o options] device dir

3、用法:

-t vfstype 指定文件系統的類型,通常不必指定。mount 會自動選擇正確的類型。常用類型有:

光盤或光盤鏡像:iso9660

DOS fat16文件系統:msdos

Windows 9x fat32文件系統:vfat

Windows NT ntfs文件系統:ntfs

Mount Windows文件網絡共享:smbfs

UNIX(LINUX) 文件網絡共享:nfs

-o options 主要用來描述設備或檔案的掛接方式。常用的參數有:

loop:用來把一個文件當成硬盤分區掛接上系統

ro:採用只讀方式掛接設備

rw:採用讀寫方式掛接設備

iocharset:指定訪問文件系統所用字符集

device要掛接(mount)的設備。

dir設備在系統上的掛接點(mount point)。

linux mount命令詳解

標籤:linux 命令 mount