You are not logged in.

#1 2012-08-03 22:45:57

ehmicky
Member
Registered: 2012-02-07
Posts: 10

Choosing names of folders in /run/media/$USER

Hi there,

I'd like to know if there was a way that partitions automatically mounted in /run/media/$USER be mounted in a folder named after their label, and not their UUID. That is, instead of having my USB key mounting in /run/media/ehmicky/6cd82c-some-crazy-UUID-928d923f, having it mounted in /run/media/ehmicky/MYKEY.
I heard some things about udev rules, but some other people also warned mounting partitions using udev rules was not recommended since it could cause loss of data. So I was looking for another solution.
Thanks a lot !


Stego++, first general-purpose steganography library ever !
Will use most-used steganographic techniques as modules, with crypto and compression support, and high-quality security features. LGPL.
Release by end 2012. Contact me if you know crypto or stego and would be interested in team working with me.

Offline

#2 2012-08-03 23:16:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: Choosing names of folders in /run/media/$USER

It is mounted under whatever name you choose.

It sounds like you're already using some method of automounting - each method uses it's own naming scheme.  If you mount manually, you chose the name.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-08-03 23:38:10

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: Choosing names of folders in /run/media/$USER

ehmicky wrote:

Hi there,

I'd like to know if there was a way that partitions automatically mounted in /run/media/$USER be mounted in a folder named after their label, and not their UUID. That is, instead of having my USB key mounting in /run/media/ehmicky/6cd82c-some-crazy-UUID-928d923f, having it mounted in /run/media/ehmicky/MYKEY.
I heard some things about udev rules, but some other people also warned mounting partitions using udev rules was not recommended since it could cause loss of data. So I was looking for another solution.
Thanks a lot !

/run/media/ is managed (and your devices mounted by) udisks2, so if you want to change the naming scheme, that's where you should start looking (I don't know if it is possible, never had the need to try smile ).

Offline

#4 2012-08-04 21:54:00

ehmicky
Member
Registered: 2012-02-07
Posts: 10

Re: Choosing names of folders in /run/media/$USER

Hi there,
I'm going to look for udisks2, but this seems like a pretty new thing, I'll have to search a bit. Thanks !


Stego++, first general-purpose steganography library ever !
Will use most-used steganographic techniques as modules, with crypto and compression support, and high-quality security features. LGPL.
Release by end 2012. Contact me if you know crypto or stego and would be interested in team working with me.

Offline

Board footer

Powered by FluxBB