错误提示:
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 问题。请注意它不是 chkdsk 的某一版本。它将修复一些基本的 NTFS 不一致性,重置 NTFS 日志文件并在下次重新引导操作系统时安排进行 NTFS 一致性检查。
如果认为某个 NTFS 卷已被操作系统或某种其他方式损坏且无法挂载,请对其运行 ntfsfix。
下面列出了支持的选项。
显示选项列表,其中包含每个选项的简短说明。
显示版本号、版权和许可信息。