Ubuntu下挂载U盘问题

挂载一块exfat U盘,系统可正常识别为/dev/sda1,但是打开时报错

起初怀疑为exfat支持问题使用dmesg查看日志

[11814.506390] exFAT-fs (sda1): invalid fs_name
[11814.506397] exFAT-fs (sda1): failed to read boot sector
[11814.506399] exFAT-fs (sda1): failed to recognize exfat type

尝试安装exFAT相关支持后手动挂载仍然失败

之后查到另外一个日志

[12060.706726] ntfs3: sda1: It is recommened to use chkdsk.
[12060.720858] ntfs3: sda1: volume is dirty and "force" flag is not set!

sda1标识为dirty导致无法打开

使用命令修复

$ sudo ntfsfix -d /dev/sda1
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.

问题解决