How do I change the name of a hard drive?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
CindyBrady
Level 1
Level 1
Posts: 8
Joined: Wed Dec 27, 2017 5:55 pm

How do I change the name of a hard drive?

Post by CindyBrady » Thu Feb 22, 2018 5:26 pm

When I click on "Computer", I get a list of hard drives and SSDs. The drive I want to change the name of is called "WDC WD6002FZWX" and so on - long name. I want to call it "Main Hard Drive". How do I change it? (This hard drive is data only - nothing to do with the operating system. My operating system has it's own separate SSD.) I am using Linux Mint Cinnamon Sylvia 18.3.

Many thanks; and thank you for answering my two previous questions (which have nothing to do with this question).

~Cindy! :)
.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: How do I change the name of a hard drive?

Post by Cosmo. » Thu Feb 22, 2018 5:29 pm

On this place you see always the hard coded name given by the manufacturer; you cannot change it.

CindyBrady
Level 1
Level 1
Posts: 8
Joined: Wed Dec 27, 2017 5:55 pm

Re: How do I change the name of a hard drive?

Post by CindyBrady » Thu Feb 22, 2018 5:35 pm

You could change the names in Windows to anything you wanted. I am sure you can do the same in Linux. ~Cindy! :)

cool
Level 1
Level 1
Posts: 41
Joined: Sat May 28, 2011 12:44 am
Contact:

Re: How do I change the name of a hard drive?

Post by cool » Thu Feb 22, 2018 5:39 pm

You could change partition labels with gparted. Right-click the partition you want to change and choose Label.
For the latest visit: https://SpaceEdge.com

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: How do I change the name of a hard drive?

Post by Cosmo. » Thu Feb 22, 2018 5:43 pm

The labels will be added on this place, but you cannot replace the hard coded names with them.

Hoser Rob
Level 11
Level 11
Posts: 3857
Joined: Sat Dec 15, 2012 8:57 am

Re: How do I change the name of a hard drive?

Post by Hoser Rob » Fri Feb 23, 2018 7:53 am

CindyBrady wrote:
Thu Feb 22, 2018 5:35 pm
... I am sure you can do the same in Linux. ~Cindy! :)
Linux isn't Windows and you can never assume that.

User avatar
Termy
Level 5
Level 5
Posts: 762
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: How do I change the name of a hard drive?

Post by Termy » Fri Feb 23, 2018 8:09 am

Not sure via the GUI, but via the terminal, to label a file system (you don't label drives), you can do this in a couple of ways, depending on the file system. For example:

EXT2, EXT3, EXT4

Code: Select all

e2label DEV LABEL
Where DEV is the block device name, such as /dev/sda1, and where LABEL is the new label new to choose. Surround the LABEL in quotes if it has spaces or special characters.

NTFS

Code: Select all

ntfslabel DEV LABEL
The usage for this is as above.

EXFAT

Code: Select all

exfatlabel DEV LABEL
The usage for this is as above.

I imagine Disks (package gnome-disk-utility, command gnome-disks) can do this as well, which is a GUI application. Or, as mentioned, gparted.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

altair4
Level 19
Level 19
Posts: 9024
Joined: Tue Feb 03, 2009 10:27 am

Re: How do I change the name of a hard drive?

Post by altair4 » Fri Feb 23, 2018 8:40 am

I think we are talking about two different things here. "WDC WD6002FZWX" isn't a partition label it's a drive - and in this case I mean drive - id.

Like what you would find by running:

Code: Select all

ls -l /dev/disk/by-id/ | grep sd[a-z]$
EDIT: My opinion - not that anyone has asked for it - if to right click an empty space on the desktop > Desktop Settings > slide the "Computer" icon to off. Then the issue will go away.

If the disk has a partition and you haven't defined it in fstab it will show up on the side panel of nemo. If you don't like the label of the partition itself then use Termy's very detailed post.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

User avatar
shawnhcorey
Level 3
Level 3
Posts: 155
Joined: Thu Jun 17, 2010 11:23 am
Location: The Great White North
Contact:

Re: How do I change the name of a hard drive?

Post by shawnhcorey » Fri Feb 23, 2018 9:55 am

Neither Windows nor Linux nor any OS can change the name of a device; the name is hard-coded in its firmware. What they do is change the label of the partitions. If there's no label, then Windows displays the volume name, like C:, and Linux displays the device name.

There are a number of ways to change the labels, depending on where you want to use a GUI or CLI. All partition-management software will allow you to change the labels and IIRC, there is some that only change the labels.

You can only change the labels if you have root (admin) privileges. When you start the software, it will ask for your password to grant you these privileges.
Don't stop where the ink does.

User avatar
MintBean
Level 9
Level 9
Posts: 2854
Joined: Fri Aug 07, 2015 6:54 am
Location: Blighty

Re: How do I change the name of a hard drive?

Post by MintBean » Fri Feb 23, 2018 10:27 am

So to summarise, you can change the name of a disc mount ('the name of the disc' in common parlance), but not how it appears in 'Computer.' I wouldn't worry about the latter - I personally never use it and it's on the cards to either be revamped or completely removed according to the Mint development roadmap.

Post Reply

Return to “Newbie Questions”