linux下挂载NTFS分区错误修复

Bertha 。 2022-07-11 13:23 525阅读 1赞

今天在linux下打开win的NTFS硬盘总是提示出错了,而且是全部的NTFS盘都出错,其中sda1错误显示如下:

复制代码

  1. 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.
  2. Failed to mount '/dev/sda1': Operation not permitted
  3. The NTFS partition is in an unsafe state. Please resume and shutdown
  4. Windows fully (no hibernation or fast restarting), or mount the volume
  5. read-only with the 'ro' mount option.

复制代码

恩,挂载出错,好像是因为win8的状态是高级休眠,试着使用ntfsfix修复一下,

如果没有安装得先安装,执行

  1. sudo apt-get install ntfs-3g

因为我已经安装过了,所以。。。

复制代码

  1. [sudo] password for wangbo:
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. ntfs-3g is already the newest version.
  6. The following packages were automatically installed and are no longer required:
  7. gir1.2-appindicator3-0.1 gir1.2-javascriptcoregtk-3.0 gir1.2-webkit-3.0 gir1.2-xkl-1.0 python3-cairo
  8. python3-crypto python3-gi-cairo python3-icu python3-keyring python3-pyicu python3-secretstorage
  9. Use 'apt-get autoremove' to remove them.
  10. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

复制代码

安装好后,对原来挂载出错的NTFS盘分别执行

  1. sudo ntfsfix /dev/sda1
  2. sudo ntfsfix /dev/sda8

修复分区错误,结果呢,

修复sda8的时候,成功修复。

复制代码

  1. wangbo@Idina:~/temp$ sudo ntfsfix /dev/sda8
  2. Mounting volume... The disk contains an unclean file system (0, 0).
  3. Metadata kept in Windows cache, refused to mount.
  4. FAILED
  5. Attempting to correct errors...
  6. Processing $MFT and $MFTMirr...
  7. Reading $MFT... OK
  8. Reading $MFTMirr... OK
  9. Comparing $MFTMirr to $MFT... OK
  10. Processing of $MFT and $MFTMirr completed successfully.
  11. Setting required flags on partition... OK
  12. Going to empty the journal ($LogFile)... OK
  13. Checking the alternate boot sector... OK
  14. NTFS volume version is 3.1.
  15. NTFS partition /dev/sda8 was processed successfully.

复制代码

但是在修复sda1的时候,因为win8高级休眠,修复失败了。。。

复制代码

  1. wangbo@Idina:~/temp$ sudo ntfsfix /dev/sda1
  2. Mounting volume... Windows is hibernated, refused to mount.
  3. FAILED
  4. Attempting to correct errors...
  5. Processing $MFT and $MFTMirr...
  6. Reading $MFT... OK
  7. Reading $MFTMirr... OK
  8. Comparing $MFTMirr to $MFT... OK
  9. Processing of $MFT and $MFTMirr completed successfully.
  10. Setting required flags on partition... OK
  11. Going to empty the journal ($LogFile)... OK
  12. Windows is hibernated, refused to mount.
  13. Remount failed: Operation not permitted

复制代码

恩,解决办法,进win8,关闭快速启动,恩,对,关了它就ok

关闭办法是控制面板,在电源管理中,选择关闭盖子的功能,更改不能更改的选项,去掉快速启动的钩,nice,好了,重启进linux,ok

本文采用以下协议进行授权: 自由转载-非衍生-保持署名|Creative Commons BY-NC-ND 3.0 ,转载请注明作者及出处。

发表评论

表情:
评论列表 (有 0 条评论,525人围观)

还没有评论,来说两句吧...

相关阅读