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

diskutil : getting the disk Identifier from the Volume UUID does not work on Sonoma #2

Open
gase54 opened this issue Dec 28, 2023 · 0 comments

Comments

@gase54
Copy link

gase54 commented Dec 28, 2023

Getting the disk Identifier from the Volume UUID with the command:
DISK_IDENTIFER=$(diskutil list | grep -B 2 "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" | awk 'NR==1{print $NF}')
does not work on Sonoma.
However it works the command:
DISK_IDENTIFER=$(diskutil info "Volname" |grep "Device Identifier" |awk 'NR==1{print $NF}')
where Volname is the the volume name.

Is there another way, using the UUID?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant