1.syntax: mount [params] path1 path2
params: -t type of filesystem
-o [param1,param2...] other paramters
ro,rw ready only or read write
sync not use cache
async use cache
remount mount again
atime update access time after files are accessed
noatime not update access time after files are accessed
2.umount fie
syntax: umount path(mount point or device)
3.if device is busy, we count not umount it, but we can use following commond to check if the device is busy
a.check if there is any process is using the device
syntax: fuser -m /mnt(mount point)
b.check which file is being used
lsof /mont(mount point)
4.mount automatically when server is starting
add a new record in file /etc/fstab
syntax: mount -a mount all folder in file /etc/fstab
params: -t type of filesystem
-o [param1,param2...] other paramters
ro,rw ready only or read write
sync not use cache
async use cache
remount mount again
atime update access time after files are accessed
noatime not update access time after files are accessed
2.umount fie
syntax: umount path(mount point or device)
3.if device is busy, we count not umount it, but we can use following commond to check if the device is busy
a.check if there is any process is using the device
syntax: fuser -m /mnt(mount point)
b.check which file is being used
lsof /mont(mount point)
4.mount automatically when server is starting
add a new record in file /etc/fstab
syntax: mount -a mount all folder in file /etc/fstab
本文深入解析Linux系统中文件系统挂载与卸载的基本语法及使用方法,包括参数详解、自动挂载配置、检查设备是否忙碌的方法,以及如何在系统启动时自动挂载文件系统。
1万+

被折叠的 条评论
为什么被折叠?



