Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] No more mount via fstab (Read 4890 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] No more mount via fstab

Hi all,

unfortunately, I am once again faced with a problem.

At first, I use Artix Linux KDE Plasma 5 and it is not a new installation.
Since a few days I have the problem that my Raspberry NAS via fstab no longer mounted.
I have created a mount point, created the .smbcredentials and I have been using the same entry in fstab successfully for a very long
time.

Code: [Select]
//my_ip-adress/Daten /home/roberto/NAS cifs     defaults,credentials=/home/roberto/.smbcredentials,rw,nounix,iocharset=utf8,vers=3.0,uid=roberto,gid=roberto 0 0
Nevertheless, when I start Dolphin after system startup, I only get an empty mount point.
The only thing that helps is to mount the NAS via terminal.

Code: [Select]
sudo mount -a
Does anyone have an idea what has changed?

Big thanks in advance.
Roberto

Re: No more mount via fstab

Reply #1
I've faced a similar problem (fstab auto-mounting samba shares at boot) numerous times in the past and it was always attributed to a change in the samba server deprecating authentication methods. Which backend does dolphin use to mount network shares?

[EDIT/Disclaimer] As a MATE guy, I use gvfs for automounting, not sure how plasma/dolphin operate.

Re: No more mount via fstab

Reply #2
gvfs is also installed on my system and I added the package gvfs-smb.
In addition, smbclient 4.14.4-1 is also installed.

Unfortunately this did not have the expected success.

Re: No more mount via fstab

Reply #3
What init are you using? There are probably some init scripts that mount things from fstab, you could check if those services are enabled and working. Also check the logs for errors, they might be shown onscreen at boot. You might need some things running to mount this that aren't being specified in the init script so it could be failing because the mount is running before the network is connected, which seems possible as you can do mount -a later, which suggests there is nothing wrong with your fstab.

Re: No more mount via fstab

Reply #4
Hi all,

unfortunately, I am once again faced with a problem.

At first, I use Artix Linux KDE Plasma 5 and it is not a new installation.
Since a few days I have the problem that my Raspberry NAS via fstab no longer mounted.
I have created a mount point, created the .smbcredentials and I have been using the same entry in fstab successfully for a very long
time.

Code: [Select]
//my_ip-adress/Daten /home/roberto/NAS cifs     defaults,credentials=/home/roberto/.smbcredentials,rw,nounix,iocharset=utf8,vers=3.0,uid=roberto,gid=roberto 0 0
Nevertheless, when I start Dolphin after system startup, I only get an empty mount point.
The only thing that helps is to mount the NAS via terminal.

Code: [Select]
sudo mount -a
Does anyone have an idea what has changed?

I misread your message, I thought your file manager mounted the share on demand... Look in your log files for "CIFS" error messages. It may be a race condition and mount is attempted before some modules are loaded (it may also show in dmesg). Perhaps netmount service starts before full networking is activated?

[EDIT] netmount scans /etc/fstab for entries marked with '_netdev', which points to a race condition, since 'mount -a' works for you. Try adding '_netdev' after 'defaults' in your entry and restart netmount. It should work.

 

Re: No more mount via fstab

Reply #5
I searched the log files for cifs and found an entry in errors.log
Code: [Select]
May  2 20:21:25 T450S kernel: Bluetooth: hci0: unexpected event for opcode 0xfc2f
May  2 20:34:00 T450S kernel: iwlwifi 0000:03:00.0: No beacon heard and the time event is over already...
May  3 09:37:21 T450S kernel: sd 3:0:0:0: [sdb] No Caching mode page found
May  3 09:37:21 T450S kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
May  3 10:11:45 T450S kernel: sd 3:0:0:0: [sdb] No Caching mode page found
May  3 10:11:45 T450S kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
May  3 14:02:05 T450S kernel: sd 3:0:0:0: [sdb] No Caching mode page found
May  3 14:02:05 T450S kernel: sd 3:0:0:0: [sdb] Assuming drive cache: write through
May  3 14:53:05 T450S kernel: Bluetooth: hci0: unexpected event for opcode 0xfc2f
May  3 17:01:34 T450S kernel: CIFS: VFS: \x5c\x5c<my_ipadress> has not responded in 180 seconds. Reconnecting...
May  3 17:04:21 T450S kernel: Bluetooth: hci0: unexpected event for opcode 0xfc2f
May  3 20:34:07 T450S kernel: sd 3:0:0:0: [sdb] Asking for cache data failed{code]

Maybe this is the reason that my NAS is not mounted at startup.

