Score:0

Struggling with fstab

tw flag

I'm really struggling to understand my fstab file, I would like to mount the nfs so that all users can edit the directories (rw) but I seem to get 'root:root'.

My fstab file:

192.168.1.74:/volume1/Barry/Plex/tv  /mnt/plex/media/tv  nfs  nofail defaults 0  0
mook765 avatar
cn flag
Wrong fstab line, options have to be separated by comma, not space. `nofail defaults` is wrong, it has to be `nofail,defaults` .
Dan Daley avatar
tw flag
Like this? 192.168.1.74:/volume1/Barry/Plex/tv /mnt/plex/media/tv nfs nofail, defaults, user, 0 0 when I do mount -a I get this mount: /etc/fstab: parse error at line 15 -- ignored
mook765 avatar
cn flag
No, no spaces, options are separated by commas, without any spaces, see my example above.
Dan Daley avatar
tw flag
That worked thank you. Unfortunately didn't fix the issue I was having though :(
mook765 avatar
cn flag
Please fix that in your question via [edit](https://askubuntu.com/posts/1477095/edit) too. I'm not a networking guru, so with your initial problem you'll have to wait for someone else to help you.
Dan Daley avatar
tw flag
Thats fine I appreciate all your help :)
Score:1
in flag

nfs permissions are (mostly) controlled by the server, not the client.

So you have to change permissions on the server, not change the mount on the client.

Although, you need to get the mount right on the client first before you can access anything. As stated in the comments, your fstab line is wrong. A correct fstab line has exactly 6 fields, separated by whitespace. You have 7 fields there, as the 4th field (options) is split and should have a comma instead of whitespace separating the options.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.