Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Carlos E. R." Newsgroups: comp.os.linux.misc Subject: Re: Short name for USB Date: Thu, 9 Feb 2023 18:54:34 +0100 Lines: 33 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net 328GwfXqAxiNTXTi+GdI/w6Shtesm3SVifEGC5vh1V9mAE/jCe Cancel-Lock: sha1:81Od4Ya9pRovhAyX/jKj+Pb1OQg= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Content-Language: en-US In-Reply-To: Xref: csiph.com comp.os.linux.misc:36981 On 2023-02-09 16:39, db wrote: > On 09.02.2023 11.55, Carlos E.R. wrote: >> On 2023-02-09 11:28, db wrote: >>> When I want to operate on a USB, it has a long unwieldy >>> name. How do I give it a short name? I have forgotten >>> how to do it. Alias? Or what? >> >> USB what? A keyboard? A mouse? A scanner? A printer? A modem? >> >  Sigh... a USB stick, which appears e.g. as "/media/.../KINGSTON". > How do I give it a shorter name? It depends on what distro you are using. For example, on openSUSE, the default is "/run/media//name". You can change it to /media/name by creating file /etc/udev/rules.d/99-correct-media-mount-point.rules with line (single line): ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1" and run and "udevadm control --reload" Make sure that /media does exist in advance. Other distros may have other tricks. -- Cheers, Carlos E.R.