linux下文件系统变成只读的解决方法

linux下文件系统变成只读的解决方法

- 分区挂载失败的解决方法

在使用双系统或者虚拟机的时候,需要挂载window下的E、D、F等盘,可能会出现挂在失败,提示“Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the *ro* mount option.”
该问题是由于window的快速启动造成的,进入window关闭快速启动即可,方法可自行百度。也可以使用ntfsfinx工具修复:
sudo ntfsfix /待修复的分区,没有ntfsfix可以通过 sudo apt-get install ntfs-3g安装

- 分区只读解决方法

- 重新挂载

通过mount查看只读的分区 :

mount

显示

/dev/sdb3 on /media/zhangzhihao/F type fuseblk
(ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

ro表示只读,分区为/dev/sdb3 ,首先卸载分区,使用命令

umount /dev/sdb3

然后重新挂载分区

mount /dev/sdb3 /你想挂载到的目录

如果提示

The volume may be already mounted, or another software may use it
which could be identified for example by the help of the ‘fuser’
command.

执行

fuser -m /dev/sdb3

会显示当前占用该分区的进程id,执行

kill 显示的进程id

杀死进程重新挂载

  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值