很奇怪的问题,由以下方法解决:
DtQLinux联盟
DtQLinux联盟
1、mount:
DtQLinux联盟
用于查看哪个模块输入只读,一般显示为:
DtQLinux联盟
DtQLinux联盟
/dev/hda1 on / type ext3 (rw)
DtQLinux联盟
none on /proc type proc (rw)
DtQLinux联盟
usbdevfs on /proc/bus/usb type usbdevfs (rw)
DtQLinux联盟
none on /dev/pts type devpts (rw,gid=5,mode=620)
DtQLinux联盟
/dev/hda5 on /home type ext3 (rw)
DtQLinux联盟
none on /dev/shm type tmpfs (rw)
DtQLinux联盟
/dev/hda2 on /usr/local type ext3 (rw)
DtQLinux联盟
/dev/nb1 on /EarthView/RAW type ext3 (ro)
DtQLinux联盟
DtQLinux联盟
2、如果发现有ro,就重新mount,或者umount以后再remount
DtQLinux联盟
DtQLinux联盟
3、umount /dev/nb1
DtQLinux联盟
如果发现有提示“device is busy”,找到是什么进程使得他busy
DtQLinux联盟
DtQLinux联盟
fuser -m /mnt/data 将会显示使用这个模块的pid
DtQLinux联盟
fuser -mk /mnt/data 将会直接kill那个pid
DtQLinux联盟
DtQLinux联盟
然后重新mount即可。
DtQLinux联盟
DtQLinux联盟
4、还有一种方法是直接remount,命令为
DtQLinux联盟
DtQLinux联盟
mount -o rw,remount /mnt/data 没有用过,看到网络上有这么写。
DtQLinux联盟
DtQLinux联盟
都是网上找的资料,第四种方法我试过了可以。
相关文章
- linux 服务器忽然变成只读文件系统
- 离线Linux/openEuler服务器指定本地yum仓库-出现这个提示是正常的,不用担心。这条信息告诉你的是,ISO镜像文件以只读模式挂载到了文件系统上,这意味着你不能在挂载的ISO文件上进行写操作,但这对于我们的需求来说是完全没问题的
- linux系统提示只读文件系统,无法创建文件
- 嵌入式Linux ubi文件系统制作、分区设置、只读文件系统,uboot启动参数root
- 解决ntfs格式的移动硬盘mount到Linux下时变成只读文件系统的问题
- Linux文件系统,ntfs分区显示只读文件系统,提示超级快损坏
- linux常见故障一:linux 文件系统变只读
- linux常见故障一:linux 文件系统变只读
- 解决linux中 文件系统 移植,为什么根文件系统是只读的问题!!
- linux下U盘变成只读文件系统的修复