Skip to main content
Question

High Sierra --eraseinstall

  • June 14, 2018
  • 13 replies
  • 48 views

Forum|alt.badge.img+3

I am in the process of using the --eraseinstall switch with starttoinstall as documented here:

https://www.jamf.com/blog/reinstall-a-clean-macos-with-one-button/

I use the suggested switches "/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall" ‑‑eraseinstall
‑‑newvolumename "Macintosh HD" --agreetolicense

I receive the following message Error: Could not get license agreement.

Anybody else seeing this issue or have a fix?

Thanks.

13 replies

Forum|alt.badge.img+11
  • Valued Contributor
  • June 14, 2018

@DaneEckert

It might be a typo in your post but I see you forget the & at the end of the command.

 "/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall" --eraseinstall --newvolumename "Macintosh HD" --agreetolicense &

Forum|alt.badge.img+3
  • Author
  • New Contributor
  • June 14, 2018

Thanks. I tried adding the & to the end of the command and now I get "Error 800".


Forum|alt.badge.img+11
  • Valued Contributor
  • June 14, 2018

What happens if you copy the text block I posted and paste it into terminal on a test system?


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • June 14, 2018

I copied that text exactly. My next step is to try a different machine to verify this isn't an issue with the machine I'm testing this on.


Forum|alt.badge.img+16
  • Honored Contributor
  • June 14, 2018

FYI,

The "other" thread says there are issue with FileVault machines...

C


donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • June 14, 2018

Correct me if I'm wrong but isn't the issue that if the current user is not FileVault 2 enabled, the command isn't able to get past the pre-boot screen.


Forum|alt.badge.img+16
  • Honored Contributor
  • June 14, 2018

I am not sure I was just talking about this thread...

https://www.jamf.com/jamf-nation/discussions/28421/re-reinstall-a-clean-macos-with-one-button

C


Forum|alt.badge.img+11
  • Valued Contributor
  • June 14, 2018

This maybe the post Don is referring to...

https://www.jamf.com/jamf-nation/discussions/28421/re-reinstall-a-clean-macos-with-one-button


clint5047
Forum|alt.badge.img+5
  • Contributor
  • June 14, 2018

Are you using the full Apple OS installer, or the "shell" installer? I had the 800 error when I tried this originally and that was because I was using a copy of the installer from my SUS. You can tell the difference between the two because the shell installer is about 15 MB (and it downloads assets on command) and the full installer is about 5 GB. Only the latter actually has the contents to do this. I provided Apple with feedback asking them to remove the command line features from the shell installer.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • June 14, 2018

@chuinder I think this is my issue. Looking at the size of the installer that seems to make sense now.


Forum|alt.badge.img+14
  • Honored Contributor
  • November 5, 2018

@DaneEckert What was your solution? I'm getting the error 800 as well


emily
Forum|alt.badge.img+26
  • Hall of Fame
  • November 5, 2018

@ooshnoo check out the size of the installer that downloaded. If it's not the 5/6GB download you may have a stub that doesn't include the full contents of the macOS installer. Check out installinstallmacos.py as a failproof way to always download a full installer without relying on the Mac App Store or Software Update Servers (also gives you a list of all available macOS installers, not just the most recent shipping macOS version).


Forum|alt.badge.img+11
  • Valued Contributor
  • January 11, 2019

@emily erase-install is a great script that leverages installinstallmacos.py so a choice can be automated such as OS Version or Build ID.