Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Disk Partition Name When Booting #779

Closed
owenzhao opened this issue Dec 8, 2021 · 2 comments
Closed

Incorrect Disk Partition Name When Booting #779

owenzhao opened this issue Dec 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@owenzhao
Copy link

owenzhao commented Dec 8, 2021

Machine Model

iMac15,1

Application Version

Latest Build (nightly)

Application Variant

TUI (Text User Interface)

Have you verified whether this issue has been opened before? If no, your issue will be closed

true

Have you verified whether this issue is covered in our guide? ie. Troubleshooting and Legacy Acceleration pages

true

Is this issue with a 3rd party application?

false

What versions of macOS are you seeing the problem on?

macOS 12, Monterey

Where does this issue happen?

Between booting macOS and Login Screen

What is the Issue?

I have an internal SSD and external SSD. The internal was named "iMacHD" and the external was named "12.0.1". I used CCC fully backup (bootable) iMacHD to 12.0.1. So when I booted my Mac, a menu showed:

IMG_0015

However, after I choose "EFI Boot", the next menu I saw the "12.0.1" was changed to "iMacHD" with a USB device icon. I think this was incorrect. It should still be named "12.0.1".

IMG_0016

Any Additional Information

No response

@owenzhao owenzhao added the bug Something isn't working label Dec 8, 2021
@khronokernel
Copy link
Member

khronokernel commented Dec 9, 2021

Are you certain the disk labels are correct in that drive's preboot? You can check with the commands I list at the end.

However rendering issues such as this one would need to filed with OpenCorePkg if it's incorrectly reading the disk label as this is what our back end uses:

# Find your Preboot volume
diskutil list

# From the below list, look for the preboot associated with the external drive
/dev/disk5 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +255.7 GB   disk5
                                 Physical Store disk4s2
   1:                APFS Volume ⁨Big Sur HD - Data⁩       122.5 GB   disk5s1
   2:                APFS Volume ⁨Preboot⁩                 309.4 MB   disk5s2
   3:                APFS Volume ⁨Recovery⁩                887.8 MB   disk5s3
   4:                APFS Volume ⁨VM⁩                      1.1 MB     disk5s4
   5:                APFS Volume ⁨Big Sur HD⁩              16.2 GB    disk5s5
   6:              APFS Snapshot ⁨com.apple.os.update-...⁩ 16.2 GB    disk5s5s
# Mount the Preboot volume
diskutil mount disk5s2

# CD into your Preboot volume
cd /System/Volumes/Preboot

# List all UUIDs
ls
 46923F6E-968E-46E9-AC6D-9E6141DF52FD
 CD844C38-1A25-48D5-9388-5D62AA46CFB8

# Check volume name listed for each entry
cat ./46923F6E-968E-46E9-AC6D-9E6141DF52FD/System/Library/CoreServices/.disk_label.contentDetails
 Big Sur HD%

cat ./CD844C38-1A25-48D5-9388-5D62AA46CFB8/System/Library/CoreServices/.disk_label.contentDetails
 Catalina HD%

@owenzhao
Copy link
Author

Thank you for your reply. I just tested and the disk label was "iMacHD". However, I believe this it will be better to use disk name instead of disk label here.

截屏2021-12-10 下午1 14 39

As you can see clearly, what I called incorrect names, one was disk name, the other was disk label. When a Mac boots, and a user hold Option key to force a booting list, OCL Patcher will should "EFI Boot" allow with all bootable partitions.

As this time, I found that if a disk had already been connected, the disk label was shown. However, if we connect another usb disk, what would be shown was the disk name. So both disk name are disk label were use by OCL Patcher.

I preferred to keep on use disk name instead of disk label. Because disk label were easily duplicated. For example, when I backed up my system with CCC, the destination disk would be label the same, though the disk name was different. So if I have multiple backups, I could not choose them from the disk label. But I could identify them by disk name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants