Hi Ian!
Just to confirm, if I change the KERNEL value to the disklabel or UUID, would that work? I can try to symlink – just link the directory I want to /run/media then? On Saturday, June 27th, 2026 at 5:46 PM, Ian Eure <[email protected]> wrote: > 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 >
