You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Problem with terminal trying to create macOS sierra usb boot drive

I formatted my USB and I am trying to create a macOS Sierra boot drive for my MacBook air 2011 (a1466). I followed all the steps on a youtube guide and I got to the point where I typed


sudo (dragged and dropped create install media) --volume (dragged and dropped usb drive)


and pressed enter. But when I entered my password, I was not prompted to erase the usb and install, instead it gives me usage, list of arguments (volume, applicationpath, and nointeraction), and an example. I tried using this usage/example aswell but it just says command not found


Any help would be appreciated!



[Edited by Moderator]

Posted on Oct 14, 2024 9:41 AM

Reply
8 replies

Oct 14, 2024 7:57 PM in response to enniow

FYI, the macOS 10.12 Sierra installer is broken when used to create a bootable macOS USB installer. Apple was informed of this issue many years ago and instead of fixing it, Apple removed it from the download links for several years, but I guess Apple forgot it was to be hidden.


The fix is extremely simple and requires changing one character within a single file within the installer package.....yes, that is too hard for Apple to do themselves. Here is the Terminal command you need to use to fix the installer prior to using Apple's command line instructions:

sudo  plutil  -replace  CFBundleShortVersionString  -string "12.6.03"  /Applications/Install\ macOS\ Sierra.app/Contents/Info.plist


FYI, here is one of the older links to show this has been an issue since at least 2021, plus it provides a bit more detailed instructions.....see post by Eau Rouge:

Trouble creating bootable disk for Sierra. - Apple Community





Oct 14, 2024 11:06 AM in response to enniow

What you showed ending with Done is completed, yes.


Any Mac that’ll run macOS 10.12 Sierra will also run macoS 10.13 High Sierra.


macOS 10.13 has various updates and fixes that missed macOS 10.12, and includes newer network security updates.


Older systems can have difficulties making connections to newer systems with newer security requirements, if the connections from older systems are not just blocked.


Maybe the following works with macOS 10.12, if the command syntax somehow changed:

sudo "/Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia" --volume /Volumes/pleasework --applicationpath "/Applications/Install macOS Sierra.app"

Oct 14, 2024 9:57 AM in response to enniow

Posting the actual command used and the error message shown can sometimes be helpful.


I’lm going to guess you tried to sudo the disk image (DMG) file or the PKG package. That won’t work. The DMG needs to be mounted and the PKG package unpacked, first.


Here are the Apple instructions for the download, including how to access and unpack the installer:



Once unpacked, here are the Apple instructions for creating the install media, and summarized below:


For macOS 10.12 Sierra (I’d strongly suggest using macOS 10.13 High Sierra here), use the following:


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


Alternatively, using (vertical! not angled!) double quotes " syntax to avoid having to escape each of the spaces:

sudo "/Applications/Install macOS Sierra.app/Contents/Resources/createinstallmedia" --volume /Volumes/MyVolume



Again, I’d strongly suggest using macOS 10.13 High Sierra here, as that’s slightly less old and slightly less hassles than macOS 10.12 Sierra will be.


Oct 14, 2024 10:21 AM in response to MrHoffman

Last login: Mon Oct 14 12:41:50 on ttys000


le******g@Le***s-MBP ~ % sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia  --volume /Volumes/pleasework 


Password: (I entered my password)


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"


[Edited by Moderator]

Oct 14, 2024 10:39 AM in response to MrHoffman

Yes, it is mounted and formatted. I am now trying with High Sierra and now it shows


To continue we need to erase the volume at /Volumes/pleasework.


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.

Problem with terminal trying to create macOS sierra usb boot drive

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