I plugged in a USB hard drive into a Pi 4, and I wanted to change the label before I started setting it up on the network. I can right-click and try to rename, but it doesn't work, giving me an error about not having permission to do that.

In Windows, it's as simple as right-click, rename, and then done.

How can I do this in the GUI of Raspbian?

  • The procedure varies depending upon how the USB drive is formatted. Plug your drive into your RPi, run this command (yes - from the terminal/command line) & edit your question to include the results: lsblk --fs.
    – Seamus
    Commented Feb 10, 2020 at 4:57
  • What exactly did you "right-click"? Commented Nov 3, 2021 at 15:09

2 Answers 2


One GUI tool which is able to change disk labels is gparted. You may have to install it before use (sudo apt install gparted), then it can be accessed via the start menu. Open it, select the device and partiton you need, and click on "Label File System":

enter image description here

Don't forget to click "Apply" before you quit. Unlike in Windows, partition managers in Linux don't usually make live changes on the disk, giving you an opportunity to undo any pending operation. Arguably, this makes little sense for a label change, but it does when you something more serious, like resizing/moving partitions.


root can change the label, as can anyone in group "disk".

Otherwise, try:

sudo fatlabel /dev/whateveritis new-name

Instead of fatlabel, you may need a different filesystem's label command. like e2label or ntfslabel or exfatlabel.

The "whateveritis" is probably sda1, and your GUI may show it too.

  • Why do you expect that the connected drive is fat formated?
    – Ingo
    Commented Feb 9, 2020 at 20:00
  • Because that's normally how they come.
    – David G.
    Commented Feb 9, 2020 at 20:04
  • In my experience, they usually come exFAT or NTFS. Commented Feb 9, 2020 at 20:20
  • I guess I'm thinking "thumb drive".
    – David G.
    Commented Feb 9, 2020 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.