Linux 挂载&卸载windows磁盘
1. 挂载
sudo mkdir mnt/D
sudo fdisk -l #找到windows(本人window磁盘为/dev/sdb4)
sudo mount /dev/sdb4 /mnt/D -o iocharset=utf8,umask=0
报错:只读: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
or fast restarting.)
解决方法
sudo ntfsfix /dev/sdb4
#修复之后先umount:
sudo umount /dev/sdb4
#之后再mount:
sudo mount /dev/sdb4 /mnt/D -o iocharset=utf8,umask=0
2.卸载
sudo umont /dev/sdb4