Cifs mount odd behavior after 26.04 upgrade

Ubuntu Version

Ubuntu 26.04 LTS

Desktop Environment (if applicable)

Other

Problem Description

The computer I am seeking help with previously had Ubuntu 24.04 installed on it. No issues with anything just wanted to do the upgrade since I did it on my laptop and had no issues so I decided to upgrade my other Ubuntu machine.

Prior to the upgrade I had multiple network cifs mount added to my fstab file. All my cifs mounts would appear on the dock as mounted drives and when I would open the file app all the cifs mounts would appear under all the shortcuts on the left side of the window but each mount had an eject icon on each drive.

Now step forward to this updated Ubuntu install and my cifs mounts do not behave this way. They will not appear in my dock nor will they appear in my files app except if I make a shortcut to it and then its in with all the other shortcuts it doesn’t behave as a mounted drive it behaves like any other directory.

For clarification I did have a lot of issues with this upgrade so this may be a side effect that I can’t figure out. When I went to perform the upgrade I started the upgrade from the terminal. Everything was going fine the upgrade started downloading then started install. Now sometime after the download started and the install officaly begin/started I walked away from the computer and was going to check on it in 15 minutes or so. In that time there was a power serge and the computer shut off during the upgrade. I tried turning it on but was stuck at a terminal that wouldn’t accpt any keyboard inputs. I crated a new USB live boot disc with 26.04 installed and tried doing a boot repair but culdn’t figure it out or get it to work so I decided to format the harddrive and do a fresh installed of Ubuntu. During the first attempt the install failed after the reboot where it tells you to remove the install media, after I removed the USB drive the Ubuntu logo would appear and would stay stuck on the little circle doing its thing. So I started the install again this time I went into the bios formated the harddrive there and re did the install and everything is working . . . sort of.

The biggest issue I have is the cifs . . . behavior. There have been other issues that I have had to work out but was able to get them fixed. Whats going on did I do something wrong during the install, is there a setting somewhere that i don’t know of? My laptop with 26.04 is working just fine cifs behaves in the same exact manner at 24.04 with no issues and no need to fix anything.

Run findmnt -t cifs -o TARGET to see whether the shares are mounted at all. A fresh 26.04 install likely doesn’t have cifs-utils, and without it the fstab lines fail and the mount points stay as plain directories.

sudo apt install cifs-utils
sudo mount -a

If findmnt already lists them, add x-gvfs-show to the options on each cifs line in /etc/fstab, then run sudo systemctl daemon-reload and log out and back in. Files and the dock show a mount with that option as a drive with an eject icon.

The cifs lines in your laptop’s /etc/fstab are a working reference to copy the options from.

Drafted with AI.

the findmnt command shows me the cifs mount and cifts-utils was already fully installed. I did put that x-gvfs-show tag into my fstab and fixed it. However for it to fully work you have to add

comment=x-gvfs-show

to the cifs line in fstab.

Thank you for the help I just wish should one could tell me why I have to add this tag to my fstab all of a sudden.

Files only shows an fstab mount as a drive when the mount point is under /media or your home folder, or the line has x-gvfs-show.

The old 24.04 /etc/fstab most likely had one of those, and the cifs lines you added after the reinstall didn’t.

Drafted with AI.

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.