I have one SSD disk with installed Windows 10 and Ubuntu 20.04 on the same disk. I also have the second HDD drive with NTFS filesystem which should be shared between Windows and Ubuntu. I put the entry to /etc/fstab to automatically mount the HDD disk, however it is mounted in read only. If I run “ntfsfix /dev/sdb2” and reboot Ubuntu - the disk is mounted in RW mode as I want.
However, if I use Windows (just boot it and shutdown) and after that boot Ubuntu - I have the same error with HDD - it is not mounted in RW, and in read only mode. So I again need perform “ntfsfix”, reboot Ubuntu.
Is there any way to fix this error permanently? I know that it is possible to perform “ntfsfix” during the every Ubuntu boot, but this solution seems to me not elegant. Turning off the Hybernate on Windows seems not the solution as the HDD is not system, and not used by Windows system.
The HDD volume I mount is not system, it is just for data/media files. The HDD has 3 partitions (two small unallocated and unformatted 1mb and 45mb before and after the main partition, and one main partition /dev/sdb2 with the whole disk space)
UUID=68... /media/disk500 ntfs-3g defaults,nls=utf8,umask=027,dmask=027,fmask=137,uid=1000,gid=1000,windows_names 0 0
would be a correctfstab
entry if you haveuid
1000 andgid
1000 (user and group ID). – Serafim Jun 22 '20 at 08:05chown 1000:1000 /media/disk500
– Serafim Jun 22 '20 at 08:16~$ 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/sdb2 was processed successfully.
– Drg Jun 22 '20 at 12:11