20081017 relabel a usb stick - plembo/onemoretech GitHub Wiki
title: Relabel a USB stick link: https://onemoretech.wordpress.com/2008/10/17/relabel-a-usb-stick/ author: lembobro description: post_id: 442 created: 2008/10/17 21:23:43 created_gmt: 2008/10/17 21:23:43 comment_status: open post_name: relabel-a-usb-stick status: publish post_type: post
Relabel a USB stick
Every once in awhile you need to change things. In my case that time came with the purchase of a second 4 GB USB stick. Because it’s formatted FAT32 (or in Linux-speak, vfat), the right tool to use comes out of the mtools
package.
Here’s the command:
mlabel -i /dev/[device] ":: [NewName]"
An example:
mlabel -i /dev/sdb1 ":: KINGS4G1"
Be sure to explicity umount the drive after making this change. Then remove and reinsert. When it comes back up it should show the new name.
If you need to do this for an ext2 or ext3 formatted stick, use the e2label
utility:
e2label /dev/sdb1 KINGS4G1
Copyright 2004-2019 Phil Lembo