解決linux(ubuntu18)下無法掛載ntfs磁盤,並讀寫掛載硬盤


首先需要有ntfs-3g,沒有的話sudo apt-get install ntfs-3g

掛載硬盤:

chen@ilaptop:/$ sudo mount -o rw,remount /dev/sdb1

報錯:

Remounting is not supported at present. You have to umount volume and then mount it once again.

再掛載硬盤:

chen@ilaptop:/$ sudo mount /dev/sdb1

又報錯:
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

修復!!!:

chen@ilaptop:/$ sudo ntfsfix /dev/sdb1

修復成功:

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/sdb1 was processed successfully.

卸載硬盤:

chen@ilaptop:/$ sudo umount /dev/sdb1

讀寫掛載硬盤

chen@ilaptop:/$ sudo mount -o rw /dev/sdb1


免責聲明!

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



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