Transmission shows Read Only File System

I recently copied the folders from my WD NAS (which acts as a source to my Vero4K and the destination for Torrents via the Vero) to a back-up ext4 drive whilst I re-formatted the NAS owing to a couple of problems. The folders were then all moved back. But since then I get a ‘Read Only File System’ on Transmission. All the copying was done via drag and drop in windows (using Paragon software to be able to see the ext4 drive) in the hope that I didn’t mess up file permissions. The NAS works fine playing media to the Vero, the relevant share is Public and I can drop in and out of its folders from windows. I found a very similar problem in Using transmision and get error: read only file system but ran out of brain cells part way through!
ls -lah /mnt shows;
drwxr-xr-x 10 root root 4.0K Aug 30 09:44 .
drwxr-xr-x 23 root root 4.0K May 17 12:27 …
drwxrwxrwx+ 51 501 osmc 4.0K Aug 27 02:04 4K_Films
drwxrwxrwx+ 5 501 osmc 4.0K Aug 30 09:39 Downloads
drwxrwxrwx+ 118 501 osmc 8.0K Aug 30 09:39 Films
drwxrwxrwx+ 24 501 osmc 4.0K Aug 26 20:50 Lucy_Films
drwxrwxrwx+ 28 501 osmc 4.0K Aug 26 20:37 TV_Shows
drwxr-xr-x 2 root root 4.0K Aug 30 09:44 Test
drwxrwxrwx+ 27 501 osmc 4.0K Aug 26 19:53 Tracey_Movies
drwxr-xr-x 2 root root 0 Aug 30 09:45 Vero_4K_Back_Up
which I think means I should have permission? Any help gratefully received as always.

Well Group is set as 501 and not OSMC which might be one of your problems and Vero_4K_Back_Up is owned root/root which is the problem on that folder.

Thanks for that. Is there a suitable command to correct that? And out of interest, given this worked prior to copying, would the windows method of transferring files have caused that?

Try

sudo chown -R osmc:osmc /mnt/Vero_4K_Back_Up

Possible

As someone who moves large amounts of data on a regular basis I would never trust Windows for the task…use this great free program instead.

Thanks for the help, ans sorry for slow response - work got in the way. I tried the suggested command and;
root@osmc:/mnt# ls -lah
total 40K
drwxr-xr-x 10 osmc osmc 4.0K Aug 30 17:55 .
drwxr-xr-x 23 root root 4.0K May 17 12:27 …
drwxrwxrwx+ 51 501 osmc 4.0K Aug 27 02:04 4K_Films
drwxrwxrwx+ 5 501 osmc 4.0K Aug 30 09:39 Downloads
drwxrwxrwx+ 118 501 osmc 8.0K Aug 30 09:39 Films
drwxrwxrwx+ 24 501 osmc 4.0K Aug 26 20:50 Lucy_Films
drwxrwxrwx+ 28 501 osmc 4.0K Aug 26 20:37 TV_Shows
drwxr-xr-x 2 root root 0 Aug 30 18:01 Test
drwxrwxrwx+ 27 501 osmc 4.0K Aug 26 19:53 Tracey_Movies
drwxrwxrwx+ 3 501 osmc 4.0K Aug 26 20:38 Vero_4K_Back_Up

I’m guessing that’s not as expected?

thanks for this - I’ll look at this tonight. I’d only gone down the windows route after tying myself in knots with rsync/ftp etc, and falling foul of permissions problems previously! Seems like it didn’t help.

Your directories have a plus sign at the end of the permissions, indicating that they have additional access control list (ACL) permissions, probably inherited from Windows. (It’s not clear what happened, but your chown command seems to have added a plus to the permissions of /mnt/Vero_4K_Back_Up, where no ACL had originally existed.)

Staying with /mnt/Vero_4K_Back_Up for the moment, you’ll probably need to install the acl package:

sudo apt-get update
sudo apt-get install -y acl

then provide the output from these two commands:

grab-logs -A
getfacl /mnt/Vero_4K_Back_Up

Thanks for the help - logs;
https://paste.osmc.tv/iwotuyidid

and;
root@osmc:~# getfacl /mnt/Vero_4K_Back_Up
getfacl: Removing leading ‘/’ from absolute path names

file: mnt/Vero_4K_Back_Up

owner: root

group: root

user::rwx
group::r-x
other::r-x

