[opensuse] automount dvd as DVD, not volume name
Hello: I have openSUSE Leap 15.1 (with KDE 3 it matters). Currently optical media (DVD, CD) is mounted/automounted as /media/<media-vol-name>. I don't like this behavior, I would like these to be mounted as /media/DVD. How can I set it? I don't want to change fstab and set fstab rule. I would like to change the way the system names the recognized media. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
02.09.2020 00:26, Istvan Gabor пишет:
Hello:
I have openSUSE Leap 15.1 (with KDE 3 it matters).
Currently optical media (DVD, CD) is mounted/automounted as /media/<media-vol-name>. I don't like this behavior, I would like these to be mounted as /media/DVD. How can I set it?
You cannot as long as you are using default automount implementation based on udisks. Udisksd calculates mount point itself in order of preference - filesystem label, filesystem UUID, disk%N. You will need to patch sources to change it.
I don't want to change fstab and set fstab rule. I would like to change the way the system names the recognized media.
I want my pony too. But if you need to get it done, just add /etc/fstab line and polkit rule to allow mounting this specific device without password.
Thanks,
Istvan
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/09/2020 06.57, Andrei Borzenkov wrote:
02.09.2020 00:26, Istvan Gabor пишет:
Hello:
I have openSUSE Leap 15.1 (with KDE 3 it matters).
Currently optical media (DVD, CD) is mounted/automounted as /media/<media-vol-name>. I don't like this behavior, I would like these to be mounted as /media/DVD. How can I set it?
Interesting idea.
You cannot as long as you are using default automount implementation based on udisks. Udisksd calculates mount point itself in order of preference - filesystem label, filesystem UUID, disk%N. You will need to patch sources to change it.
Thanks for the explanation :-)
I don't want to change fstab and set fstab rule. I would like to change the way the system names the recognized media. >>
I want my pony too. But if you need to get it done, just add /etc/fstab line and polkit rule to allow mounting this specific device without password.
Why not the "user" option in fstab? I have, probably for decades: /dev/dvd /mnt/dvd auto ro,user,noauto 0 0 -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Carlos E. R. wrote:
I want my pony too. But if you need to get it done, just add /etc/fstab line and polkit rule to allow mounting this specific device without password.
Why not the "user" option in fstab?
I have, probably for decades:
/dev/dvd /mnt/dvd auto ro,user,noauto 0 0
Same here, I have such an entry for my card reader, and the automounter honors that, and uses it instead of the default mountpoint below /run/media -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 2 Sep 2020 07:57:58 +0300, Andrei Borzenkov wrote:
02.09.2020 00:26, Istvan Gabor пишет:
Hello:
I have openSUSE Leap 15.1 (with KDE 3 it matters).
Currently optical media (DVD, CD) is mounted/automounted as /media/<media-vol-name>. I don't like this behavior, I would like these to be mounted as /media/DVD. How can I set it?
You cannot as long as you are using default automount implementation based on udisks. Udisksd calculates mount point itself in order of preference - filesystem label, filesystem UUID, disk%N. You will need to patch sources to change it.
OK. But I remember it was doable in earlier suse versions, like 13.x.
I don't want to change fstab and set fstab rule. I would like to change the way the system names the recognized media.
I want my pony too. But if you need to get it done, just add /etc/fstab line and polkit rule to allow mounting this specific device without password.
I will look into this then. Will in this case DVD device be shown on the desktop and can I right click it to mount it? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/09/2020 21.04, Istvan Gabor wrote:
On Wed, 2 Sep 2020 07:57:58 +0300, Andrei Borzenkov wrote:
I don't want to change fstab and set fstab rule. I would like to change the way the system names the recognized media.
I want my pony too. But if you need to get it done, just add /etc/fstab line and polkit rule to allow mounting this specific device without password.
I will look into this then. Will in this case DVD device be shown on the desktop and can I right click it to mount it?
I don't think so, but you could create your own icon to call a script and do it, I guess. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
participants (4)
-
Andrei Borzenkov
-
Carlos E. R.
-
Istvan Gabor
-
Peter Suetterlin