2. Mount
2.1 mount /dev/sdb2 /mnt/
mount without any option will list all the mount file system
-t filesystemTYPE
-o optional,sepeatede by ,
ro/rw
sync no cache when writing data to disk
async default
noatime do not update file access time
atime
remount
3.Umount
3.1 umount /dev/sdb3 & umount /mnt
makes no difference.
3.2 fuser -m /mnt list which process is using the file system
3.3 lsof /mnt list all the opening file of system.
4. Mount auto
4.1 modify /etc/fstab file. each line.
4.2 Format
/dev/sdb3 /mnt ext4 default
label will replace /dev/sdb3 0.0 (dump & fsck), mount -a will mount all the lists line of file /etc/fstab
本文详细介绍了Linux环境下文件系统的挂载与卸载操作,包括如何使用mount命令进行挂载,不同的挂载选项如ro、rw、sync、async等的作用,以及如何通过修改fstab实现自动挂载。同时,文章还讲解了umount命令的使用方法,以及如何检查哪些进程正在使用文件系统。

2261

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