I see you rebooted the device, meaning that /mnt/Vero_4K_Back_Up was no longer mounted. Could you run the following:

sudo mount /mnt/Vero_4K_Back_Up
getfacl /mnt/Vero_4K_Back_Up

apologies for the reboot - I seemed to recall it was a requirement when providing logs, sorry.
root@osmc:~# getfacl /mnt/Vero_4K_Back_Up
getfacl: Removing leading ‘/’ from absolute path names

file: mnt/Vero_4K_Back_Up

owner: 501

group: osmc

user::rwx
group::rwx
other::rwx
default:user::rwx
default:group::rwx
default:other::rwx

Is the WD NAS formatted as ext4 or NTFS?

You could try to remove the extended permissions:

cd /mnt; sudo setfacl -R -b Vero_4K_Back_Up
ls -l /mnt

If you see user:group of 501:osmc but without the + sign, try the chown again:

sudo chown -R osmc:osmc /mnt/Vero_4K_Back_Up
ls -l /mnt

(PS I think the reason the original chown “created” the ACL is that you were originally showing just the mount point – but afterwards, we saw the mounted share, which has the ACL.)

root@osmc:~# cd /mnt; sudo setfacl -R -b Vero_4K_Back_Up
setfacl: Vero_4K_Back_Up: Read-only file system
setfacl: Vero_4K_Back_Up/Base_m.c: Read-only file system
root@osmc:/mnt# ls -l /mnt
total 32
drwxrwxrwx+ 51 501 osmc 4096 Aug 27 02:04 4K_Films
drwxrwxrwx+ 5 501 osmc 4096 Aug 30 09:39 Downloads
drwxrwxrwx+ 118 501 osmc 8192 Aug 30 09:39 Films
drwxrwxrwx+ 24 501 osmc 4096 Aug 26 20:50 Lucy_Films
drwxrwxrwx+ 28 501 osmc 4096 Aug 26 20:37 TV_Shows
drwxr-xr-x 2 root root 0 Aug 30 20:11 Test
drwxrwxrwx+ 27 501 osmc 4096 Aug 26 19:53 Tracey_Movies
drwxrwxrwx+ 3 501 osmc 4096 Aug 26 20:38 Vero_4K_Back_Up

since it still has the + I didn’t re-try the chown command in case that did more damage. I’ve always assumed it’s ext4 but only seen that in the spec for it’s more advanced cousins, so not 100% sure. Thanks for the help on this - annoying that my choice of copying via Windows to avoid any permissions issues seems to have backfired.

It does think that it’s read-only, so we’re a bit stuck, AFAICT.

If you still have the backup copy, it might be worth copying it back a second time to the NAS, assuming that it’s also ACL-free. :wink:

1 Like

Doh! Time to check the backup. But regardless - thanks very much for the help.

Hi again - tonight I attached the back-up drive ready to start moving the files over but thought I’d just try your suggested command one last time;
cd /mnt; sudo setfacl -R -b Vero_4K_Back_Up

and after repeating it for each folder;

drwxrwxrwx 51 501 osmc 4096 Aug 27 02:04 4K_Films
drwxrwxrwx 6 501 osmc 4096 Aug 31 19:55 Downloads
drwxrwxrwx 119 501 osmc 8192 Aug 31 18:44 Films
drwxrwxrwx 24 501 osmc 4096 Aug 26 20:50 Lucy_Films
drwxrwxrwx 28 501 osmc 4096 Aug 26 20:37 TV_Shows
drwxrwxrwx 2 501 osmc 4096 Aug 30 22:23 Test
drwxrwxrwx 27 501 osmc 4096 Aug 26 19:53 Tracey_Movies
drwxrwxrwx 2 501 osmc 4096 Aug 31 09:02 Transmission
drwxrwxrwx 3 501 osmc 4096 Aug 26 20:38 Vero_4K_Back_Up

and Transmission has access to the Downloads folder again! No idea what changed apart from re-connecting the other drive, but happy for now.

Excellent! :slight_smile:

Did you also succeed in changing the ownership to osmc:osmc?

No - did try that for each folder as per your previous suggestion;
sudo chown -R osmc:osmc /mnt/Vero_4K_Back_Up
but it made no difference to any of them. Not sure if that ownership thing will come back to bite me at a later date but for now it’s working great again. So thanks again for the help!

1 Like