Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to rename the hard drive of my Macbook from "Macintosh HD" to something else without the freaking space. However, after renaming it, many of my applications showed errors immediately and I stupidly restarted my computer. Right now, I cannot log in to my user account because of an error. Everything is blocked...

If someone can tell me how to change the harddrive name back without logging into my previous account, I will appreciate it a lot. It will save my life!


share|improve this question

migrated from Jul 16 '12 at 20:19

This question came from our site for professional and enthusiast programmers.

All right, did it. Start getting answers. Thanks :D – zeroliu Jul 16 '12 at 19:26

You can't log into your account because the OS can't find your user directory. You have to boot the computer keeping pressed command + R to enter the restoration/repair mode. Then go to the "Utilities" in the upper menu and enter "Terminal".

Type: /usr/sbin/diskutil rename "oldname" "newname" where oldname is the name you assigned to the disk and newname should be "Macintosh HD".

If everything is OK you will receive a message informing that the disk was renamed and you can restart your computer and log into your account.

share|improve this answer

You should be able to rename your hard drive; it should not cause problems with the functionality of your computer. I’ve done it dozens of times, and Apple even has a support article explaining how to do it. It’s okay to do, virtually any time, as many times as you want.

Although it is possible some applications could potentially throw errors after renaming the drive, virtually none of them should. For example, the Applications folder is addressed by /Applications, regardless of the hard drive’s name, just as the home folder is accessed by ~/ instead of the user’s home folder name (and other UNIX variables like $HOME and whoami).

My guess is you have another issue (maybe filesystem or ACL permissions issues) and it just happened things have gone awry around the same time.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.