zoukankan      html  css  js  c++  java
  • Ubuntu 磁盘挂载错误

    一、错误

    报错原因:

    在删除或者复制移动时,磁盘或者u盘等外接硬件设备,忽然掉落(断掉,接口松动),在次挂载磁盘时就会出现错误

    错误日志:

    $MFTMirr does not match $MFT (record 0).
    Failed to mount '/dev/sdc1': 输入/输出错误
    NTFS is either inconsistent, or there is a hardware fault, or it's a
    SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
    then reboot into Windows twice. The usage of the /f parameter is very
    important! If the device is a SoftRAID/FakeRAID then first activate
    it and mount a different device under the /dev/mapper/ directory, (e.g.
    /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
    for more details.

    二、解决方法

    简单解决:

    linux ~ # ntfsfix /dev/sdc1
    Mounting volume... $MFTMirr does not match $MFT (record 0).
    FAILED
    Attempting to correct errors... 
    Processing $MFT and $MFTMirr...
    Reading $MFT... OK
    Reading $MFTMirr... OK
    Comparing $MFTMirr to $MFT... FAILED
    Correcting differences in $MFTMirr record 0...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/sdc1 was processed successfully.

    重新插入磁盘:

    linux ~ # df -hT
    文件系统       类型      容量  已用  可用 已用% 挂载点
    udev           devtmpfs  1.9G     0  1.9G    0% /dev
    tmpfs          tmpfs     383M  9.4M  374M    3% /run
    /dev/sda1      ext4      459G   70G  366G   16% /
    tmpfs          tmpfs     1.9G   21M  1.9G    2% /dev/shm
    tmpfs          tmpfs     5.0M  4.0K  5.0M    1% /run/lock
    tmpfs          tmpfs     1.9G     0  1.9G    0% /sys/fs/cgroup
    /dev/sdb1      ext4      9.3G  213M  8.6G    3% /boot
    cgmfs          tmpfs     100K     0  100K    0% /run/cgmanager/fs
    tmpfs          tmpfs     383M     0  383M    0% /run/user/122
    tmpfs          tmpfs     383M   16K  383M    1% /run/user/1000
    /dev/sdc1      fuseblk   932G  161G  772G   18% /media/linux/Seagate Backup Plus Drive

    重新挂载之后就ok了

  • 相关阅读:
    es6字符串扩展(+模板字符串拼接)
    MySQL-技术专区-mysql数据库权限管理
    MySQL-技术专区-数据库权限管理
    开源软件的盈利模式
    分布式-技术专区-Redis分布式锁实现-第二步
    分布式-技术专区-Redis分布式锁实现-第一步
    分布式-技术专区-Redis分布式锁原理实现
    JPA接口整理归纳方法规则
    备份整理-实用归纳
    Zookeeper-技术专区-运作流程分析介绍
  • 原文地址:https://www.cnblogs.com/sky-k/p/9394771.html
Copyright © 2011-2022 走看看