3.4Linux 文件系统挂载

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

猜你喜欢

转载自oracle-api.iteye.com/blog/2171807