Rasberry Pi fstab stopped working

It sees the mounts but no files are shown

Try rebooting again. And this time after the reboot just do this:

mount
ls -l /mnt/Ozarks

osmc@osmc:~$ mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=376680k,nr_inodes=94170,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime)
/dev/mmcblk0p2 on / type ext4 (rw,noatime,stripe=1024)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
systemd-1 on /boot type autofs (rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=45,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mmcblk0p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro,x-systemd.automount)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=76460k,mode=700,uid=1000,gid=1000)
osmc@osmc:~$ ls -l /mnt/Ozarks
total 0
osmc@osmc:~$ ls -lt /mnt/my_movies
total 0

We are going to need full logs at this point. Your mounts now look completely different than they did before, so this is making little sense.

1 Like

Logs are at:
https://pase.osmv.tv/qobudoneje

I think I see your problem:

Apr 10 20:50:31 osmc systemd[1]: Mounting /mnt/Your_Honor...
Apr 10 20:50:31 osmc mount[450]: mount error(127): Key has expired
Apr 10 20:50:31 osmc mount[450]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Apr 10 20:50:31 osmc kernel: Status code returned 0xc0000071 STATUS_PASSWORD_EXPIRED
Apr 10 20:50:31 osmc kernel: CIFS VFS: Send error in SessSetup = -127
Apr 10 20:50:31 osmc kernel: CIFS VFS: cifs_mount failed w/return code = -127
Apr 10 20:50:31 osmc systemd[1]: mnt-Your_Honor.mount: Mount process exited, code=exited, status=32/n/a
Apr 10 20:50:31 osmc systemd[1]: mnt-Your_Honor.mount: Failed with result 'exit-code'.
2 Likes

image

somehow that had changed to must change at next login
I set it back to never expire.

However I rebooted and still cannot see my files

This is killing meā€¦ :))
new log at
https://paste.osmc.tv/nunawuvone

Apr 10 21:32:36 osmc systemd[1]: Mounting /mnt/Your_Honor...
Apr 10 21:32:37 osmc ntpd[426]: Soliciting pool server 116.203.151.74
Apr 10 21:32:37 osmc mount[455]: mount error(2): No such file or directory
Apr 10 21:32:37 osmc mount[455]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Apr 10 21:32:37 osmc kernel: CIFS VFS: BAD_NETWORK_NAME: \\192.168.1.100\Your_Honor
Apr 10 21:32:37 osmc kernel: CIFS VFS: cifs_mount failed w/return code = -2
Apr 10 21:32:37 osmc systemd[1]: mnt-Your_Honor.mount: Mount process exited, code=exited, status=32/n/a
Apr 10 21:32:37 osmc systemd[1]: mnt-Your_Honor.mount: Failed with result 'exit-code'.

And from your earlier output of the windows mounts Iā€™d expect this as you donā€™t seem to have that shared. (I didnā€™t notice that the first time I looked at it)

So get rid of that line from your fstab and see if the other 2 mounts work. Then go from there.

2 Likes

That did it. The thing is that I had deleted that directory a long time ago and the other two shares still worked ok. I guess what happened today was that someone the osmc password got changed to must be changed at the next login and that started this whole nasty chain of eventsā€¦,
Thanks for your help

I donā€™t understand why having that line in fstab prevented the other 2 mounts from working. Very strange. Just one of those perfect storm things that happen.

Regardless, glad I was able to help!