January 6th, 2022
<div class="pull-right"><div>Temperature -1F/-18C<p dir="auto"><br />
<hr />
<p dir="auto"><center><h2>Whats in a Name?<br />
As time passes on we end up with a lot of thumb drives, at least I am ending up with a lot of thumb drives. A lot with pictures and a lot with other stuff, but most importantly some with back-up information on them, and in the case of Linux my self boot re-install I screwed something up major drive.
<p dir="auto">There is actually a few different methods and some work for some, some work for others and some just do not seem to work at all. I am very very new to the Linux operating system. It seemed like it took forever to figure out screen capture but I did manage to figure that one out. Most important one for me on screen capture is the alt+prtscr combo button use, it allows the capture of a window.
<p dir="auto"><h3>Step 1<br />
<img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23w2ctfDvucTCuMygACXrkpopeZFzWNPVe2AJnCEu4eZQRbPts2KamwuDkVRMkCzoCF5A.png" alt="Step 1 Name Change" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23w2ctfDvucTCuMygACXrkpopeZFzWNPVe2AJnCEu4eZQRbPts2KamwuDkVRMkCzoCF5A.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/bashadow/23w2ctfDvucTCuMygACXrkpopeZFzWNPVe2AJnCEu4eZQRbPts2KamwuDkVRMkCzoCF5A.png 2x" /><p>
<p dir="auto">This is step one of how to rename a thumb drive.<br />
It starts with <code>sudo fdisk -l, this gives you the view of all disk stuff 99% of which I know nothing nor could care about. The important line is the last line <code>dev/sdc1 that basically equals your thumb drive.<br />
<h3>Step 2<code>sudo file /dev/sdc1 -s will give you this:<p>
<p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23xARAQEnykr1BkoMT4yiCnkfe3YuS7ML8hA2SArEyMMwFS2qJJojH3AqZBiJzTdpvZcJ.png" alt="Step 2 Drive Verification" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23xARAQEnykr1BkoMT4yiCnkfe3YuS7ML8hA2SArEyMMwFS2qJJojH3AqZBiJzTdpvZcJ.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/bashadow/23xARAQEnykr1BkoMT4yiCnkfe3YuS7ML8hA2SArEyMMwFS2qJJojH3AqZBiJzTdpvZcJ.png 2x" /><br />
This step verifies that you are looking at the right drive you want o rename. You can see in the last line the drive is named TDrive. (I had already played with and renamed it a few times)
<p dir="auto"><h3>Step 3The final step is renaming it. The maximum number of characters for a drive name I found was ten (10).<br />
<code>sudo mlabel -i /dev/sdc1 -s ::"TDrive2" You would replace <strong>lable: "TDrive2 " in the above image, (<em>Step 2 Drive Verification) with the name you want to use.<p>
<p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23xKou5nutVqoavDmhRhsKjD5JdgAf86J19Aq6qaRvuoCDmiK2cGM28e5MYqaKtPXFGWf.png" alt="Step 3 Rename the drive" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23xKou5nutVqoavDmhRhsKjD5JdgAf86J19Aq6qaRvuoCDmiK2cGM28e5MYqaKtPXFGWf.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/bashadow/23xKou5nutVqoavDmhRhsKjD5JdgAf86J19Aq6qaRvuoCDmiK2cGM28e5MYqaKtPXFGWf.png 2x" /><br />
The final name I settled on was simply <strong>Back Up.
<hr />
<p dir="auto"><h4>Notes<br />
You may or may not need these additional steps run between step 2 and 3:<p>
<pre><code>
`sudo apt-get install mtools`
Then you might need to configure the mtools drives settings, hence add the following two lines to /etc/mtools.conf (you will need sudo to edit)
second and third drives, first partition
drive u: file="/dev/sdb1"
drive v: file="/dev/sdc1"
From: """https://askubuntu.com/questions/103686/how-do-i-rename-a-usb-drive"""
<hr />
<p dir="auto">It seems that a lot of the help stuff for Linux is pretty difficult to read and figure out at times. none of the sites I looked at mentioned how long a name you could use, I figured it out by trial and error.
<p dir="auto">The above excerpt is typical of most of the stuff I found when trying to figure it out some useful, some not so much
<hr />
<p dir="auto">My desktop with the renamed drive, no reboot or refresh or anything once changed in the terminal window it showed the new name.
<p dir="auto"><img src="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23tRt95HH9M3obnJkgS1gVbWFtxoRXgTX2GoFsid9oWDHgN3oMPc9yJcxJi1Gm7H5o2hG.png" alt="My Desktop 1-7-22" srcset="https://images.hive.blog/768x0/https://files.peakd.com/file/peakd-hive/bashadow/23tRt95HH9M3obnJkgS1gVbWFtxoRXgTX2GoFsid9oWDHgN3oMPc9yJcxJi1Gm7H5o2hG.png 1x, https://images.hive.blog/1536x0/https://files.peakd.com/file/peakd-hive/bashadow/23tRt95HH9M3obnJkgS1gVbWFtxoRXgTX2GoFsid9oWDHgN3oMPc9yJcxJi1Gm7H5o2hG.png 2x" />
<p dir="auto">I hope a few found this useful, I will be trying to share things as I find them if I think they would be of help, I think the renaming of thumb drives is a good thing to know. Also I have a tendency to forget things I learn and need to relearn them until they get used enough they just become second nature.
<p dir="auto"><center><sub>Tiny Picture links back to my blog:<center><a href="https://peakd.com/@bashadow" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/100x50/https://files.peakd.com/file/peakd-hive/bashadow/CSiw0Xl5-avatar3.png" />
<p>
Gparted has an easy GUI interface for renaming drives.
It is kind of unrelated but SimpleScreenRecorder is awesome for making videos.
Cheers!
When you are new as I am to a new operating system, no help, info is unrelated. I will check that out, because I am sure I will forget how on the next USB Thumb Drive I buy. that was the main reason for the post, my own memory aid.
Thank you. It is appreciated.
PIZZA Holders sent $PIZZA tips in this post's comments:
(1/5) @pixresteemer tipped @bashadow (x1)
You can now send $PIZZA tips in Discord via tip.cc!