在 Linux 中,**mount 成只读(read-only)**通常有以下几种常见原因,从最常见到较少见依次说明:
最常见的人为原因:
mount -o ro /dev/sdb1 /mnt
或 /etc/fstab 中写了:
/dev/sdb1 /mnt ext4 ro 0 0
✅ 解决:
mount -o remount,rw /mnt
或修改 fstab 把 ro 改成 rw
当文件系统检测到不一致(如断电、强制拔盘、I/O 错误):
errors=remount-ro查看方式:
dmesg | tail
常见信息:
EXT4-fs error (device sdb1): ...
Remounting filesystem read-only
✅ 解决:
umount /mnt
fsck -y /dev/sdb1
mount /mnt
例如:
iso9660)✅ 解决:
NFS 服务端可能导出为:
/export *(ro,sync)
客户端即使写 rw 也会被服务端拒绝。
✅ 检查:
mount | grep nfs
cat /proc/mounts | grep nfs
SMART 报错、坏块、USB 不稳定时:
✅ 检查:
smartctl -a /dev/sdb
dmesg | grep error
例如:
mount --bind 到只读目录mount | grep 你的挂载点
dmesg | tail
cat /proc/mounts | grep 你的设备
如果你愿意,可以告诉我:
mount 和 dmesg 的输出我可以帮你精准判断是哪一种原因。