Re: Automatically mounting USB sticks
Michael <[email protected]>
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Message-ID | <3694748.iIbC2pHGDl@lenovo> |
On Wednesday, 18 March 2026 21:10:12 Greenwich Mean Time Dr Rainer Woitok wrote: > Greetings, > > since my migration to Gentoo years ago I had configured my system to au- > tomatically mount an inserted USB stick at "/run/media/rainer/", display > a message in the upper right corner of my desktop which looked at least > similar to the messages displayed via command "libnotify-notify-send", > and then I could change into that directory and work on the files on the > USB stick. > > In my old notes of setting-up Gentoo I didn't find anything about how I > achieved that, but perhaps the description above is ringing a bell some- > where. Mind that my description does NOT fit package "net-fs/autofs" > which automounts some device as soon as one accesses the mountpoint and > which is not installed. > > Yesterday I did a routine Gentoo upgrade and built new kernel "sys-ker- > nel/gentoo-sources-6.18.18". After this the procedure of inserting a > USB stick and waiting until it had been mounted at "/run/media/rainer/" > still worked as normal and allowed me to save the upgrade change log on > the USB stick before I shutdown my laptop. > > Today I booted the new kernel, inserted a USB stick but it was no longer > mounted automatically. So I rebooted into the old kernel which now be- > haved exactly the same: no mounting whatsoever :-( > > Thus the odds are that some of the packages upgraded yesterday now re- > quire different USE flags for providing what I was used to. But which? > > Here is the list of the packages processed yesterday: > >>> kde-frameworks/ksecretd-services-6.23.0 > >>> dev-lang/rust-common-1.92.0 > >>> sys-devel/m4-1.4.21 > >>> sys-firmware/intel-microcode-20260227_p20260227 > >>> dev-libs/openssl-3.5.5-r2 > >>> net-libs/gnutls-3.8.12 > >>> sys-apps/less-692 > >>> app-editors/nano-8.7.1 > >>> sys-apps/ed-1.22.5 > >>> net-misc/rsync-3.4.1-r2 > >>> dev-tcltk/blt-2.5.3-r4 > >>> dev-tcltk/tix-8.4.3-r5 > >>> sys-libs/pam-1.7.2 > >>> sys-apps/util-linux-2.41.3-r1 > >>> sys-process/procps-4.0.5-r4 > >>> kde-frameworks/extra-cmake-modules-6.23.0 > >>> sys-fs/cryptsetup-2.8.4 > >>> sys-apps/openrc-0.63-r1 > >>> sys-fs/fuse-common-3.10.4-r3 > >>> dev-libs/elfutils-0.194-r1 > >>> sys-devel/binutils-2.46.0 > >>> media-gfx/exiv2-0.28.8 > >>> sys-kernel/gentoo-sources-6.18.18 > >>> sys-apps/man-pages-6.16-r2 > >>> kde-frameworks/breeze-icons-6.23.0 > >>> dev-lang/rust-1.92.0_p1-r1 > >>> app-antivirus/clamav-1.5.2 > >>> kde-frameworks/kwidgetsaddons-6.23.0 > >>> kde-frameworks/karchive-6.23.0 > >>> kde-frameworks/kdbusaddons-6.23.0 > >>> kde-frameworks/kitemviews-6.23.0 > >>> kde-frameworks/kcodecs-6.23.0 > >>> kde-frameworks/kglobalaccel-6.23.0 > >>> kde-frameworks/threadweaver-6.23.0 > >>> kde-frameworks/kdoctools-6.23.0 > >>> kde-frameworks/kimageformats-6.23.0 > >>> kde-frameworks/kconfig-6.23.0 > >>> kde-frameworks/kcoreaddons-6.23.0 > >>> kde-frameworks/ki18n-6.23.0 > >>> kde-frameworks/kguiaddons-6.23.1 > >>> kde-frameworks/kwindowsystem-6.23.0 > >>> kde-frameworks/sonnet-6.23.0 > >>> kde-frameworks/solid-6.23.0 > >>> kde-frameworks/kservice-6.23.1 > >>> kde-frameworks/kcolorscheme-6.23.0 > >>> kde-frameworks/kcompletion-6.23.0 > >>> kde-frameworks/kcrash-6.23.0 > >>> kde-frameworks/kpty-6.23.0 > >>> kde-frameworks/kiconthemes-6.23.0 > >>> kde-frameworks/kconfigwidgets-6.23.0 > >>> kde-frameworks/ktextwidgets-6.23.0 > >>> kde-frameworks/kded-6.23.0 > >>> kde-frameworks/kxmlgui-6.23.0 > >>> kde-frameworks/kbookmarks-6.23.0 > >>> kde-frameworks/knotifications-6.23.0 > >>> kde-frameworks/kjobwidgets-6.23.0 > >>> media-video/wireplumber-0.5.13_p20260216 > >>> media-video/ffmpeg-8.0.1 > >>> www-client/firefox-bin-148.0.2 > >>> media-libs/opencv-4.12.0-r1 > >>> media-video/vlc-3.0.23 > >>> kde-frameworks/kwallet-6.23.0 > >>> kde-frameworks/kwallet-runtime-6.23.0 > >>> kde-frameworks/kio-6.23.0 > >>> kde-frameworks/kparts-6.23.0 > >>> kde-frameworks/kcmutils-6.23.0 > > <<< dev-lang/rust-1.89.0 > <<< sys-devel/binutils-2.45.1 > <<< sys-kernel/gentoo-sources-6.12.41 > <<< sys-kernel/gentoo-sources-6.12.58 > > Anybody having some idea? Any pointers welcome :-) > > Sincerely, > Rainer AFAIK it's usually a desktop functionality. If you use Plasma launch SystemSettings, go to 'Disks & Cameras' and select your preferred device auto- mount behaviour. If you are using a stripped down desktop rather than a full DE, then a combo of a udev rule with /usr/bin/udisksctl should be able to achieve the same.
signature.asc
(application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE----- iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmm7IrgbFIAAAAAABAAO bWFudTIsMi41KzEuMTEsMiwyAAoJELHqqvbClWcZ210QANoANtC5LWHp8dZTnrz/ T2X9LuCtGhzc4u9/QMckyBfsjbGEB1KSBruZTPTlVHUwYl3/6KsZnPkrb0n+PBIn 7LAbk+xqvH4E60cRBtWyKC7Q7UZcXmiqf5tqItQEr1pEQLZDbWMsy0T4DAjRlgGt Y12/7C3s/sDgsf7psmDvMMO6pOr7lhIc11JfhzUo/REPKnexiSL/8jrnMFzrnAw6 MApDkjOUToRwYiym8nCUPnz5N+ISL4QRh6Cqsm9ZoCT5OHqaM1MbOPakT0d0LHgM 5efxTvqYk/9SQp6ST/WqfgVXkAMHoEWOR5NAknhpmQWRN4FDHEKy2LGV/taoBJLL WQNk0v1kEyoeqbx/GGGchqmLvoW+RqNwqyUmO3SmvSqfVAPO7P0pVPP5PG+ThorA fmsmTCuJ+DW4tE4v9HH4ojuYXsiIAFgcvsE1C8lmHnrshQpbPIkW6llXGz3Ppknb VnbaglEyvBFFoz9MOnDQSWZcPwDypKJ0WsfSlqAiIt5HC3vRkHbdBdsQSYI3tsNO LNZj5C6BlqGpNijKnBXcDvf03pL79lRhNXudvbcoAoUCbpY0fqecQ2ouQttDqrqa 5sm1aTzoyRPL20Lq3stnLUwfhfPATc3hzMz6w1y4NPjlnVcOuk3uFCd4pdjsM1IJ 9yim4H7ACYw1FdXBsGqDXjmz =IiQx -----END PGP SIGNATURE-----