[EDIT]Adding the entry '_netdev' after 'defaults' unfortunately did not succeed.
I'm starting to get the impression that it's an underlying problem. I have the same phenomenon with my new Artix Gnome installation.
It may have something to do with one of the recent package updates and I'm waiting to see if this bug will be fixed again with a new update.

Re: No more mount via fstab

Reply #6
do you use krb5 together with CIFS, Roberto?

Re: No more mount via fstab

Reply #7
do you use krb5 together with CIFS, Roberto?
Yes I use it. I have seen, that there is also a krb5-openrc package, which is not installed.
It is better to install this package or should I uninstall krb5?

Re: No more mount via fstab

Reply #8
Krb5 together with cifs-utils 6.13 have a bug, it's upstream bug (a regression). Feel free downgrade to cifs 6.12  (6.12 should works) and wait for next update.
Mount a CIFS share using krb5 ticket is broken and does not works.

https://www.spinics.net/lists/linux-cifs/msg21551.html  <--- archlinux tried apply workaround, but it doesn't work. As i saw  " CIFS: VFS: \x5c\x5c<my_ipadress> has not responded in 180 seconds. Reconnecting..."  i thing,  it's your problem too.


Re: No more mount via fstab

Reply #10
[EDIT]Adding the entry '_netdev' after 'defaults' unfortunately did not succeed.
I've got this entry in my /etc/fstab
Code: [Select]
//salvia/MNT  /media/samba  cifs  _netdev,auto,nofail,user,vers=1.0,credentials=/etc/samba.credentials
and starting/stopping netmount (in openrc) does the job as intended. That with cifs-utils-6.13-2.

Re: No more mount via fstab

Reply #11
I have now done the following steps:

1. downgrade cifs-utils to 6.12-1
2. added the value '_netdev' to the line of my cifs mount in fstab
3. stopped the service 'netmount" in openrc
4. restarted the service 'netmount' in openrc

After a system reboot nothing changed.

Re: No more mount via fstab

Reply #12
I'm baffled by this, by all means it should work. Any interesting logs? Try restarting the service in debug mode (I think 'rc-service --debug netmount restart' -- I'm AFK).

Re: No more mount via fstab

