Centos7挂载的ntfs硬盘为只读,并且修改挂载硬盘权限报错

首先安装了ntfs-3g,如果没有安装是识别不了的

1
2
3
4
# 首先判断自己有没有安装
rpm -qa|grep ntfs
#安装ntfs全家桶,这里装了全家桶,下面的就不用重复安装了
yum install -y ntfs*
报错提示:
1
2
The disk contains an unclean file system (0, 0).
Falling back to read-only mount because the NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting.)

我出现这个情况的原因是:双系统使用中,因为window与linux交替使用就会产生一些系统使用残留。

解决方案就是修复硬盘

1
2
3
4
5
6
7
8
9
10
# 首先判断自己有没有安装
rpm -qa|grep ntfsprogs
# 如果没有安装则安装,先搜索一下yum源,查不到就换源
yum list |grep ntfsprogs
yum install -y ntfsprogs
# 输入要修复的ntfs硬盘,Xx是自己的盘符
ntfsfix /dev/sdXx
# 重新挂载over
umount /dev/sdXx
mount /dev/sdXx /XX/xx

无法挂载参考链接

本文地址 Centos7挂载的ntfs硬盘为只读,并且修改挂载硬盘权限报错

本文地址: https://github.com/maxzhao-it/blog/post/24424/