Как переименовать элемент на загрузочном USB-диске OS X

3302
Isaac Dontje Lindell

Я создал USB-диск, который загружает OS X Mavericks или установщик OS X Mountain Lion. Это отлично работает, но я не доволен ярлыками. Если я держу optionво время загрузки Mac, он показывает два варианта загрузки с USB: Install OS X Mavericksи Install OS X. Как я могу обозначить второй Install OS X Mountain Lion? Я попытался установить метку в Finder, которая сохраняется, когда диск монтируется как флэш-диск, но не имеет никакого эффекта, когда он используется в качестве загрузочного диска.

Это возможно?

1

1 ответ на вопрос

2
Spiff

The Mac EFI BootROM boot volume picker may be reading the GPT labels for the partitions without looking inside the partitions and parsing the HFS+ volume format to find the name the volume calls itself internally.

See if this command shows you the same names that the boot picker shows:

sudo gpt -r show -l disk1 

Note, your USB drive may not be disk1 on your system. Use diskutil list to determine the drive device number of your USB drive, and use that in places of disk1 in the command above.

If the command above confirms my hunch, you should be able to change those labels like this:

sudo gpt label -i 2 -l "Install OS X Mountain Lion" disk1 

Note that I assumed that the Mountain Lion partition was at "index 2" in the output of the gpt...show command above. You should replace 2 argument of the -i option with the actual index value for the correct partition, as told by the index column of the gpt...show command output from your system. And of course, replace disk1 with the proper disk device identifier for your USB drive, as I said before.

There's a chance you won't be allowed to relabel a drive that's in use (editing partition tables of drives is considered dangerous, especially when in use) so you might have to make sure none of that USB drive's volumes are mounted when you try to do this.

Standard disclaimers for partition table editing apply: Mistakes made while editing partition tables can cause you to lose access to all the data on your drive. Make sure you've backed up everything important to you (and TEST YOUR BACKUPS) before proceeding to edit a partition table. Be very careful about your disk device identifier so that you're editing the partition table of the drive you really meant to edit.

Кажется, не работает, поскольку этот диск имеет карту разделов MBR. (Я пытаюсь стать модным - на этом диске также есть загрузочный установщик Windows) Isaac Dontje Lindell 10 лет назад 0

Похожие вопросы