Score:2

automatically remount CIFS share

mg flag

I've got a windows laptop with a share named 'share'

The share is mounted on an ubuntu server in /etc/fstab

//lt145/share /mnt/test/lt145 cifs nocase,rw,cred=/etc/cifspasswd,vers=3.11 0 0

It works, but every day when the laptop is turned off and on again the mount does not come back. host is down is the error message.

The only way to get the mount again is

umount /mnt/lt145
mount -a

Can this remount be done automatically? What is normal to mount temporary CIFS shares?

Score:2
ie flag

Add noauto,x-systemd.automount option to the mount in fstab, then the mount will automatically mount when first accessed (not at boot)

https://wiki.archlinux.org/title/fstab#Automount_with_systemd

Serve Laurijssen avatar
mg flag
ok will do that and see if it works. thanks!
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.