<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <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-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">Anyway,</p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">I have this thumb drive named {thumb1} I need
        to rename it [thumb2]</p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">so, as root, I did this:</p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">cd /media</p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">mv thumb1 thumb2</p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">and was told that 'device or resource busy.'</p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">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>.&nbsp; 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-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;
        -qt-user-state:0;">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 &lt;NEWNAME&gt; /dev/foo</li>
      <li>btrfs: btrfs filesystem label &lt;NEWNAME&gt; /dev/foo</li>
      <li>FAT12/16/32: fatlabel /dev/foo &lt;NEWNAME&gt;</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.&nbsp; I am sure that JFS, XFS, ZFS,
      etc. all have their own commands as well.<br>
    </p>
    <p>&nbsp;&nbsp;&nbsp; &#8212; Mike<br>
    </p>
    <div class="moz-signature">-- <br>
      <table border="0">
        <tbody>
          <tr>
            <td> <img src="cid:part1.00050100.09050001@naunetcorp.com"
                alt="Naunet Corporation Logo"> </td>
            <td> Michael B. Trausch<br>
              <br>
              President, <strong>Naunet Corporation</strong><br>
              &#9742; (678) 287-0693 x130 or (855) NAUNET-1 x130<br>
              FAX: (678) 783-7843<br>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>