This forum has been archived. All content is frozen. Please use KDE Discuss instead.

how do I set the usb mount point used by Device Notifier?

Tags: None
(comma "," separated)
User avatar
unhammer
Registered Member
Posts
53
Karma
0
OS
When I click on an ext4 USB drive that's noticed by Device Notifier, it's mounted as /media/02676150-95a0-45dd-95bb-a419705f28d9. I'm guessing that's the UUID, which is stable and thus a very "safe" mount point, but I'd rather have something simple … is there a way to get it mounted somewhere else? (I guess this is a job for the backend, udev or hal or something?)
User avatar
google01103
Manager
Posts
6668
Karma
25
in /etc/fstab add a line similar to:
Code: Select all
UUID=8B05-40CF /media/500mb vfat defaults,auto,user

obviously changing uuid, mount point, file system type and mount options to what's appropriate for your situation

note: just physically removing the device doesn't remove the mount point in /etc/mtab, maybe clicking the safely remove button in device notifier does - don't have time to test now - Update: the safely remove button does remove the mtab entry BUT if you just pull the device out the entry remains and when reinserted you need to click the device notifier connect button (as it does not automatically connect, probably because of the existing mtab entry) and an n+1 duplicate entry is then added to mtab (the disconnect button only removes the latest mtab entry leaving the previous one(s)), no idea if this will cause issues

ps: no idea how to do this on a multi-user system without access to /etc/fstab


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
see https://bugs.kde.org/show_bug.cgi?id=216985 and vote and comment if you think it's a good idea


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
unhammer
Registered Member
Posts
53
Karma
0
OS
Alright, thanks for the solution. Will vote too, seems like something that should be possible to set for the user …
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
A faster (and easier) way to do this is to set the volume label. The tool needed to do this varies depending on the file system however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mue.de
Registered Member
Posts
29
Karma
0
OS
google01103 wrote:in /etc/fstab add a line similar to:
Code: Select all
UUID=8B05-40CF /media/500mb vfat defaults,auto,user

obviously changing uuid, mount point, file system type and mount options to what's appropriate for your situation

I've got that idea to, but there is one restriction: Evertime i boot the system without that usb-drive, there is an annoying question if i want to mount the usb drive or to skip the mounting.
Another way is to give a partition a label in gparted f.eg., the auto-mounting can be controlled by gui (system settings)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]