I have a NTFS drive attached via SATA cable to my Ubuntu server running version 22.04. It's a Western Digital Red hard drive.
I auto mounted it via fstab:
UUID=C0864343244110 /home/media/backupPictures ntfs defaults 0 2
I tried below:
UUID=C0864343244110 /home/media/backupPictures ntfs rw 0 2
And also tried setting the permission via:
sudo chmod +rwx backupPicturessudo chmod 777 backupPictures
And I get this error all the time:
chmod: changing permissions of 'backupPictures/': Read-only file system
I am using Samba file share and double checked the file share settings for the folder and it's set as below:
[Pictures backup] comment = Pictures backup path = /home/media/backupPictures read only = no writable = yes browsable = yes
And clicked restart on smb as well as rebooting the entire system. I cannot copy files into this location but I can see files already stored there.
I then tried to install ntfsfix but that package doesn't exist anymore.
sudo apt-get install ntfsfixReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneE: Unable to locate package ntfsfix
Is there anything else I can do? Is there a ntfsfix alternative?
Apparently ntfsfix should work via:
sudo ntfsfix /dev/sdxX # where x is HDD and X is drive number, in my case it was /dev/sda1
But this package no longer exists.
This is the Linux Ubuntu Server I am using:
Distributor ID: UbuntuDescription: Ubuntu 22.04 LTSRelease: 22.04Codename: jammy