mount命令-手动挂载设备
格式:
mount [options] [-t fstype] [-o option] 设备 挂载点
mount -n -o remount,rw /
- Mount the file system and make it writeable
mount -uw /
- Make the filesystem read only again.
mount -ur /
常用选项 | [ options ] |
---|---|
-t | fstype(ext2、ext3、ext4、xfs、iso9660、smb等) |
-r | 只读挂载 |
-w | 读写 |
-L lable | 以卷标指定, LABLE="label" |
-U UUID | 以UUID指定挂载设备,UUID="UUID" |
-a | 自动挂载所有(/etc/fstab文件中)支持自动挂载的设备 |
--bind Dir1 Dir2 | 己经挂载了的文件,可以再次绑定其它目录上使用 |
-n |