Ubuntu gives you three ways to reach the same Windows share, and they are not interchangeable. One is a quick look, one is a working session, and only one is still there after a reboot. Picking the wrong one is why the same share feels reliable for one person and broken for another.
Nothing is wrong with your share - you are probably just using a mount that was designed to be temporary. When you connect from the Files app, Ubuntu creates the connection for your login session and tears it down when the session ends. That is correct behaviour for a quick look at a colleague's folder, and completely wrong for the folder your backup runs into every night. There are three levels - Files app, terminal mount, and fstab - and each one survives exactly as long as it was built to. This page puts them side by side so you can choose deliberately instead of by habit.
Open Files, choose Other Locations, Connect to Server, and enter smb://OFFICE-PC/SharedDocs. Thirty seconds later you are browsing the share. This is a GVFS mount: it lives inside your desktop session, appears in the Files sidebar, and is perfect for grabbing one file from a machine you rarely touch.
A manual mount gives the share a real folder path that every program can use, but it still dies with the session or shutdown.
sudo mkdir -p /mnt/SharedDocssudo mount -t cifs //OFFICE-PC/SharedDocs /mnt/SharedDocs -o username=anshusudo umount /mnt/SharedDocsThis is the right tool for one heavy job - a big copy, a script run, a technician session - on a machine where the share should not outlive the task.
A line in /etc/fstab is an instruction to the system itself: mount this share at every boot, whoever logs in. It uses the same mount.cifs as the terminal command, plus a root-only credentials file so the password is never typed or stored in plain sight. The companion core guide in this series builds that line option by option - credentials file, _netdev, nofail, uid and gid - and tests it before any reboot.
nofail and automount safety options existMatch the mount to the relationship with the machine. A quick look at a folder on a PC you do not own: Files app, every time - a permanent entry on someone else's machine leaves your password file sitting on yours and a dependency you will both forget. A one-off big job: terminal mount, unmounted when finished. Your own office PC and your own Ubuntu machine, used together daily: fstab, set up once, properly, with the credentials file.
Watch the video to see the permanent setup done live, and how it compares with the quick connection you may be using today.
Watch Full VideoA bookmark only remembers where to connect - the connection itself is still made per session, when you click. Nothing in the bookmark asks Ubuntu to reconnect at login, and the GVFS address behind it is created fresh each time. For an always-there folder, only an fstab entry or an automount gives the system that instruction.
Yes - leaving the password out of the command, as shown on this page, makes mount.cifs prompt for it interactively. Nothing is stored, which suits shared machines. The trade-off is honesty in the other direction: a mount that needs a human to type a password can never be automatic, so scheduled jobs and backups cannot rely on it.
If the program works with normal folder paths, a terminal mount to a folder like /mnt/SharedDocs is the clean fit - real path, no boot changes, gone when you unmount. If the program is a file manager or an app that understands smb:// addresses, the Files app route may be enough. Test with the Files route first; escalate only as far as the job requires.