zoukankan      html  css  js  c++  java
  • 解决linux(Fedora33)下无法挂载ntfs磁盘,并读写挂载硬盘

    首先需要有ntfs-3g,没有的话通过下面的命令安装
    --------------------------------------------------
    root@localhost ~]# dnf install ntfs-3g.x86_64
    --------------------------------------------------
     
    挂载硬盘报错:
    --------------------------------------------------
    root@localhost ~]#  mount /dev/sdd2 /medora
    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.)
    --------------------------------------------------
     
    卸载硬盘:
    --------------------------------------------------
    root@localhost ~]#  umount /dev/sdd2
    --------------------------------------------------
     
    修复!!!:
    --------------------------------------------------
    root@localhost ~]#  ntfsfix /dev/sdd2
    --------------------------------------------------
     
    修复成功:
    --------------------------------------------------
    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/sdd2 was processed successfully.
    root@localhost ~]#  
    --------------------------------------------------
     
    从新挂在硬盘即可
    --------------------------------------------------
    root@localhost ~]#  mount /dev/sdd2 /medora
    --------------------------------------------------
     
    或加上下面的参数 挂在后的感觉都是一样的
    --------------------------------------------------
    root@localhost ~]#  mount  -o rw /dev/sdd2 /medora
    --------------------------------------------------
     

  • 相关阅读:
    《冒号课堂》目录 书名:冒号课堂——编程范式与OOP思想
    很好的WEB打印网页打印功能
    桌面搜索程序 Python
    面向对象保存爬虫数据 Python
    爬取微博热搜榜 李白之死 Python
    雪中悍刀行热播,来做一篇关于python的作业 爬虫与数据分析
    几个简单的例子 巩固Xpath语法 Python
    替换特殊字符 Python
    爬取酷狗榜单并可视化词云 Python
    Selenium尝试更改useragent 基于Python
  • 原文地址:https://www.cnblogs.com/pipci/p/13933430.html
Copyright © 2011-2022 走看看