<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 10/3/2013 9:42 AM, Michael B. Trausch wrote:
<blockquote cite="mid:524D7456.8070800@naunetcorp.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 10/02/2013 03:46 PM, Sean Kilpatrick
wrote:<br>
</div>
<blockquote cite="mid:201310021546.06065.kilpatms@gmail.com"
type="cite">
<p style="margin: 0px; text-indent: 0px;">Anyway,</p>
<p style="margin: 0px; text-indent: 0px;">I have this thumb drive
named {thumb1} I need to rename it [thumb2]</p>
<p style="margin: 0px; text-indent: 0px;">so, as root, I did this:</p>
<p style="margin: 0px; text-indent: 0px;">cd /media</p>
<p style="margin: 0px; text-indent: 0px;">mv thumb1 thumb2</p>
<p style="margin: 0px; text-indent: 0px;">and was told that 'device
or resource busy.'</p>
<p style="margin: 0px; text-indent: 0px;">But if I unmount the
thumb drive, then it isn't seen by the OS, and there isn't anything to
rename.</p>
</blockquote>
<br>
I know that you've already solved the renaming part, but I thought I'd
offer an explanation for this.<br>
<br>
When anything is mounted on a directory, the directory becomes a <i>mount
point</i>. That mount point is special in that it cannot be renamed or
moved, as it is "in use" by the filesystem which is mounted on it.<br>
<br>
<blockquote cite="mid:201310021546.06065.kilpatms@gmail.com"
type="cite">
<p style="margin: 0px; text-indent: 0px;">So, how do I rename this
thing?</p>
</blockquote>
<br>
For future reference, here are commands for renaming/relabeling various
filesystems:<br>
<ul>
<li>ext2/3/4: tune2fs -L <NEWNAME> /dev/foo</li>
<li>btrfs: btrfs filesystem label <NEWNAME> /dev/foo</li>
<li>FAT12/16/32: fatlabel /dev/foo <NEWNAME></li>
<li>exFAT: ???</li>
</ul>
<p>For ISO9660 and UDF, the filesystem names are set at creation.<br>
</p>
<p>These are just the ones I know. I am sure that JFS, XFS, ZFS,
etc. all have their own commands as well.<br>
</p>
<p> — Mike<br>
</p>
<div class="moz-signature">-- <br>
<table border="0">
<tbody>
<tr>
<td> <img src="cid:part1.08000603.09080306@techstarship.com"
alt="Naunet Corporation Logo"> </td>
<td> Michael B. Trausch<br>
<br>
President, <strong>Naunet Corporation</strong><br>
☎ (678) 287-0693 x130 or (855) NAUNET-1 x130<br>
FAX: (678) 783-7843<br>
</td>
</tr>
</tbody>
</table>
</div>
</blockquote>
<br>
Hi all,<br>
<br>
I only read the first message in this thread and the last couple
including the one quoted above. I don't know what happened in between.<br>
<br>
Here's a cool GUI way to rename a thumb drive, or any drive if you can
dismount it. Both Mint / Mate and Ubuntu (pre Unity) have a GUI app
called Disk Utility. I don't remember which menu heading it's under,
probably system or accessories. You can also search for it. If you
system doesn't have it, you can install gnome-disk-utility from the
repositories.<br>
<br>
Plug in your memory stick, then start the program. All your drives
should appear on the left. Then select the memory stick on the left
pane.<br>
<br>
On the right, click the Unmount button. Click the Edit File System
Label button. Change the label to whatever you want and click OK or
Apply or whatever confirmation button is there. You should be good to
go. You can click the Mount button to remount the device or click the
safe removal button and you can remove the device.<br>
<br>
Just thought I'd pass it along.<br>
<br>
Sincerely,<br>
<br>
Ron<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
(PS - If you email me and don't get a quick response, you might want to
call on the phone. I get about 300 emails per day from alternate energy
mailing lists and such. I don't always see new email messages very quickly.)
Ron Frazier
770-205-9422 (O) Leave a message.
linuxdude AT techstarship.com
Litecoin: LZzAJu9rZEWzALxDhAHnWLRvybVAVgwTh3
Bitcoin: 15s3aLVsxm8EuQvT8gUDw3RWqvuY9hPGUU
</pre>
</body>
</html>