How to edit label of usb drive easily without formatting it. I tried right clicking the device and go to the properties but cannot find anything to edit.
You have to use the mlabel command.
If you get a message like:
Total number of sectors (7831520) not a multiple of sectors per track (63)! You can easily ignore the check by running this command:
Try again and it should work.
The GUI way
You got several options (some require installation). Out of these
Gparted can do this. Rightclick the device and choose label. Needs installation of gparted though.
There are several command line methods:
There is also the Windows method:
Add a line in the
Example to set the label:
I did a little research and I found this official tutorial from Ubuntu Documentation, it will teach you step by step how to rename drives with diferent filesystem (FAT16, FAT32, NTFS, ext2, ext3, ext4, JFS, ReiserFS (v3) and XFS);
The title is "RenameUSBDrive", but it is not only for UBS Drives, it cover a lot of file systems supported by Ubuntu.
Here is the link: https://help.ubuntu.com/community/RenameUSBDrive