Skip to main content
Question

Renaming HD (in a Big Sur/Monterey world)

  • October 20, 2021
  • 1 reply
  • 9 views

rstasel
Forum|alt.badge.img+13

So I'm trying to remediate lots and lots of mis-named "HDs". Mostly when formatted, to reinstall OS, lots of stuff remaining as "APPLE SSD AP0512M Media (Boot Partition)"

I've got a script I grabbed from: https://github.com/therealmacjeezy/Scripts/blob/master/Rename%20Startup%20Volume/RenameStartupVolume.sh

And while it works up to 10.15, it breaks at Big Sur and Monterey because of the new sealed system volume, booting from a snapshot, etc. 

I can rename via just disk1s8s1 but that doesn't rename the container. 

Does anyone have anything that works or is the actual partition just called "Data" 

Thanks! Maybe it doesn't matter.... 

1 reply

Forum|alt.badge.img+15
  • Jamf Heroes
  • October 24, 2021

Hey! I just tried this on my Monterey machine, it worked to change the HD volume name to my $hdName variable:

 

#!/bin/sh $hdName=MacHD /usr/sbin/diskutil rename / $hdName