Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  50] [ 0]  / answers: 1 / hits: 106266  / 2 Years ago, mon, march 14, 2022, 1:35:43

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.


More From » usb

 Answers
1

From Terminal



You have to use the mlabel command.




  • First type the mount command to find out the device location of you pen drive. Find the line which goes like “/dev/sdc1 on /media/disk …”.


  • This means the device sdc1 which is my pen drive is mounted on /media/disk.


  • Next unmount the device.



    sudo umount /media/disk


  • Next use this command.



    sudo mlabel -i /dev/sdc1 ::<new_label>




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:



echo mtools_skip_check=1 >> ~/.mtoolsrc



Try again and it should work.




  • The name of the USB should have changed. Unplug and Plug the pen drive back in and it will be mounted with the new label name.



The GUI way




  • For this you need the Gparted software. Install it if you don’t have it already.


  • Open the software as a super user, and select the pen drive from GParted>Devices>


  • Unmount the device if it hasn’t been, by right clicking on it.


  • After unmounting, right click on it and select “Label” and change it to whatever you want it to be. And then Apply it, by clicking the Edit>Apply All Operations.


  • Your pendrives label should be changed now.




Original Source


[#35244] Tuesday, March 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
montwim

Total Points: 103
Total Questions: 112
Total Answers: 120

Location: Vietnam
Member since Mon, Mar 14, 2022
2 Years ago
;