Skip to main content
Question

Renaming Hard Disk

  • January 5, 2019
  • 9 replies
  • 22 views

Forum|alt.badge.img+4

Does anyone know how I could rename the internal hard drive to all have the same name I've selected one time? I would like the ability to modify the name and run it again in the future.

9 replies

donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • January 5, 2019

sudo mv /Volumes/Macintosh HD /Volumes/yadayada

Would be surprised, but not shocked, if any apps give a s**t about the boot drive name...so would test to make sure nothing you're running breaks.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • January 5, 2019

Thank you for the code! What would be the best way to implement this on Jamf Admin?


Forum|alt.badge.img+13
  • Honored Contributor
  • January 6, 2019

lazy typer version:

diskutil rename "/" "newname"


donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • January 6, 2019

Ooh nice...updating my cheat sheet!


Forum|alt.badge.img+20
  • Contributor
  • September 25, 2020

@Nix4Life @donmontalvo is there a new method to rename the drive with Catalina?

in terminal I tested diskutil rename "/" "mac drive"
and it only changed the Catalina main volume while leaving the "old name - Data" volume unchanged.


Forum|alt.badge.img+13
  • Honored Contributor
  • September 28, 2020

@tcandela I have no provisioning until Wednesday, I will report back then


Forum|alt.badge.img+20
  • Contributor
  • September 28, 2020

@Nix4Life thanks.

I had a strange occurrence. Setup a laptop for a user, name the drive Macintosh SSD and FV2 is setup via policy using the filevault payload, a week later i get notifications email that the laptop was removed from FV2 encrypted laptops smartgroup. I check the inventory information in JAMF Pro and I see that it says laptop is not encrypted and the drive is now named Macintosh HD. Information for the laptop in the disk encryption is below. It still shows the recovery key information, and individual recovery key validation shows now 'invalid'

Name: Macintosh HD (Boot Partition)
Last Inventory Update: 09/24/2020 at 2:55 PM
FileVault 2 Partition Encryption State: Not Encrypted
Individual Recovery Key Validation: Invalid
Individual Recovery Key: GGGG-GGGG-FH4Q-AG5P-9KQ9-GGGG
Institutional Recovery Key Status: Not Present
Disk Encryption Configuration: Setup Basic Encryption
FileVault 2 Enabled Users: Leroy, Bob


Forum|alt.badge.img+13
  • Honored Contributor
  • October 1, 2020

Hey @tcandela ,

you are correct. The command we use works for us to name only the harddrive, not the container(s) however you have bought up an interesting point. you could look into running *diskutil list internal virtual | grep for data disk/container* and rename. I have not tried that so test test test and then test


MrRoboto
Forum|alt.badge.img+9
  • Valued Contributor
  • April 13, 2021

If using a script like the following to renamed to Boot volume... the Data volume does not get renamed. Is it okay to leave things as us with two different names?

https://www.jamf.com/jamf-nation/third-party-products/files/935/rename-startup-volume