When I use this script for Sierra I become error like this

I like create Boot Media for USB.

I use this schript for Sierra:


sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume\ Titel/ --applicationpath /Applications/install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia — nointeraction


But I receive always error messages like this:


sudo: /Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia: command not found


I have idea that this command is not presence in Sierra system.


What shall I do.?

Mac mini, macOS Sierra (10.12.4)

Posted on Apr 2, 2017 5:07 AM

18 replies

Apr 3, 2017 9:01 AM in response to Community User

I don't know why it's not working for you, but the following is the procedure I use and illustrates what you should see. Perhaps you will notice something different than what you have been experiencing.



To create a standalone installer on a USB flash drive or similar removable media, refer to the following instructions: Create a bootable installer for macOS - Apple Support.


Expanded instructions are as follows:


  • Format the USB installer as Mac OS Extended (Journaled) and GUID Partition Map.
  • Make sure its icon is present on your Desktop. Its name isn't important because createinstallmedia will change it.
  • Also, the Install macOS Sierra app must be present in your Mac's Applications folder, otherwise the pathname won't be correct.
  • Make the Finder's Applications window small enough so that you can see it, the Terminal window, and the USB drive icon, all at the same time.


Select the following line by dragging your cursor from just prior to the word sudo to past the word volume:


sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume


Then, Edit > Copy.


Go to the Terminal window, paste that line into the Terminal window, and type a space character. Stop right there; do not press Return.


Drag the USB flash drive icon from your Desktop to the Terminal window, and stop again.


Then, type (or copy/paste) the following into Terminal:


--applicationpath


... followed by another space character.


Then, drag the Install macOS Sierra icon from your Applications folder into the Terminal window.


Finally, you can press Return.


This is an example of what should happen. The name of the USB drive is "untitled" in the following:


MacBookAir2:/ john$ sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/untitled --applicationpath /Applications/Install\ macOS\ Sierra.app

Password: (type your Admin password - it will not be echoed, not even with •••• characters. Then press Return)

Ready to start.

To continue we need to erase the disk at /Volumes/untitled.

If you wish to continue type (Y) then press return: Y

Erasing Disk: 0%... 10%... 20%... 30%...100%...

Copying installer files to disk...

Copy complete.

Making disk bootable...

Copying boot files...

Copy complete.

Done.

MacBookAir2:/john$

When it's finished the name of your USB installer will be Install macOS Sierra and it will be selectable as a bootable device in Startup Manager: How to choose a startup disk on your Mac - Apple Support.


Apr 6, 2017 7:47 AM in response to Community User

( My application is really Sierra.app and not "Install macOS Sierra.app")


The name of the installer app provided by the Mac App Store is Install macOS Sierra as shown in the screenshot below:


User uploaded file


If you change the name of the installer provided by the Mac App Store then it is not possible for me to predict what will occur.


If the name provided by the Mac App Store is different for your location, then you would need to amend the instructions to reflect that name.

Apr 2, 2017 12:10 PM in response to Community User

Well in version12.2.06 of Sierra install application, that file is definitely there at that location.


What version of the installer do you have? Do a Command+i to get a "Get Info" window, and what does it show for "Version" number?


When I try the command "/Applications/Install macOS Sierra.app/Contents/Resourses/createinstallmedia --help" I get the suggested form of the command as


Usage: createinstallmedia --volume <path to volume to convert> --applicationpath <path to Install macOS Sierra.app> [--force]


Arguments--volume, A path to a volume that can be unmounted and erased to create the install media.

--applicationpath, A path to copy of the OS installer application to create the bootable media from.

--nointeraction, Erase the disk pointed to by volume without prompting for confirmation.


Example: createinstallmedia --volume /Volumes/Untitled --applicationpath "/Applications/Install macOS Sierra.app"



This tool must be run as root.


So this implies to me that you should try the command:


sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume\ Titel/ --applicationpath /Applications/install\ macOS\ Sierra.app —nointeraction

