Linux mount NTFS

sudo mount -o rw,relatime,uid=1000,gid=1000,fmask=0122,dmask=022 /dev/sdb3 /opt/Media/

遇到Metadata kept in Windows cache, refused to mount错误时,使用ntfsfix修复一下:

sudo apt-get install ntfs-3g
sudo ntfsfix /dev/sdb3


cat /etc/fstab
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda3 during installation
/dev/sda1 / ext4 errors=remount-ro 0 1
/dev/sda2 /home/2ndDog/Desktop/windowsD ntfs rw,relatime,uid=1000,gid=1000,fmask=0122,dmask=0122 0 2
#/swapfile none swap sw 0 0
/dev/sda2    /home/bot/Desktop/windowsD    ntfs    rw,relatime,uid=1000,gid=1000,fmask=0122,dmask=0122    0    2