我曾经mount
显示已安装的驱动器,我不想看到不太有趣的驱动器(即非物理驱动器)。所以我曾经有一个脚本mnt
:
mount | grep -Ev 'type (proc|sysfs|tmpfs|devpts) '
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 8.04 下,只显示我ext3
和reiserfs
挂载点。该行实际上已被注释掉,现在我使用(对于 Ubuntu 12.04):
mount | grep -Ev 'type (proc|sysfs|tmpfs|devpts|debugfs|rpc_pipefs|nfsd|securityfs|fusectl|devtmpfs) '
Run Code Online (Sandbox Code Playgroud)
只显示我的ext4
和zfs
分区(我放弃了使用reiserfs
)。
现在我正在为 Ubuntu 14.04 做准备,脚本必须再次扩展(cgroup,pstore)。有没有更好的方法来做到这一点而不必扩展脚本?我只对安装和安装网络驱动器 ( nfs
, cifs
) 的物理磁盘感兴趣。