NTFS在openwrt下的挂载问题

在openwrt上市可以挂载ntfs分区的,但是如果原来如果搞过win,或者异常关机,那么会遇到以下的错误:

root@Openwrt:/etc/config# mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/sda1 /mnt/sda1

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.)

 

然后就只读了,能看不能写入,那么怎么解决了,重新拖回windows,关闭快速启动,正常关机?

NO! NO! NO!,只要进行一下磁盘检查:

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.

然后:

mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000,exec /dev/sda1 /mnt/sda1

好了,这样就没问题了,其他linux系统类似处理就好了

 

posted on 2018-11-13 10:21  Maintell  阅读(1685)  评论(0编辑  收藏  举报

导航