苹果技术文章中是这样说的:
To change the label for a volume, you'll need to use the terminal.
step 1:Get the disk number of interest: diskutil list
step 2:Show the current partition labels (note the index of the entry you would like to change): sudo gpt show -l /dev/disk0 (replace disk0 with the disk number from step 1)
step 3:Eject the disk from the Finder (or use the unmount terminal command if you'd like). If you don't do this, you may get a Resource busy error message during the following step.
step 4:Change the partition label as desired: sudo gpt label -i 5 -l "Macintosh HD" /dev/rdisk0 (replace 0 with the disk number from step 1 and replace 2 with the index number from step 2)
(optional) Verify the changes by either repeating step 2 or typing: diskutil info disk0s5