Ubuntu 20.04的物理系统下,我的一个NTFS分区可能由于在Windows更新时进行了强制关机出现了错误,因此在Ubuntu下无法正常写入,出现了read-only状态。
查找了一些修复方法,有针对ext2/ext3/ext4和NTFS两种文件系统的修复方法。
我在这里找到了针对NTFS的修复指令:
/dev/sdb1
sudo umount /dev/sdb1
ntfsfix
命令尝试修复NTFS分区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.
如果你的受损分区是EXT4的,还可以参照这里进行修复:
/dev/sdb1
sudo umount /dev/sdb1
fsck
命令尝试修复EXT4分区sudo fsck.ext4 -y /dev/sdb1
修复时请选择对应的文件系统的修复指令。