今天在linux下打開win的NTFS硬盤總是提示出錯了,而且是全部的NTFS盤都出錯,其中sda1錯誤顯示如下:
Error mounting /dev/sda1 at /media/wangbo/24F02EECF02EC3C0: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/wangbo/24F02EECF02EC3C0"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda1': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.
恩,掛載出錯,好像是因為win8的狀態是高級休眠,試着使用ntfsfix修復一下,
如果沒有安裝得先安裝,執行
sudo apt-get install ntfs-3g
因為我已經安裝過了,所以。。。
[sudo] password for wangbo: Reading package lists... Done Building dependency tree Reading state information... Done ntfs-3g is already the newest version. The following packages were automatically installed and are no longer required: gir1.2-appindicator3-0.1 gir1.2-javascriptcoregtk-3.0 gir1.2-webkit-3.0 gir1.2-xkl-1.0 python3-cairo python3-crypto python3-gi-cairo python3-icu python3-keyring python3-pyicu python3-secretstorage Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
安裝好后,對原來掛載出錯的NTFS盤分別執行
sudo ntfsfix /dev/sda1
sudo ntfsfix /dev/sda8
修復分區錯誤,結果呢,
修復sda8的時候,成功修復。
wangbo@Idina:~/temp$ sudo ntfsfix /dev/sda8 Mounting volume... The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. FAILED Attempting to correct errors... Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... OK Processing of $MFT and $MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ($LogFile)... OK Checking the alternate boot sector... OK NTFS volume version is 3.1. NTFS partition /dev/sda8 was processed successfully.
但是在修復sda1的時候,因為win8高級休眠,修復失敗了。。。
wangbo@Idina:~/temp$ sudo ntfsfix /dev/sda1 Mounting volume... Windows is hibernated, refused to mount. FAILED Attempting to correct errors... Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... OK Processing of $MFT and $MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ($LogFile)... OK Windows is hibernated, refused to mount. Remount failed: Operation not permitted
恩,解決辦法,進win8,關閉快速啟動,恩,對,關了它就ok
關閉辦法是控制面板,在電源管理中,選擇關閉蓋子的功能,更改不能更改的選項,去掉快速啟動的鈎,nice,好了,重啟進linux,ok