[SOLVED] Duplicate entries in file manager when mounting /Pictures, /Videos...ect
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Duplicate entries in file manager when mounting /Pictures, /Videos...ect
I have something fundamental.
Let's say I have a folder structure on a network storage that I always mount at startup.
And in this structure there is, for example, a folder pictures.
I would like to mount this folder pictures at start into /home/tom/Pictures
The same with 'Documents' and 'Videos' etc.
when I mount these folders I have them twice on left side, once the folder 'Pictures' (mounted) itself and once the mountpoint (or Favorite, or what ever you want to call it), which is also displayed to me automatically on the left side.
It would be nice, if I would only see the folder 'Pictures' and therein are the data of my NAS without the extra mountpoint in Filemanager.
My System is Deepin Linux
Ideas or suggestions are welcome
Last edited by taumeister; 04-08-2018 at 03:59 AM.
I haven't used Deepin but, most current file managers will show the directories you mention in a panel in the file manager windows. I would think that the location you want to mount will be problematic as "Pictures, Documents and Videos" are all default directories in each /home/user directory. So in the file manager, before you mount your network directories, you probably see all those directories for each user. So what you see is probably the directories for the user and the network mounts. Might be simpler to create mount points in a different location. The /mnt directory is a good place to do so.
I have a structure with folders
Pictures, Videos, Documents on my NAS and I want to include them on startup.
How can this be useful to mount them to /mnt?
Default systems have those 3 directories as a default. If you have an fstab entry to mount partitions on a network storage at those points, I don't know why you would no be able to access them, or if you can. You should not be able to create directories with those same name in /home/tom as they already exist, could be lower case instead of upper case. If you mount your network partitions, you should be able to view the contents but the contents of the orignal /home/tom/Pictures would not be available. If you unmount that partition, the original content of /home/tom/Pictures would be available. If you want mount points in /home/tom, give a different name. If you don't have anything in those original folders, delete them.
Even if you changed mount points, you would still see the original folders (Pictures, Documents, Videos) as well as your new mount points. If the problem is in differentiating them, give the network ones different names.
Yancec,
I am happy about your help but unfortunately you always misunderstand me.
I'll make it as easy as possible:
I want to mount the folder'Pictures' from my NAS to my local folder'/home/tom/Pictures'.
This works wonderfully of course, but the only downer is that the Pictures folder appears twice in the file explorer the moment it is mounted.
First of course because it's there anyway (that's where my mounted drive Pictures from the NAS is now) and the network drive'Pictures'.
So I have wonderful access, only the double entry bothers me. I only want to see the entry'Pictures' once.
This is because all mounted drives automatically appear in the file explorer.
Bad luck only if you mount it into an already existing folder, for example Pictures or Videos, then it appears twice, cause I cannot suppress the "Auto-show-feature-thing..".
So I think I can't express myself more clearly and exactly :=)
The directories you are referring to are created automatically on install by most Linux systems from entries in the /etc/skel directory. I'm not familiar with the Deepin file manager, but you could take a look at the link below here at LQ where the user had similar question regarding Deepin. See if the link in post 2 helps.
Thanks for your help,
I'm afraid I've already tried all that.
With 'comment' without 'comment' in all variations, but unfortunately the mounted drives are shown separately.
There's someone here with similar problems.
(similar, not the same!) https://bbs.archlinux.org/viewtopic.php?id=226337
drwxr-xr-x 128 tom tom 4096 Apr 4 09:21 Calibre-Bibliothek
drwxr-xr-x 5 tom tom 4096 Apr 7 22:13 Desktop
drwxr-xr-x 2 tom tom 4096 Apr 4 00:00 Documents
drwxr-xr-x 3 tom tom 4096 Apr 4 17:07 Downloads
drwxr-xr-x 17 tom tom 4096 Apr 3 23:54 jd2
drwxr-xr-x 2 tom tom 4096 Jan 6 18:05 Music
drwxr-xr-x 17 tom tom 4096 Apr 7 22:09 ownCloud
drwxr-xr-x 3 tom tom 4096 Jan 6 18:12 Pictures
drwxr-xr-x 3 tom tom 4096 Feb 7 20:11 Steam
drwxr-xr-x 2 tom tom 4096 Jan 6 18:05 Videos
drwxr-xr-x 3 root root 4096 Apr 4 07:31 work
EDIT:
hmm..maybe this is related to the protocol Im using?
maybe it is impossible to hide it when I mount a samba share?
....
EDIT:
Yes, if I mount another partition into 'Pictures', it will not be shown twice...
It's stupid that this is displayed in one protocol but not in the other.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.