Renaming a Mac hard drive from the command line

You know, if your hard drives are set to show as icons on the desktop, you can rename them by selecting them, hitting Enter, and then typing in a new name? If you want to script naming, you can also name from the command line.

For example, if you want to rename the drive you’re currently booted to and call it Munki Time, you’d use this command:

diskutil rename / Munki\ Time

The forward slash represents the root (top-level) directory and the backslash just escapes the space, so the terminal knows you’re including Time with Munki as one label.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *