Can't mount SMB folder
Hi, I'm trying to mount a folder from a NAS with fstab, but the target folder is still empty. Anyone would have a guide or something for someone that never touched Bazzite (and Linux in general) for this please ? ;_;
Thank you !
59 Replies
what have you tried so far?
then added a line
The folder under "Distant" has the same orange disconnected icon as unmounted drives
what happens when you
sudo mount -aThe icon is now green, but the folder is still empty :(
hmm does
mount -a say anything?Wait it popped when I closed and reopened dolphin
I don't know what mount -a does but it looks like it worked
mount -a mounts everything that's in fstab
same thing that happens at bootOh so it would have worked if I rebooted
what?
you didn't reboot?
No :dead:
yeah if you reboot it should work
Imma do that just to make sure everything works
Thanks a lot for the help
Though it looks like this is read-only
try adding
,rw after password=password
those comma separated values are mount options
the rw option mounts as read writeThen I can use mount -a to refresh or do I need to restart ?
-a should refresh i think
Still in read only
oh
But this is fine for now, i'll mostly use it to backup files from windows
so it's not mounted read only
the other thing that could be a problem is a simple permission issue
who's the owner of the folder you can't edit?
I will double check the credentials i used can write on this folder, from the nas permissions
It has the permission for rw on the nas' side
what about client side?
if you right click the folder
go to properties > permissions
what does it say?
Sorry I went back to W11 to backup stuff. It'll take some time to copy everything, I'll check the properties tomorrow afternoon :dead:
It says user and group : root
sudo chown $USER:$USER /path/to/folder -R
your user is definitely who should own the folder
oh
seems like CIFS doesn't support Linux/unix style permissions
so chown may not work like normal
but what should work is just setting ownership/permissions in fstabHow do you do that in fstab ?
there are options for this
uid & gid
if you just run id
that'll give you your user's gid & uid
though
those are by default both 1000So i just add uid=1000,gid=1000 ?
uid & gid i probably misspelled uid
but yeah
that
you did mention using a NAS
it's probably better to also serve files over NFS
along with SMB
NFS is pretty well supported in Linux/Unix land
it unlike SMB does support normal permissionsI can try that too
Am a total linux noob sorry :notlikeduck:
i mean CIFS should work too if mounted correctly
NFS is just more Linux friendly
to where you can actually have your main system drive be NFS
so you can set things up in such a way that a machine can boot with no storage on there
Looks like it can't mount in the same folder as before
hmmm
Ok there was a typo
oh
Now I get an access denied :issou:
Guess I have to set this up on the NAS permissions
what tells you acce denied?
sudo mount -a
mount.nfs : access denied by server while mounting <IP>
oh
hmm NFS?
it's referencing NFS
if nfs worked you wouldn't need to set perms at mount time
doing this should only be needed with cifs
:dead:
Either the path was uppercase sensitive
Or setting the client to IP instead of name worked better
It works now but it only lets me in if I go in admin mode
hmmmmmmm
the mountpoint itself has to have the correct permissions as well
It says user : root in properties
for example here's my downloads folder

you either have to be the owner of a folder or be a member of a group that has view access
or other has to have view access
This is weird, the folder's permissions switch to root from current user when it's mounted
weird
there's probably something we're missing here
what if you try changing owner after it's nounted?

I don't get why i'm not the owner of the folder
whoever creates a folder is the user by default
do the other folders inside the main one have correct perms?
I create a folder, then mount a NAS folder on it, then it becomes admin only
they should

From a random folder inside the mount point
hmm
is the uid in fstab yours?
Uh do I have to set the uid with nfs ?
group does seem changed
me am confuzzled
Found it
Guess I should read the documentation from synology sometimes :dead:

Mapped all users to admin, it works now
idk how to change uid/gid on the NAS itself
Alright, thank you @nagito || Knight of Emilia for your inconditional support :bloblove:
Guess the issue is solved now
seems like you'd need to create a NFS user for your uwer on the NAS side
& give it access
ideally you'd have permissions
but if it works it works i guess
but if it works it works i guess
Good enough for now o7