<div>If you're using Ubuntu.</div><div><br></div>The simple answer is to just give the drive a label. Then it will mount at /media/<LABEL>. It's using the UUID of the drive probably because you don't have a label.<div>
<br></div><div>Here's how to assign a label: <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://help.ubuntu.com/community/RenameUSBDrive">https://help.ubuntu.com/community/RenameUSBDrive</a></div>
<div><br></div><div>I cannot imagine the other distros being too much different.<br><div><br><div class="gmail_quote">On Sun, Jun 26, 2011 at 4:02 PM, <span dir="ltr"><<a href="mailto:ale-request@ale.org">ale-request@ale.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Date: Sun, 26 Jun 2011 15:58:16 -0400<br>
From: John Pilman <<a href="mailto:jcpilman@gmail.com">jcpilman@gmail.com</a>><br>
Subject: [ale] BASH question<br>
To: Atlanta Linux Enthusiasts <<a href="mailto:ale@ale.org">ale@ale.org</a>><br>
Message-ID: <<a href="mailto:BANLkTikEdAeg6N4cUGE4TSYLsy0ogXpLFA@mail.gmail.com">BANLkTikEdAeg6N4cUGE4TSYLsy0ogXpLFA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
I want to write a shell script or alias to allow me to cd to a<br>
particular directory more easily.<br>
<br>
When I plug in a flash drive, it gets mounted automatically in<br>
/media/102B-1B76, only the last nine characters are not always the<br>
same. Since usually there is only one directory in /media I want a<br>
command that will cd to that directory.<br>
<br>
I tried<br>
/media$ find . -mindepth 1 -type d -prune|sed 's:./::'|xargs cd<br>
but I get<br>
xargs: cd: No such file or directory<br>
however<br>
/media$ find . -mindepth 1 -type d -prune|sed 's:./::'<br>
returns<br>
102B-1B76<br>
<br>
I have also tried the -print0 option, but without further success.<br>
Any ideas?<br>
...John<br></blockquote></div>
</div></div>