Reply #13
Here is the output:
Code: [Select]
[roberto@X220 ~]$ sudo rc-service --debug netmount restart
+ sourcex -e /etc/rc.conf
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/rc.conf ']'
+ . /etc/rc.conf
++ rc_shell=/usr/bin/sulogin
++ rc_logger=YES
++ unicode=YES
++ rc_tty_number=12
+ '[' -d /etc/rc.conf.d ']'
+ _conf_d=/etc/init.d/../conf.d
+ _c=netmount
+ '[' -n netmount -a netmount '!=' netmount ']'
+ unset _c
+ sourcex -e /etc/init.d/../conf.d/netmount.default
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/netmount.default ']'
+ return 1
+ sourcex -e /etc/init.d/../conf.d/netmount
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/netmount ']'
+ . /etc/init.d/../conf.d/netmount
++ rc_need=net
+ unset _conf_d
+ sourcex /usr/lib/openrc/sh/runit.sh
+ '[' /usr/lib/openrc/sh/runit.sh = -e ']'
+ . /usr/lib/openrc/sh/runit.sh
+ sourcex /usr/lib/openrc/sh/s6.sh
+ '[' /usr/lib/openrc/sh/s6.sh = -e ']'
+ . /usr/lib/openrc/sh/s6.sh
++ '[' -z '' ']'
++ s6_service_path=/var/svc.d/netmount
+ sourcex /usr/lib/openrc/sh/start-stop-daemon.sh
+ '[' /usr/lib/openrc/sh/start-stop-daemon.sh = -e ']'
+ . /usr/lib/openrc/sh/start-stop-daemon.sh
+ sourcex /usr/lib/openrc/sh/supervise-daemon.sh
+ '[' /usr/lib/openrc/sh/supervise-daemon.sh = -e ']'
+ . /usr/lib/openrc/sh/supervise-daemon.sh
++ extra_commands='healthcheck unhealthy '
+ sourcex /etc/init.d/netmount
+ '[' /etc/init.d/netmount = -e ']'
+ . /etc/init.d/netmount
++ description='Mounts network shares according to /etc/fstab.'
+ yesno ''
+ '[' -z '' ']'
+ return 1
+ for _cmd in "$@"
+ '[' stop '!=' status -a stop '!=' describe ']'
+ '[' -n '' ']'
++ command -v cgroup_add_service
+ '[' cgroup_add_service = cgroup_add_service ']'
+ grep -qs /sys/fs/cgroup /proc/1/mountinfo
+ '[' -d /sys/fs/cgroup -a '!' -w /sys/fs/cgroup ']'
+ cgroup_add_service
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/blkio/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/cpu/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/cpuacct/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/cpuset/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/devices/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/freezer/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/hugetlb/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/memory/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/net_cls/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/net_prio/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/openrc/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/perf_event/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/pids/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/rdma/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/unified/tasks ']'
+ openrc_cgroup=/sys/fs/cgroup/openrc
+ '[' -d /sys/fs/cgroup/openrc ']'
+ cgroup=/sys/fs/cgroup/openrc/netmount
+ mkdir -p /sys/fs/cgroup/openrc/netmount
+ '[' -w /sys/fs/cgroup/openrc/netmount/tasks ']'
+ printf %d 0
++ command -v cgroup_set_limits
+ '[' cgroup_set_limits = cgroup_set_limits ']'
+ cgroup_set_limits
+ local blkio=
+ '[' -n '' ']'
+ local cpu=
+ '[' -n '' ']'
+ local cpuacct=
+ '[' -n '' ']'
+ local cpuset=
+ '[' -n '' ']'
+ local devices=
+ '[' -n '' ']'
+ local hugetlb=
+ '[' -n '' ']'
+ local memory=
+ '[' -n '' ']'
+ local net_cls=
+ '[' -n '' ']'
+ local net_prio=
+ '[' -n '' ']'
+ local pids=
+ '[' -n '' ']'
+ return 0
++ command -v cgroup2_set_limits
+ '[' cgroup2_set_limits = cgroup2_set_limits ']'
+ '[' stop = start ']'
+ break
+ eval 'printf '\''%s\n'\'' '
++ printf '%s\n'
+ read _d
+ '[' -n '' ']'
+ read _d
+ '[' 0 -ne 0 ']'
+ unset _d
+ eval 'printf '\''%s\n'\'' '
++ printf '%s\n'
+ read _f
+ '[' -n '' ']'
+ read _f
+ '[' 0 -ne 0 ']'
+ unset _f
+ '[' -n '' ']'
+ '[' -n stop ']'
+ '[' stop = depend ']'
+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
+ '[' describe = stop ']'
+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
+ '[' start = stop ']'
+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
+ '[' stop = stop ']'
++ command -v stop
+ '[' stop = stop ']'
+ yesno
+ '[' -z '' ']'
+ return 1
+ for _cmd in $extra_stopped_commands
+ '[' cgroup_cleanup = stop ']'
+ unset _cmd
+ case $1 in
+ verify_boot
+ '[' '!' -e /run/openrc/softlevel ']'
+ return 0
++ command -v stop_pre
+ '[' '' = stop_pre ']'
+ stop
+ local x= fs=
+ ebegin 'Unmounting network filesystems'
 * Unmounting network filesystems ...
