在 Gentoo 中,我记得有一个单独的/etc/init.d条目用于挂载网络驱动器(即与本地驱动器分开)。在 Ubuntu 中,有umountnfs.sh, 在关机期间使用(以确保在网络仍然可用时干净卸载),并且可以使用它卸载所有(当前安装的)网络驱动器。
/etc/init.d
umountnfs.sh
但是,我缺少一种快速的方法
/etc/fstab
与单行 shell hack 相比,我更喜欢维护的 3rd 方解决方案。
nfs mount cifs
cifs ×1
mount ×1
nfs ×1