LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-04-2018, 04:46 PM   #1
taumeister
Member
 
Registered: Nov 2017
Location: Germany / Bonn
Distribution: Deepin Linux, Debian
Posts: 65

Rep: Reputation: 1
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.
 
Old 04-04-2018, 07:27 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,553

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.

Last edited by yancek; 04-04-2018 at 07:35 PM.
 
Old 04-05-2018, 05:02 PM   #3
taumeister
Member
 
Registered: Nov 2017
Location: Germany / Bonn
Distribution: Deepin Linux, Debian
Posts: 65

Original Poster
Rep: Reputation: 1
I don't see how this could be helpful.

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?
 
Old 04-06-2018, 08:49 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,553

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.
 
Old 04-06-2018, 09:21 AM   #5
taumeister
Member
 
Registered: Nov 2017
Location: Germany / Bonn
Distribution: Deepin Linux, Debian
Posts: 65

Original Poster
Rep: Reputation: 1
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 :=)

Heres a link to the picture to show more detailed

https://pasteboard.co/Hfn02J0.jpg



Greetings

Last edited by taumeister; 04-06-2018 at 09:31 AM.
 
Old 04-07-2018, 08:15 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,553

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.

https://www.linuxquestions.org/quest...rs-4175613546/
 
Old 04-07-2018, 12:07 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
taumeister, how are you mounting?
have you added them to /etc/fstab?
show us some code, some commands, some output.
Code:
mount
would certainly be a good start, and
Code:
ls -l ~
it is possible to add an option to your fstab mount that will hide the "device" from the filemanager:
Code:
comment=x-gvfs-hide
disclaimer: i am using the opposite of that option, but i have been told in another thread that this works.
 
Old 04-07-2018, 03:19 PM   #8
taumeister
Member
 
Registered: Nov 2017
Location: Germany / Bonn
Distribution: Deepin Linux, Debian
Posts: 65

Original Poster
Rep: Reputation: 1
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


Here's my fstab, nothing special.

https://pasteboard.co/HfyI6Mv.png

Quote:
ls -l ~

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.

What do I do with this realization?

EDIT:
HA! but...it works with sshfs

Quote:
sshfs -o allow_other,nonempty,IdentityFile=/home/tom/.ssh/SSH-KEY-DEB-SRV01-03-2018 root@10.0.0.252:/export/01_Bilder /home/tom/Pictures
works and doesnt show up the extra entry in file explorer...cool

Last edited by taumeister; 04-07-2018 at 03:55 PM.
 
Old 04-07-2018, 04:36 PM   #9
taumeister
Member
 
Registered: Nov 2017
Location: Germany / Bonn
Distribution: Deepin Linux, Debian
Posts: 65

Original Poster
Rep: Reputation: 1
it is best if you come up with the solution yourself...
Here's my solution, just in case someone else has the problem.

I installed sshfs and mounted my shares with it.
After a little experimentation and reading at aks ubuntu I found the right setting for me.

my fstab looks like this
https://pasteboard.co/Hfzcrj1.png

and in Nautilus there are no more duplicate entries.
https://pasteboard.co/HfzdmFV.png

voilá, thank you for your thoughts
 
Old 04-08-2018, 03:56 AM   #10
taumeister
Member
 
Registered: Nov 2017
Location: Germany / Bonn
Distribution: Deepin Linux, Debian
Posts: 65

Original Poster
Rep: Reputation: 1
Last Edit on this.

I set up cipher=arcfour, compression=no in my fstab to lower the security and disable the standard compression according to this information:
https://www.smork.info/blog/2013/04/...24-163842.html

This boosted my transfer speed from ~60 to 85mb/s. Actually I get 100mb/s with samba, but..its ok.

And because ssh is not directly forwarded from www to my server, the security thing is ok for me, too.

In the end I came up with

Quote:
sshfs#root@10.0.0.252:/export/01_Bilder /home/tom/Pictures fuse ciphers=arcfour,compression=no,delay_connect,allow_other,_netdev,umask=0,nonempty 0 0
! you have to edit the sshd_config file on the server to allow this first

cipher=arcfour

Last edited by taumeister; 04-08-2018 at 03:59 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Deepin File Manager - Change location of or delete default Documents, Pictures, etc folders CastyMcBoozer Linux Deepin 3 09-12-2017 12:37 AM
How to eliminate duplicate displays in the file Manager - Places? Resistor1 Linux - Desktop 0 05-01-2015 03:45 AM
removing duplicate entries from a text file dunryc Programming 7 12-04-2013 05:38 AM
File permissions, ownership ect,ect atomiccomp Linux - Newbie 2 03-16-2012 05:28 AM
Find duplicate videos and pictures jantman Linux - Software 2 07-17-2007 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration