You are not logged in.

#1 2022-10-23 10:04:16

ntldr
Member
Registered: 2017-01-04
Posts: 65

fstab samba network mounting problem

Hey,

I have issue where one samba network file is mounting automatically correctly while two others are failing to mount automatically. They do mount if I click them manually in dolphin.

output of systemctl list-units http://ix.io/4dUQ and here's my fstab.

//192.168.1.70/silvernasEVO     /mnt/silvernas/EVO      cifs    credentials=/home/ntldr/.silvenas,iocharset=utf8,rw,noperm,defaults,noauto,x-systemd.automount     0       0
//192.168.1.70/silvernasWDGreen /mnt/silvernas/WDGreen  cifs    credentials=/home/ntldr/.silvenas,rw,noperm,defaults,noauto,x-systemd.automount    0       0
//192.168.1.70/silvernasRedraid /mnt/silvernas/Redraid  cifs    credentials=/home/ntldr/.silvenas,iocharset=utf8,rw,noperm,defaults,noauto,x-systemd.automount     0       0

Only Redraid is getting mounted automatically while Evo and Green aren't. I have also tried _netdev command but that doesn't seem to work either.

Last edited by ntldr (2022-10-23 16:47:11)

Offline

#2 2022-10-23 11:52:17

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: fstab samba network mounting problem

What's up w/ the server names there?
The services have

mnt-silvernas-Redraid.mount                                                              loaded active mounted   /mnt/silvernas/Redraid

  and no "dragonnas" but your fstab has

//1.1.1.1/dragonnasRedraid /mnt/dragonnas/Redraid

and on top of that the other two shares refer to "1.1.1"

If you're trying to obfuscate some information:
a) there's unlikely a reason for that, local NAT'ed IPs and domains are useless to anyone outside the LAN
b) be explicit, precise and consistent w/ that

Does dolphin actually mount the CIFS shares or does it access them via the "smb://" KIO?

Offline

#3 2022-10-23 16:51:20

ntldr
Member
Registered: 2017-01-04
Posts: 65

Re: fstab samba network mounting problem

Does dolphin actually mount the CIFS shares or does it access them via the "smb://" KIO?

I believe it uses KIO.. not sure.. also I edited the first post with the correct info.

➜ pacman -Qs kio
local/audiocd-kio 22.08.2-1 (kde-applications kde-multimedia)
    Kioslave for accessing audio CDs
local/kdesdk-kio 22.08.2-1 (kde-applications kdesdk)
    KDE SDK KIO-Slaves
local/kio 5.99.0-1 (kf5)
    Resource and network access abstraction
local/kio-extras 22.08.2-1 (kde-applications kde-network)
    Additional components to increase the functionality of KIO
local/kio-fuse 5.0.1-1
    FUSE interface for KIO
local/kio-zeroconf 22.08.2-1 (kde-applications kde-network)
    Network Monitor for DNS-SD services (Zeroconf)

in dolphin when browsing SMB shares it shows CIFS

Offline

#4 2022-10-23 18:27:54

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: fstab samba network mounting problem

I believe it uses KIO.. not sure..

When you activate the share w/ dolphin can you

ls /mnt/silvernas/EVO

Since all shares are on the same server, what happens otherwise if you

ls /mnt/silvernas/EVO

or

ls /mnt/silvernas/WDGreen

(ie. trigger an automount w/o dolphin)?

Offline

#5 2022-10-24 12:22:44

ntldr
Member
Registered: 2017-01-04
Posts: 65

Re: fstab samba network mounting problem

When I do

ls /mnt/silvernas/EVO

To the shares it just mounts them automatically and shows the content inside them. I first did

ls /mnt/silvernas/EVO

then went to see dolphin it was mounted. Same thing happened to WDGreen as well.

Offline

#6 2022-10-24 14:55:52

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: fstab samba network mounting problem

To the shares it just mounts them automatically and shows the content inside them.

So how exactly is

two others are failing to mount automatically

??

Offline

#7 2022-10-24 17:07:56

ntldr
Member
Registered: 2017-01-04
Posts: 65

Re: fstab samba network mounting problem

What I mean is before doing LS command I checked dolphin it said it wasn't mounted but after doing LS EVO or Green it got mounted. Perhaps it's possible that dolphin reports it falsely and it is indeed mounted but for some reason the icon says it isn't.

Offline

#8 2022-10-24 19:33:19

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: fstab samba network mounting problem

"x-systemd.automount" mounts on demand - ie. when you're accessing the mountpoint.
You perceive the exact behavior you configured - if you want it to somehow for some reason mount automatically w/o any demand, you need to get rid of the noauto and x-systemd.automount entries, but esp. for  network devices that's not necessarily a good idea.
This reeks of an xy-problem: what do you want to actually achieve here? What actual problem do you seek to solve?

Offline

Board footer

Powered by FluxBB