+ . /usr/lib/openrc/sh/rc-mount.sh
++ __IFS='
'
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs
+ '[' -n afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs ']'
+ umount -at afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs
+ eindent
+ : 2
+ '[' 2 -gt 40 ']'
+ export EINFO_INDENT
+ fs=
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4|ocfs2'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4|ocfs2|shfs'
+ for x in $net_fs_list $extra_net_fs_list
+ fs='afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4|ocfs2|shfs|smbfs'
+ '[' -n 'afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4|ocfs2|shfs|smbfs' ']'
+ fs='^(afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4|ocfs2|shfs|smbfs)$'
+ do_unmount umount --fstype-regex '^(afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4|ocfs2|shfs|smbfs)$' --netdev
+ local cmd=umount retval=0 retry= pids=-
+ local 'f_opts=-m -c' 'f_kill=-s ' mnt=
+ '[' Linux = Linux ']'
+ f_opts=-m
+ f_kill=-
+ shift
+ local 'IFS=
'
++ mountinfo --fstype-regex '^(afs|ceph|cifs|coda|davfs|fuse|fuse.sshfs|gfs|glusterfs|lustre|ncpfs|nfs|nfs4|ocfs2|shfs|smbfs)$' --netdev
+ set --
+ unset IFS
+ return 0
+ retval=0
+ eoutdent
+ : 0
+ '[' 0 -lt 0 ']'
+ return 0
+ '[' Linux = Linux ']'
+ '[' 0 = 0 ']'
+ umount -a -O _netdev
+ retval=0
+ eend 0 'Failed to unmount network filesystems'                                              [ ok ]
++ command -v stop_post
+ '[' '' = stop_post ']'
++ command -v cgroup_cleanup
+ '[' cgroup_cleanup = cgroup_cleanup ']'
+ '[' stop = stop ']'
+ yesno ''
+ '[' -z '' ']'
+ return 1
++ command -v cgroup2_remove
+ '[' cgroup2_remove = cgroup2_remove ']'
+ '[' stop = stop ']'
+ cgroup2_remove
+ local cgroup_path rc_cgroup_path
++ cgroup2_find_path
++ grep -qw cgroup2 /proc/filesystems
++ case "${rc_cgroup_mode:-hybrid}" in
++ printf /sys/fs/cgroup/unified
++ return 0
+ cgroup_path=/sys/fs/cgroup/unified
+ '[' -z /sys/fs/cgroup/unified ']'
+ rc_cgroup_path=/sys/fs/cgroup/unified/netmount
+ '[' '!' -d /sys/fs/cgroup/unified/netmount ']'
+ return 0
+ shift
+ continue 2
+ '[' -n '' ']'
+ exit 0
+ sourcex -e /etc/rc.conf
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/rc.conf ']'
+ . /etc/rc.conf
++ rc_shell=/usr/bin/sulogin
++ rc_logger=YES
++ unicode=YES
++ rc_tty_number=12
+ '[' -d /etc/rc.conf.d ']'
+ _conf_d=/etc/init.d/../conf.d
+ _c=netmount
+ '[' -n netmount -a netmount '!=' netmount ']'
+ unset _c
+ sourcex -e /etc/init.d/../conf.d/netmount.default
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/netmount.default ']'
+ return 1
+ sourcex -e /etc/init.d/../conf.d/netmount
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/netmount ']'
+ . /etc/init.d/../conf.d/netmount
++ rc_need=net
+ unset _conf_d
+ sourcex /usr/lib/openrc/sh/runit.sh
+ '[' /usr/lib/openrc/sh/runit.sh = -e ']'
+ . /usr/lib/openrc/sh/runit.sh
+ sourcex /usr/lib/openrc/sh/s6.sh
+ '[' /usr/lib/openrc/sh/s6.sh = -e ']'
+ . /usr/lib/openrc/sh/s6.sh
++ '[' -z '' ']'
++ s6_service_path=/var/svc.d/netmount
+ sourcex /usr/lib/openrc/sh/start-stop-daemon.sh
+ '[' /usr/lib/openrc/sh/start-stop-daemon.sh = -e ']'
+ . /usr/lib/openrc/sh/start-stop-daemon.sh
+ sourcex /usr/lib/openrc/sh/supervise-daemon.sh
+ '[' /usr/lib/openrc/sh/supervise-daemon.sh = -e ']'
+ . /usr/lib/openrc/sh/supervise-daemon.sh
++ extra_commands='healthcheck unhealthy '
+ sourcex /etc/init.d/netmount
+ '[' /etc/init.d/netmount = -e ']'
+ . /etc/init.d/netmount
++ description='Mounts network shares according to /etc/fstab.'
+ yesno ''
+ '[' -z '' ']'
+ return 1
+ for _cmd in "$@"
+ '[' start '!=' status -a start '!=' describe ']'
+ '[' -n '' ']'
++ command -v cgroup_add_service
+ '[' cgroup_add_service = cgroup_add_service ']'
+ grep -qs /sys/fs/cgroup /proc/1/mountinfo
+ '[' -d /sys/fs/cgroup -a '!' -w /sys/fs/cgroup ']'
+ cgroup_add_service
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/blkio/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/cpu/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/cpuacct/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/cpuset/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/devices/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/freezer/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/hugetlb/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/memory/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/net_cls/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/net_prio/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/openrc/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/perf_event/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/pids/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/rdma/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/unified/tasks ']'
+ openrc_cgroup=/sys/fs/cgroup/openrc
+ '[' -d /sys/fs/cgroup/openrc ']'
+ cgroup=/sys/fs/cgroup/openrc/netmount
+ mkdir -p /sys/fs/cgroup/openrc/netmount
+ '[' -w /sys/fs/cgroup/openrc/netmount/tasks ']'
+ printf %d 0
++ command -v cgroup_set_limits
+ '[' cgroup_set_limits = cgroup_set_limits ']'
+ cgroup_set_limits
+ local blkio=
+ '[' -n '' ']'
+ local cpu=
+ '[' -n '' ']'
+ local cpuacct=
+ '[' -n '' ']'
+ local cpuset=
+ '[' -n '' ']'
+ local devices=
+ '[' -n '' ']'
+ local hugetlb=
+ '[' -n '' ']'
+ local memory=
+ '[' -n '' ']'
+ local net_cls=
+ '[' -n '' ']'
+ local net_prio=
+ '[' -n '' ']'
+ local pids=
+ '[' -n '' ']'
+ return 0
++ command -v cgroup2_set_limits
+ '[' cgroup2_set_limits = cgroup2_set_limits ']'
+ '[' start = start ']'
+ cgroup2_set_limits
+ local cgroup_path
++ cgroup2_find_path
++ grep -qw cgroup2 /proc/filesystems
++ case "${rc_cgroup_mode:-hybrid}" in
++ printf /sys/fs/cgroup/unified
++ return 0
+ cgroup_path=/sys/fs/cgroup/unified
+ '[' -z /sys/fs/cgroup/unified ']'
+ mountinfo -q /sys/fs/cgroup/unified
+ rc_cgroup_path=/sys/fs/cgroup/unified/netmount
+ '[' '!' -d /sys/fs/cgroup/unified/netmount ']'
+ mkdir /sys/fs/cgroup/unified/netmount
+ '[' -f /sys/fs/cgroup/unified/netmount/cgroup.procs ']'
+ printf 0
+ '[' -z '' ']'
+ return 0
+ break
+ eval 'printf '\''%s\n'\'' '
++ printf '%s\n'
+ read _d
+ '[' -n '' ']'
+ read _d
+ '[' 0 -ne 0 ']'
+ unset _d
+ eval 'printf '\''%s\n'\'' '
++ printf '%s\n'
+ read _f
+ '[' -n '' ']'
+ read _f
+ '[' 0 -ne 0 ']'
+ unset _f
+ '[' -n '' ']'
+ '[' -n start ']'
+ '[' start = depend ']'
+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
+ '[' describe = start ']'
+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
+ '[' start = start ']'
++ command -v start
+ '[' start = start ']'
+ yesno
+ '[' -z '' ']'
+ return 1
+ for _cmd in $extra_stopped_commands
+ '[' cgroup_cleanup = start ']'
+ unset _cmd
+ case $1 in
+ verify_boot
+ '[' '!' -e /run/openrc/softlevel ']'
+ return 0
++ command -v start_pre
+ '[' '' = start_pre ']'
+ start
+ local x= fs= rc=
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs
+ for x in $net_fs_list $extra_net_fs_list
+ fs=afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs
+ ebegin 'Mounting network filesystems'
 * Mounting network filesystems ...
