If you are having problems to create an installation media for MacOs Sierra here is the solution
- First you need to download installation, if you have DMG File, run the PKG in DMG Image.
- This will copy your installation to your
/Applications/
folder.
- This command will fix the installation to make your USB Drive
sudo plutil -replace CFBundleShortVersionString -string "12.6.03" /Applications/Install\ macOS\ Sierra.app/Contents/Info.plist
- List your volumes to find your Drive. It might be something like "NO NAME" or something else.
ls /Volumes/
- Use your drive path in this command below to create your drive. This process formats the drive.
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/NO\ NAME --applicationpath /Applications/Install\ macOS\ Sierra.app
If you are having issues with the drive, try using Disk Utility
to format as "MacOs Journaled" then try step 3 again.
sudo <Install Package Path>.app/Contents/Resources/createinstallmedia --volume /Volumes/<DRIVE_NAME> --applicationpath <Install Package Path>.app
If you have space
character in anywhere try placing \
character before the space to escape it.