Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1350  / 2 Years ago, sat, september 24, 2022, 9:39:39

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 backupPictures
sudo 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 ntfsfix
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: 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: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

More From » permissions

 Answers
6

For me, this worked so far:


/partition/identifier   /mount/point    ntfs-3g rw,uid1000,gid1000,umask=0000,fmask=0000    0   0

you can also remount it as rw for a quick test:


sudo mount -o remount,rw /partition/identifier /mount/point

[#356] Sunday, September 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
antoccasiona

Total Points: 430
Total Questions: 127
Total Answers: 131

Location: Netherlands
Member since Sat, Jun 26, 2021
3 Years ago
;