Comments (4)
Hey,
udiskie uses UDisks2 as a backend to perform the mount operation. The UDisks API has no parameter to customize the mount location (I guess: security concerns), so this can't be done in udiskie. See also #1.
There might be configuration in UDisks2 to customize the mount points but I don't know about that.
You could create a symlink to the directory, you want to user. I.e. something like
sudo rmdir /var/run/media/your_username
sudo ln -s /media /var/run/media/your_username
EDIT:
You can also try out the udev rule as suggested in this thread.
from udiskie.
Ok, I finally took the time to look at the UDisks2 source to see if anything can be done about this issue. In the function src/udiskslinuxfilesystem.c:calculate_mount_point
one can see that the locations are indeed hard coded. Setting the UDISKS_FILESYSTEM_SHARED environment variable (for the UDisks process, not for udiskie!) will yield the old behaviour, i.e. mount everything in /media
.
If you want a way to customize the mount point, you should contact the udisks devs (if there is not already an issue about this).
I hope, I could be of some help.
Best regards,
Thomas
from udiskie.
Well, I hoped to find a config file like in udevil, but ok.
I found something here
https://wiki.archlinux.org/index.php/Udisks
if you add this new file in udev rules should work:
- create a new file /etc/udev/rules.d/99-udisks2.rules
- copy&paste this line and save
# UDISKS_FILESYSTEM_SHARED
# ==1: mount filesystem to a shared directory (/media/VolumeName)
# ==0: mount filesystem to a private directory (/run/media/$USER/VolumeName)
# See udisks(8)
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1"
- attach your usb drive and check if now udiskie mount in /media
bye
from udiskie.
@coldfix UDISKS_FILESYSTEM_SHARED
is a udev environment variable -- it doesn't work as an environment variable for udisksd
or udisksctl
(I tried).
from udiskie.
Related Issues (20)
- Automount mounts in Read only HOT 15
- Automount only specific device HOT 1
- Automatic unmounting from file manager HOT 1
- Tell daemon to pause automounting HOT 1
- Tray menu shows invalid entry on first launch and icons are hard to see HOT 1
- Unmounting Btrfs partition: Error finding object for block device
- shell completions: need to escape spaces in labels HOT 2
- Not showing "internal HDD" HOT 1
- When use together with `tomb`, it cause problem because of the loop device password prompt. HOT 1
- make appimage or static binary file HOT 1
- Not authorized to mount on Linux Mint HOT 1
- Hide unpower (at least for optical devices) HOT 2
- Fedora package is wrong name on the installation manual HOT 1
- Why does the polkit rule grants permission to users in storage group? HOT 2
- Flat menu style not working HOT 2
- python messages about dbus.py and udisks2.py HOT 6
- Kobo Libra H2O e-reader does not get auto-mounted when connected via USB HOT 8
- Wrong location for bash completions. HOT 1
- Breaks in Python 3.12 due to dependency on distutils HOT 1
- notification_command should be renamed HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from udiskie.