Skip to main content
Question

"Startup Disk" list with command line

  • December 13, 2012
  • 5 replies
  • 0 views

Forum|alt.badge.img+17
  • Contributor
  • 352 replies

Hi all,
I know this isn't a Casper question but I thought someone out there has the answer for it and can be good one to determine NetBoot availability.
I am trying to extract the "Startup Disk" preferences pane item list. Any idea where this info comes from?
Thanks for looking!

5 replies

Forum|alt.badge.img+10
  • New Contributor
  • 343 replies
  • December 13, 2012

It's pretty complicated. The Startup Disk preference pane makes some BSDP queries and massages the results. There's no built-in command-line way to get the same info that I know of.


Forum|alt.badge.img+18
  • Valued Contributor
  • 1007 replies
  • December 13, 2012

%systemsetup -liststartupdisks
/Volumes/Lion/System/Library/CoreServices
/System/Library/CoreServices
% sudo systemsetup -setstartupdisk /Volumes/Lion/System/Library/CoreServices


Forum|alt.badge.img+17
  • Author
  • Contributor
  • 352 replies
  • December 14, 2012

thanks for the replies.
@nessts systemsetup -liststartupdisks doesn'y really give me the list? Am I missing something?


mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • 7881 replies
  • December 14, 2012

@Cem, systemsetup -liststartupdisks will only show locally attached volumes, such as an external bootable drive, not network bootable volumes like NetBoot. For the same reasons Greg mentioned in how a Mac locates NetBootable volumes with BSDP calls.


Forum|alt.badge.img+5
  • New Contributor
  • 75 replies
  • December 14, 2012

In some distant version of OS X, there was a command called bsdpc and gave a bunch of useful BSDP things to do, including listing the available NBIs.

However, that was a long time ago and Apple hadn't kept it updated with the progression of the OS. Consequently, the API changes over time has made it a bear to try to compile with the current version of Xcode on Lion & Mtn Lion.

I put in a feature request with Apple this past summer to see if they will update bsdpc and/or create something new that shows NBIs and other things. Asked for primarily a CLI tool as really want to use that during imaging. Also requested they make a change to the BSDP spec so that we can NetBoot to a specified IP address. Older Macs could do that as their EFI was not adhering to the spec. The newer Macs now need to have the IP helper on the routers to get to the NetBoot server on a different subnet using the regular BSDP stuff.

You can try submitting a request to Apple.

Source is at:
http://opensource.apple.com/source/bootp/bootp-254.1/


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings