在openwrt上市能夠掛載ntfs分區的,可是若是原來若是搞過win,或者異常關機,那麼會遇到如下的錯誤:linux
root@Openwrt:/etc/config# mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/sda1 /mnt/sda1windows
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.)ui
而後就只讀了,能看不能寫入,那麼怎麼解決了,從新拖回windows,關閉快速啓動,正常關機?rest
NO! NO! NO!,只要進行一下磁盤檢查:code
ntfsfix /dev/sda1
root@Openwrt:/etc/config# ntfsfix /dev/sda1
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/sda1 was processed successfully.it
而後:io
mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/sda1 /mnt/sda1ast
好了,這樣就沒問題了,其餘linux系統相似處理就行了require