+ mount -at afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,nfs,nfs4,ocfs2,shfs,smbfs
+ rc=0
+ '[' Linux = Linux ']'
+ '[' 0 = 0 ']'
+ mount -a -O _netdev
+ rc=0
+ ewend 0 'Could not mount all network filesystems'                                           [ ok ]
+ '[' -z '' ']'
+ rc=0
+ return 0
++ command -v start_post
+ '[' '' = start_post ']'
++ command -v cgroup_cleanup
+ '[' cgroup_cleanup = cgroup_cleanup ']'
+ '[' start = stop ']'
++ command -v cgroup2_remove
+ '[' cgroup2_remove = cgroup2_remove ']'
+ '[' start = stop ']'
+ '[' -z '' ']'
+ cgroup2_remove
+ local cgroup_path rc_cgroup_path
++ cgroup2_find_path
++ grep -qw cgroup2 /proc/filesystems
++ case "${rc_cgroup_mode:-hybrid}" in
++ printf /sys/fs/cgroup/unified
++ return 0
+ cgroup_path=/sys/fs/cgroup/unified
+ '[' -z /sys/fs/cgroup/unified ']'
+ rc_cgroup_path=/sys/fs/cgroup/unified/netmount
+ '[' '!' -d /sys/fs/cgroup/unified/netmount ']'
+ '[' '!' -e /sys/fs/cgroup/unified/netmount/cgroup.events ']'
+ grep -qx 3869 /sys/fs/cgroup/unified/netmount/cgroup.procs
+ printf %d 0
+ local key populated vvalue
+ read -r key value
+ case "${key}" in
+ populated=0
+ read -r key value
+ case "${key}" in
+ read -r key value
+ '[' 0 = 1 ']'
+ rmdir /sys/fs/cgroup/unified/netmount
+ return 0
+ shift
+ continue 2
+ '[' -n '' ']'
+ exit 0

Re: No more mount via fstab

Reply #14
I did one more test.

I have a hard disk with an installed xfce that has not been updated for about 3 weeks.
I startet this system and my NAS was mounted automatically.
Installed was cifs-utils 6.12-1 and krb5 1.19.1-1
Then I started an update with
Code: [Select]
sudo pacman -Syu
and restarted the system.

After this reboot cils-utils was raised to 6.13-2 and an automount via fstab did not happen anymore. krb5 stayed on 1.19.1-1.
Despite the downgrade, the NAS was no longer automounted.

I can run this test again with another hard drive with Artix Cinnamon installed and post possible outputs.