Score:-1

Samba on Ubuntu 22.04 LTS - shared folder not accessible after reboot

cv flag

I've a strange problem with samba on a freshly setup machine using Ubuntu 22.04 I've installed and configured samba successfully to be used as a simple file server in my home network. I can access the shared folder (it's a folder on a different partition on the same physical SSD) from a different computer with Ubuntu on it and as well as from a Windows 10 machine, so far so good. However, after rebooting the server machine and being logged in, the shared folder is not accessible from my other computers. Samba service is running and loaded at startup. The weird thing is, in order to make it work, I just need to open Nautilus file explorer and navigate to the shared folder once. After that, the shared folder is immediately available and works perfectly again on the other machines. This behavior is reproducible on every reboot. Any suggestion how to get rid of this strange workaround?

Thanks, Michael

ar flag
It sounds like you have not set up `/etc/fstab` to auto mount the partition where the shared folder lives. You may want to create a new mount point. Edit your question and add the partition format and the mounted folder location of the partition.
Greiz Deifi avatar
cv flag
Hi, thanks a lot for your fast reply. You are absolutely correct, the auto mount was not set up correctly. I've fixed the mount in the disk utility, now samba works after reboot.
Score:0
cv flag

The auto mount was not set up correctly. I've fixed the mount in the disk utility "Edit mount options" by switching off "User session defaults" and check "mount at system startup" and select the correct name under "identify as". Now samba works after reboot.

ar flag
I am glad that you found the solution and posted the answer. If you could add a few screenshots of the disk utility window, the answer will be even better.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.