In Mint 18.3 mounted Samba shares showed up on desktop along with mounted local drives. They don't do that in 19.0 anymore, and I only have local drives there. I can add the Network icon, but would prefer to have my network drives as separate icons on my desktop.
I copied all the share drive icons from /mnt folder to the desktop with CTRL+SHIFT+ALT dragging. Is this the preferred method to get them to show up on desktop?
Mounted Samba shares don't show up on desktop [SOLVED]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Mounted Samba shares don't show up on desktop [SOLVED]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Mounted Samba shares don't show up on desktop
I'm not sure I understand how you are mounting these samba shares but:
Anything - and I mean anything ... local partitions to remote samba shares - will display a mount icon if the mount point is under /media or in your home directory. If they are mounted anywhere else they will not. Based on your post they are mounted under /mnt. Change the mount point to be under /media.
Anything - and I mean anything ... local partitions to remote samba shares - will display a mount icon if the mount point is under /media or in your home directory. If they are mounted anywhere else they will not. Based on your post they are mounted under /mnt. Change the mount point to be under /media.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Mounted Samba shares don't show up on desktop
Mounting via fstab, forgot to mention that.altair4 wrote: ⤴Mon Aug 20, 2018 12:57 pm I'm not sure I understand how you are mounting these samba shares but:
Anything - and I mean anything ... local partitions to remote samba shares - will display a mount icon if the mount point is under /media or in your home directory. If they are mounted anywhere else they will not. Based on your post they are mounted under /mnt. Change the mount point to be under /media.
Yes, they were mounted at /mnt, but changing the mount point to /media fixed it, thanks! Strange that mounting worked fine in /mnt in 18.3, but not anymore.
Also strange that local drives are mounted under /mnt but shares on /media. Is there a reason for that?
Re: Mounted Samba shares don't show up on desktop
Things ( local partitions or shares ) are mounted where you tell them to mount - unless you use the file manager to mount in which case they mount to /media/$USER/XXX for partitions and /run/user/$UID/gvfs for shares.
Based on forum posts it appears that the application Disks has a proclivity to mount things under /mnt then adds a gvfs helper called x-gvfs-show that forces the mount to appear on the desktop just as if they were mounted under /media. It is a convoluted kind of logic to me. It is however a confirmation of a long held opinion that application design should never be done by software developers but by subject area experts.
Based on forum posts it appears that the application Disks has a proclivity to mount things under /mnt then adds a gvfs helper called x-gvfs-show that forces the mount to appear on the desktop just as if they were mounted under /media. It is a convoluted kind of logic to me. It is however a confirmation of a long held opinion that application design should never be done by software developers but by subject area experts.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Mounted Samba shares don't show up on desktop
That made me lol for real It is indeed strange that the mount points vary so much depending on the mounting method. From end-user POV it would be clearest if all local and shared drives would mount under one folder on all systems by default, perhaps under separate sub-folders (e.g. /media/local/XXX and /media/shared/XXX) if necessary.altair4 wrote: ⤴Tue Aug 21, 2018 6:45 am Things ( local partitions or shares ) are mounted where you tell them to mount - unless you use the file manager to mount in which case they mount to /media/$USER/XXX for partitions and /run/user/$UID/gvfs for shares.
Based on forum posts it appears that the application Disks has a proclivity to mount things under /mnt then adds a gvfs helper called x-gvfs-show that forces the mount to appear on the desktop just as if they were mounted under /media. It is a convoluted kind of logic to me. It is however a confirmation of a long held opinion that application design should never be done by software developers but by subject area experts.
Thanks again for help, was an easy fix after all and I learned something new!
Re: Mounted Samba shares don't show up on desktop
Now I get the issue that I need to run sudo mount -a to get the drives to mount, although I have them in fstab. How do I ensure that the network drives are automatically mounted on startup?
Re: Mounted Samba shares don't show up on desktop
When you ask a question in a forum where they let anyone answer you have to deal with the responders prejudices.
So ... I'll give you two methods - depending on why you want them mounted at boot:
[1] This method will not automount at boot. It will mount them through the file manager when needed with a simple click: On Demand CIFS Mounting of Shares: viewtopic.php?f=42&t=222087
Short version: Add two more options to your cifs line in fstab:
Since your mount point is now under /media this method will make the link on the side panel of your file manager "actionable" by an ordinary user ( the "user" option ). Click on it to mount. Click on it again to unmount.
[2] This method basically runs
** Create a file at /etc/network/if-up.d/fstab
** Add this to it:
** Make the file executable:
The problem here is that fstab is being run before the network stack in Mint is up and operational. Option [1] will be done after you log in so the network should be up by then. Option [2] directs the system to issue a "mount -a" only after the network is up.
I personally use option [1] which is why I listed it first......
So ... I'll give you two methods - depending on why you want them mounted at boot:
[1] This method will not automount at boot. It will mount them through the file manager when needed with a simple click: On Demand CIFS Mounting of Shares: viewtopic.php?f=42&t=222087
Short version: Add two more options to your cifs line in fstab:
user,noauto
Since your mount point is now under /media this method will make the link on the side panel of your file manager "actionable" by an ordinary user ( the "user" option ). Click on it to mount. Click on it again to unmount.
[2] This method basically runs
mount -a
automatically.** Create a file at /etc/network/if-up.d/fstab
** Add this to it:
Code: Select all
#!/bin/sh
mount -a
Code: Select all
sudo chmod +x /etc/network/if-up.d/fstab
I personally use option [1] which is why I listed it first......
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Mounted Samba shares don't show up on desktop
Ah that was my suspicion, thanks for confirming. I prefer method two so I don't have to edit any of my scripts due to mount point change. A bit late, but thanks again for help!altair4 wrote: ⤴Sat Aug 25, 2018 12:09 pm The problem here is that fstab is being run before the network stack in Mint is up and operational. Option [1] will be done after you log in so the network should be up by then. Option [2] directs the system to issue a "mount -a" only after the network is up.