官方文档是这么解释的:
在Unix系统中,所有可访问的文件都是被组织在一个文件树中,即文件层次结构(file hierarchy),其根为 /。mount命令用于把在某些设备上的文件系统附加到大文件树,这样的话,系统才可以访问这些设备上的文件。
mount命令的标准形式如下 :
mount -t type device dir
This tells the kernel to attach the filesystem found on device (which is of type type) at the directory dir.
可是,知道了mount的简单操作,我还是一头雾水,究竟什么是mount(概念)?执行这一命令的时候操作系统究竟发生了什么(动作)?为什么需要mount这样一个操作(场景)?
在Google了很久之后,结合这个回答和这个回答,稍微有了一些了解,结合自己的理解,整理如下:
参考:
https://unix.stackexchange.com/questions/3247/understanding-mount-as-a-concept-in-the-os
https://unix.stackexchange.com/questions/3192/what-is-meant-by-mounting-a-device-in-linux
https://linuxize.com/post/how-to-mount-and-unmount-file-systems-in-linux/
http://ultra.pr.erau.edu/~jaffem/tutorial/file_system_basics.htm