Linux · Windows

How to volume label (disk name) on windows and Linux of a (windows file-system, vfat)


This will only work if the disk portion is formatted on msdos file system with a label type dos

Change volume label (disk name) on windows:

Insert the disk on windows machine

Option 1

  1. Go to my computer and right click on the disk you want to re-name.
  2. Click on rename.
  3. Set new name

And you are done changing the disk name

Option 2

  1. Go to my computer and right click on the disk you want to re-name.
  2. Click on properties
  3. Under the general tab you shall see an editable text box where you can place the name of the disk
  4. Change the name as you wish

And you are done changing the disk name

Change volume label (disk name) on Linux:

Check the disk label name: Option1

First check the disk label name using the following command

sudo lsblk -f

This shall display the disk label name of all the attached disk along with the device name and mount point as following:

sudo lsblk -f
sudo lsblk -f

The name found is under Label “32GB”

Check the disk label name: Option2

Alternatively, this is a little more complicated

Install the dosfstools by executing the following command:

sudo apt-get install dosfstools

After installation run

sudo disk -l

from this output identify the disk based on the size and device name.

In this case, it is /dev/sda1

now to check the disk name with the following command

sudo dosfslabel /dev/sda1

this shall display the label of the disk

dosfslabel on linux, display label, change label
sudo dosfslabel /dev/sda1

which is “32GB” as you can see

Change the name of the disk:

To change the name of the disk you shall need to have dosfstools backage installed. If you don’t already have it install it with the following command:

sudo apt-get install dosfstools

Now to change the name

sudo dosfslabel /dev/sda1 pendrive1

to see if the change has taken effect run on of the following command

sudo dosfslabel /dev/sda1

or

sudo lsblk -f

Please leave a command if you find it find this post useful or want  any addition input. Thanks.

Advertisement

2 thoughts on “How to volume label (disk name) on windows and Linux of a (windows file-system, vfat)

  1. This is hard to understand because it talks about a missing label in the sudo lsblk -f output. Then, it talks about changing the volume label name.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s