來(lái)自那些年我踩過(guò)的坑
首先安裝了ntfs-3g,如果沒有安裝是識(shí)別不了的
# 首先判斷自己有沒有安裝
rpm -qa|grep ntfs
#安裝ntfs全家桶,這里裝了全家桶,下面的就不用重復(fù)安裝了
yum install -y ntfs*
報(bào)錯(cuò)提示:
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.)
我出現(xiàn)這個(gè)情況的原因是:雙系統(tǒng)使用中,因?yàn)閣indow與linux交替使用就會(huì)產(chǎn)生一些系統(tǒng)使用殘留。
解決方案就是修復(fù)硬盤
# 首先判斷自己有沒有安裝
rpm -qa|grep ntfsprogs
# 如果沒有安裝則安裝,先搜索一下yum源,查不到就換源
yum list |grep ntfsprogs
yum install -y ntfsprogs
# 輸入要修復(fù)的ntfs硬盤,Xx是自己的盤符
ntfsfix /dev/sdXx
# 重新掛載over
umount /dev/sdXx
mount /dev/sdXx /XX/xx