歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

雙系統訪問window盤符出錯

今天在linux下打開win的NTFS硬盤總是提示出錯了,而且是全部的NTFS盤都出錯,其中sda3錯誤顯示如下:

Error mounting /dev/sda3 at /media/struggle6688/164AFCB44AFC91AB: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/struggle6688/164AFCB44AFC91AB"'

exited with non-zero exit status 14: Windows is hibernated, refused to mount.

Failed to mount '/dev/sda2': 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.

掛載出錯,好像是因為win10的狀態是高級休眠,可以使用ntfsfix修復一下,

如果沒有安裝得先安裝,執行

[code]sudo apt-get install ntfs-3g
安裝過程是這樣的

[sudo] password for struggle6688: 
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/sda2

修復sda3的時候,成功修復。

struggle6688@YSC:~/new$ sudo ntfsfix /dev/sda3
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/sda3 was processed successfully.
但是在修復sda2的時候,因為win10高級休眠,修復失敗了

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
恩,解決辦法,進win10,關閉快速啟動

關閉辦法是控制面板,在電源管理中,選擇關閉蓋子的功能,更改不能更改的選項,去掉快速啟動的鉤,nice,好了,重啟進linux,ok

經常習慣性的直接關蓋子。。

Copyright © Linux教程網 All Rights Reserved