zoukankan      html  css  js  c++  java
  • 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系统类似处理就好了

  • 相关阅读:
    基础004_V7-DSP Slice
    基础003_V7-Memory Resources
    基础001_Xilinx V7资源
    基础002_V7-CLB
    FIR调用DSP48E_05
    FIR仿真module_04
    FIR基本型仿真_03
    FIR定点提高精度的trick_02
    〖Android〗快速部署SSHD和Bash Shell(程序:DroidSSHD和BetterTerminalEmulatorPro)
    〖Android〗Nexus 7 flo (razor) 刷入Recovery/CM-11.0后卡在开机动画的解决方法
  • 原文地址:https://www.cnblogs.com/maintell/p/9950810.html
Copyright © 2011-2022 走看看