语法:mount <参数> /dev/sda3(要挂载的分区) /mnt(挂载点)
参数:
-t 指定文件系统的类型
-0 指定挂载选项
参数 | 示例 | 作用 |
---|---|---|
ro ,rw | dev/sda3 -o ro /dev/sda3 /mnt | 以只读或读写形式挂载,默认是rw |
sync | mount -o rw,sync /dev/sda3 /mnt | 代表不使用缓存,而是对所有操作直接写入磁盘 |
async | …….. | 代表使用缓存,默认是async |
noatime | …….. | 每次文件时不跟新文件的访问时间 |
atime | ……… | 每次访问文件时更新文件的访问时间 |
remount | ……… | 重新挂载文件系统 |
umount | ……….. | 卸载已经挂载的文件系统 |