Linux和Windows共享硬盘挂载问题解决方案

双系统 Linux + Windows 10, Windows 下有 NTFS 格式 1T 硬盘(比如 D 盘), Linux 下按需挂载时出现问题

1
sudo mount /dev/sdb1 Temp

报错

1
2
3
4
5
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)

利用ntfsfix命令解决

1
sudo ntfsfix /dev/sdb1

修复数据

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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/sdb1 was processed successfully.

以读写方式重新加载

1
sudo mount -o rw /dev/sdb1