在 Linux 下查看 mount(挂载)状态 有多种常用方法,下面按使用场景给你整理:
mount 命令mount
或只显示某些类型:
mount | grep nfs
mount | grep ext4
cat /proc/mountscat /proc/mounts
✅ 内核真实挂载信息(比 mount 更底层)
df -hdf -h
显示:
常用于看磁盘是否挂载成功。
lsblklsblk
显示:
更详细:
lsblk -f
/etc/fstabcat /etc/fstab
⚠️ 这只是“配置”,不代表当前已挂载
可检查是否开机自动挂载。
mountpointmountpoint /data
输出:
is a mountpointis not a mountpointmount | grep nfs
showmount -e <server_ip>
dmesgdmesg | tail
看挂载失败原因(如 NFS 超时、文件系统错误)
| 目的 | 命令 |
|---|---|
| 当前挂载 | mount |
| 内核挂载 | cat /proc/mounts |
| 磁盘使用 | df -h |
| 块设备 | lsblk |
| 是否挂载点 | mountpoint |
| 配置文件 | cat /etc/fstab |
如果你能说明:
我可以给你更精准的命令和排查思路。