You are not logged in.

#1 2015-02-09 21:51:02

SpacePirate
Member
Registered: 2013-09-16
Posts: 55

Ranger mount to /run/media/$USER

Hi,

I use ranger and am quite happy with it. I want to automate tasks I do frequently, like mounting and undmounting USB devices, ssh-hosts and images.
My USB-devices are handled by udiskie. For mounting sshfs I wrote a command sshmount. Images I want to open with a small script from rc.conf: "mkdir /run/media/$USER/$file && fuseiso $file /run/media/$USER/$file".
My problems now are the following: I would like my images and sshfs to be mounted in /run/media/$USER. However this folder exists only when a udisks-handled device is mounted. I read that it is ACL controlled (I never bothered understanding those) and got some replies in IRC that I should not touch it myself. How can I ensure that this folder exists so that I can use it for my purpose?
Also I dont know how to handle unmounting, because for each mountpoint there are different options for unmounting: udiskie-umount and fusermount -u. How can I detect which is the correct one?

best regards,
SpacePirate

Offline

Board footer

Powered by FluxBB