So it appears to me that you had two mistakes - one was a space between the "--" and "nointeraction" and the other was the path for the install app itself not the path for the "createinstallmedia" command.

This is just a guess, as I don't want to run this command on my system at the moment.

Good luck...

Feb 14, 2018 12:28 AM in response to dot.com

Hi dot.com,


now I understand where my problem is hidden.

Even I use sudo command, I am in my user account level.

it should still function when I use sudo command, but it not function.

I am administrator but still I cannot login as root. I do not know root psw and I cannot remember it, even to have ask it via installation.

My sierra.app is in applications folder.


Thank you for your help.

Feb 14, 2018 12:28 AM in response to John Galt

Hi John Galt,


thank you for your responce.


it is pity but it does not working. Hear you have my result:


Centurions:~ SeppoI$ sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume

Password:

sudo: /Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia: command not found

Centurions:~ SeppoI$ edit> copy

-bash: edit: command not found


I think that problem is really in a another corner.


Your help was very good, even it does not work by me.


Seppo

Apr 5, 2017 10:50 AM in response to Community User

You did not enter the command correctly - the command is continued on the next line in John Galt example.


It does not appear that you have the sierra install app though. What do you have for these commands in Terminal (there are 3 separate commands - enter one at a time by simply copying/pasting the following):


ls -la /Applications/Install\ macOS\ Sierra.app

ls -la /Applications/Install\ macOS\ Sierra.app/Contents

ls -la /Applications/Install\ macOS\ Sierra.app/Contents/Resources

Good luck...

Feb 14, 2018 12:28 AM in response to dot.com

Hi Dot.com,


I have given this 3 separate command in my Terminal window. One after a another.

Hier is my result:


Centurions:~ SeppoI$ ls -la /Applications/Install\ macOS\ Sierra.app

ls: /Applications/Install macOS Sierra.app: No such file or directory

Centurions:~ SeppoI$ ls -la /Applications/Install\ macOS\ Sierra.app/Contents

ls: /Applications/Install macOS Sierra.app/Contents: No such file or directory

Centurions:~ SeppoI$ ls -la /Applications/Install\ macOS\ Sierra.app/Contents/Resources

ls: /Applications/Install macOS Sierra.app/Contents/Resources: No such file or directory

Centurions:~ SeppoI$


Best regards

Seppo

Feb 14, 2018 12:28 AM in response to John Galt

Hi John Galt,


I follow your script now exactly and it function well until I press Return.

Hear is my result:


Centurions:~ SeppoI$ sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Sierra.app

sudo: /Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia: command not found

Centurions:~ SeppoI


Best regards

Seppo

Feb 14, 2018 12:28 AM in response to John Galt

Hi John Galt,


it is finally there. When I use drag and drop as in your answer you have written on, it funktion well and all folder and name are correct. ( My application is really Sierra.app and not "Install macOS Sierra.app")


I drag my volume in Terminal windows, result is ok.

I drag my Sierra.app in Terminal windows, result is even ok.

But when I press return, I have failure.

Feb 14, 2018 12:28 AM in response to John Galt

Hi John Galt,


Great it function. I cannot believe that only name from App make so big difference.

Her my result:

Centurions:~ SeppoI$ sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\ Sierra.app

Password:

Ready to start.

To continue we need to erase the disk at /Volumes/MyVolume.

If you wish to continue type (Y) then press return: y

Erasing Disk: 0%... 10%... 20%... 30%...100%...

Copying installer files to disk...

Copy complete.

Making disk bootable...

Copying boot files...

Copy complete.

Done.


Very many thanks for you, you are great.


Seppo

Feb 14, 2018 12:28 AM in response to John Galt

Hi John Galt,


may be you have right. I renamed my App back as it could be. Now it is Install macOS Sierra.app.


I will try out if it function and tell you result.


Seppo

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

When I use this script for Sierra I become error like this

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.