解決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
--------------------------------------------------
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM