Linux 下无法挂载windows的ntfs文件系统

错误提示:

Error mounting /dev/sda5 at /media/jackson/文档: Command-line`mount -t "ntfs" -o"uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177""/dev/sda5" "/media/jackson/文档"' exited with non-zero exit status14: The disk contains an unclean file system (0, 0).

Metadata kept in Windows cache, refused to mount.

Failed to mount '/dev/sda5': Operation not permitted

The NTFS partition is in an unsafe state. Please resume andshutdown

Windows fully (no hibernation or fast restarting), or mount thevolume

read-only with the 'ro' mount option.

1、首先输入 sudo fdisk -l 查看分区的一些详细信息:

Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors

Units = 扇区 of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x923830f4


   设备 启动      起点          终点     块数   Id  系统

/dev/sda1            2048   104856254    52427103+  83  Linux

/dev/sda2       104872320   105466724      297202+  83  Linux

/dev/sda3       105482790   113852654     4184932+  82  Linux 交换 / Solaris

/dev/sda4       113862656   976771070   431454207+   f  W95 扩展 (LBA)

/dev/sda5       686338048   976771071   145216512    7  HPFS/NTFS/exFAT

/dev/sda6       113868783   686328929   286230073+  83  Linux


Partition table entries are not in disk order

2、使用ntfsfix命令,即输入sudo ntfsfix /dev/sda5,可修复,然后可以该分区就可挂载使用

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/sda5 was processed successfully.


附:ntfsfix命令详解

名称

ntfsfix - 修复常见错误,并强制操作系统检查 NTFS

用法概要

ntfsfix [options] device

描述

ntfsfix 实用程序可修复一些常见的 NTFS 问题。请注意它不是 chkdsk 的某一版本。它将修复一些基本的 NTFS 不一致性,重置 NTFS 日志文件并在下次重新引导操作系统时安排进行 NTFS 一致性检查。

如果认为某个 NTFS 卷已被操作系统或某种其他方式损坏且无法挂载,请对其运行 ntfsfix

选项

下面列出了支持的选项。

–h–-help

显示选项列表,其中包含每个选项的简短说明。

–V–-version

显示版本号、版权和许可信息。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值