首页 > 代码库 > ubuntu 無法掛載ntfs分區

ubuntu 無法掛載ntfs分區

今天重新進入ubuntu中,突然發現windows下D,E,F分區無法掛載,

提示

Error mounting /dev/sda6 at /media/gaoyuan/文檔: Command-line`mount -t "ntfs" -o"uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177""/dev/sda6" "/media/gaoyuan/文檔"‘ 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/sda6‘: Operation not permitted
The NTFS partition is in an unsafe state. Please resumeandshutdown
Windows fully (no hibernation or fast restarting), or mountthevolume
read-only with the ‘ro‘ mount option.

輸入

sudo fdisk -l


顯示的是Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total976773168sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3ffc3ffDeviceBoot Start End Blocks Id System
/dev/sda1 * 63 104872319 52436128+ 7 HPFS/NTFS/exFAT
/dev/sda2 104872381 976771071 435949345+ f W95 Ext‘d (LBA)
/dev/sda5 104872383 541101329 218114473+ 7 HPFS/NTFS/exFAT
/dev/sda6 541101393 892881984 175890296 7 HPFS/NTFS/exFAT
/dev/sda7 922179584 922568703 194560 83 Linux
/dev/sda8 922570752 930381823 3905536 82 Linux swap / Solaris
/dev/sda9 930383872 976771071 23193600 83 Linux
/dev/sda10 892882944 922177535 14647296 83 LinuxPartition table entries are not in disk order

從網上搜出 sudo ntfsfix 命令

嘗試輸入

sudo ntfsfix /dev/sda6


gaoyuan@gaoyuan-Rev-1-0 ~$ sudo ntfsfix /dev/sda6
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/sda6 was processed successfully.

转自:http://blog.csdn.net/conanyang/article/details/5336941