Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I'm having a strange issue (for me anyway ;-) with the auto-mounting of other partitions on /media. These partitions have other distros and I'm fine in principle with them auto-mounting but I am seeing strange behavior. For example:
1. When doing file/save in dolphin it defaults not to my home directory on my root partition but to my home directory on one of the /media mounts.
2. If I try to open a .html file in my browser that is on my root filesystem it says file not found. When opening the .html file by right-clicking in dolphin and selecting the browser the file opens but the uri window says the file is located on one of the /media partitions.
Maybe my first question is how are these partitions being mounted at all? These is nothing in my /etc/fstab, which only contains entries for /, /boot/efi and /swapfile. I do not have autofs installed. And my second is why does dolphin (at least) think my home/default directory is on one of these other partitions? I rarely need them automounted so would be happy if I could just turn that off and let dolphin and whichever other apps might be confused know about it.
Thanks in advance,
Brian
PS maybe someone could suggest a resource for learning about this kind of thing. I noticed more non-problamatic behaviour when I open an html file which is located on another box's fs which is mounted on mine. Opening that file in brave works but the uri shows /run/... instead of the normal /othermachine directory tree. So I'm curious what is going on.
PPS I have rpi fs mounted on lt. From lt, browse to an html file on rpi and open in vs code. File/save presents the rpi directory as expected. But open the same file in a browser and the uri reported is /run/user/1000/doc/(numbers)/index.html. Again I don't really care because I assume it is some kind of pointer to the actual location. BUT the src/main.js file is not found by the browser.
Last edited by Biscotty666; 09-26-2022 at 04:28 PM.
Reason: More info
Your DE is doing it. I run plain OpenBox myself which does nothing of the kind, can't really tell you how DE-s do it. I happen to know Thunar has daemon mode, it probably is started on Xfce systems when user logs in. KDE certainly has its own, etc.
I believe the desktop's file manager uses something called pmount. Your user needs to be in the plugdev group for this to work, and the devices should not be in fstab. Sometimes the mount is on /media, sometimes on /run/media.
Personally I hate it when computers do things behind your back.
Thanks for the input. I've not gotten very far because I needed to do some work so I moved to my development server and everything is fine there. Back to this a little, according to what I have read it could be related to udisks2, so I masked it and unmounted the /media mounts.I won't know if it works until I reboot, so, at some point. Dolphin is acting normally but I haven't tested any of the apps that had become problematic (this behavior was definitely a change so either I did something (likely) or it happened during an upgrade (possible).
I didn't want anyone to think I was ghosting this. Just busy and since my dev server is working this is a lower priority.
Again thank you and I'll report back what I learn.
Unknown external drives are routinely mounted by udev under /media or /run/media. However, if you have an entry in /etc/fstab for that device udev first checks fstab and it gets mounted accordingly. I use the UUID for the file system on the device in fstab and it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.