Linux入门之常用命令(12) mount

查看Linux所有设备

cd  /dev

ls -l sd*  //分区

查看Linux磁盘

fdisk -lu

挂载

一般挂载至/mnt /media

mount /dev/sda5   /mnt/thinkiii

挂载时遇到一个问题

Error mounting /dev/sdb3 ...
status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sdb3': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.

一般该问题的原因是由于windows关闭不正常导致,解决方案如下:

通过nftsfix命令修复该磁盘

$ sudo ntfsfix /dev/sdb3
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/sdb3 was processed successfully.
上一篇:关于C# yield 你会使用吗?


下一篇:React Native简史