How to: Rename a Disk Partition in OSX

finder-macintosh-hd-rename-disk-unixtutorial

There are multiple ways to rename a disk partition in OSX, and both should work well depending on your situation.

Use Finder to rename disk partition

You can simply use the Finder to change the disk partition name. In Finder click on the name of your computer, which should be at the top of your file tree, find your partition there, and then just right click on it and click Get info. In the dialog that opens you can easily enter a new name.

Rename MacOS disk partition using command line

In OSX you can also use a command line diskutil tool to rename your partition. Open up the Terminal app, and enter the following command, replacing “old” with your old name, and “new” with your new desired name.

$ /usr/sbin/diskutil rename old new

For example you could do this to change a partition named “Macintosh HD” to My Mac:

$ /usr/sbin/diskutil rename "Machintosh HD" "My Mac"

As you can see you can use quotes in the name.

Note that depending on your set up, that is if your user home directory is not in the root partition, you may have to update your home directory path in System Preferences.

See Also




Contact Me

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
03 Sep 2024

macOS Sequoia 15.0

02 Sep 2024

Video: Has This Worked Before?

24 Mar 2024

Homelab: Mac Pro 2013 32GB

Recent Tweets