Hi g|ass.Houses,

"g|ass.Houses" via <[email protected]> writes:

Hello Guix! I have an external HDD that I want to use with the Guix
system. I only want one user to mount it without root.

Note that who is allowed to mount a disk and where the disk is mounted are two different things.


udisks2 would do the job but it always mounts to /run/media, which I
do not want.

The default location is /run/media/$USER/$DISK_IDENTIFIER, which is only accessible to the mounting user.

I tried adding a udev-rule-service to my config like
this:

[snip]

Likely your device specification is incorrect. You can use `udevadm monitor' and `udevadm test' to make sure that your rules are doing what you expect. You should also change it to use the device’s UUID or disklabel, since "sdb" depends on device topology. If you plug in a USB stick before this disk, your configuration will not work.

You also need to `guix system reconfigure' and `sudo herd restart udev' after adding your udev rules.


...but I saw no changes: it will always mount to /run when I want it
to mount to /media or anywhere on the user's home directory.

Would keeping the default behavior and symlinking from the user’s $HOME work for your case?

 -- Ian

Reply via email to