ubuntu系统文件出错、修复

先查看系统文件所在分区:

df -h

挂载硬盘:

 sudo mount -o rw,remount /dev/sdb1

报错

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

再挂载硬盘

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

修复!!!:

 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 M F T M i r r c o m p l e t e d s u c c e s s f u l l y . S e t t i n g r e q u i r e d f l a g s o n p a r t i t i o n . . . O K G o i n g t o e m p t y t h e j o u r n a l ( MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ( MFTMirrcompletedsuccessfully.Settingrequiredflagsonpartition...OKGoingtoemptythejournal(LogFile)… OK
Checking the alternate boot sector… OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.

卸载硬盘:

 sudo umount /dev/sdb1

读写挂载硬盘

sudo mount -o rw /dev/sdb1

你可能感兴趣的:(ubuntu使用)