linux mount ntfs报错时候的解决方法

sudo mount -t ntfs /dev/sdc1 /mnt/portable

mount的时候报错:

The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount '/dev/sdc1': 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.

If you can't access the drive, execute the following command:
使用这个命令

sudo ntfsfix /dev/sdXY

where XY is the partition

e.g sda2 or sdb1

Then, mount with:

sudo mount -o rw /dev/sdXY

就可以了

你可能感兴趣的:(linux mount ntfs报错时候的解决方法)