在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系统类似处理就好了

 

相关文章:

  • 2021-11-04
  • 2022-01-31
  • 2022-12-23
  • 2021-09-29
  • 2022-01-02
  • 2021-07-17
  • 2022-02-05
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2022-12-23
  • 2021-05-29
  • 2021-11-23
  • 2022-12-23
  • 2021-12-31
  • 2021-08-18
相关资源
相似解决方案