• Making an OS X Lion installation USB disk from the command line. Bootable USB flash drive macOS Sierra. Two easy ways to create

    20 September Apple finally presented the official release of macOS Sierra. Now all Mac owners can appreciate all the innovations of the operating system by downloading the distribution from App Store.

    But what if you have not one, but several poppies? Should I wait every time until 4 GB of OS is loaded onto my computer? and if you don’t want to stupidly upgrade, but install the system “from scratch” and thereby not drag around various system garbage? Here, creating a bootable flash drive can be very helpful. Do it once and update at least a thousand Macs.

    Compatible Mac Models

    Keep in mind that you can install macOS Sierra on the following macs:

    • MacBook Pro and Air - models from 2010.
    • Mac mini and Mac Pro - also from 2010
    • MacBook - from 2009
    • iMac - from 2009.

    Preparatory operations

    There are two simple and reliable ways to create a bootable USB flash drive. But before we begin to consider them, we will do a number of preparatory actions that are necessary in both cases.

    So, we need:
    1. USB flash drive(at least 8 GB.) Make sure in advance that it does not contain the information you need, since the media will be formatted.
    2. Mac distribution. You can download from the link
    3. The mac itself


    Method No. 1 (standard) using the Terminal

    Make sure the downloaded image is in the applications folder

    1. We connect the flash drive
    2. Open the Terminal (programs>other. Or through Spotlight, control+spacebar)
      Attention! Follow the next steps very carefully!
    3. We write sudo and press space
    4. Now through Finder we go to the folder programs(Applications), then right-click on “install macOS Sierra” and then “show package contents”

    5. Open the folder Resources, find the file createinstallmedia and drag it into the Terminal window
    6. After the lines that appear we write --volume(required two dashes) and press space
    7. Now we transfer the flash drive icon from the desktop to the terminal window
    8. Add - applicationpath and again a space
    9. There's still a little bit left. Drag the “macOS Sierra installation” distribution kit into the Terminal from the program folder and click enter
    10. Enter the password and enter again
    11. If confirmation is required, please write y and enter again
    12. We wait 15-20 minutes and boot macOS flash drive Sierra is ready.

      "Erasing Disk: 0%... 10%... 20%... 30%...100%...
      Copying installer files to disk…
      Copy complete.
      Making disk bootable...
      Copying boot files...
      Copy complete.
      Done."

    By the way, you could simply copy and paste this entire block of commands into the Terminal at once, but practice shows that rarely does anyone get by without syntax errors in this case. So it’s better not a couple of minutes longer, but it’s reliable.

    sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/Untitled –applicationpath /Applications/Install\ macOS\ Sierra.app –nointeraction &&say Done

    Method number 2. Bootable macOS Sierra USB flash drive using the utility DiskMaker X

    Read on topic: — preparing Mac for the transition to macOS Sierra

    This method is also very reliable, and also quite simple.

    1. Insert the flash drive
    2. Download the DiskMaker X utility
    3. Launch and press the button macOS Sierra (10.12)
    4. The utility informs you that it has found the installer in the program folder. Click Use this copy
    5. At this stage, DiskMaker warns that all data on the flash drive will be erased. Click An 8 GB USB thumb drive
    6. Select a flash drive from the list and click Choose this disk
    7. Another warning that data from the flash drive will be deleted, click Erase then create the disk

    Even the fastest and powerful computers Over time, they become clogged with unnecessary files, and Apple computers are no exception. Large quantity garbage on the hard drive can take up a lot free space, and also affect the speed and stability of the computer. Is it possible to quickly find and delete all these unnecessary files that slow down Mac work OS?

    Luckily, Movavi Mac Cleaner is simple and handy tool, which will scan every corner of your system, show you what's taking up disk space, and safely delete everything extra files. Free up gigabytes of space and speed up your computer right now - download Movavi Mac Cleaner and follow our step by step instructions for cleaning up your Mac disk.

    1. Install a Mac OS X cleaning program

    Open installation file and follow the instructions on your Mac's screen to help you install the program correctly. Once installation is complete, launch Mac Cleaner.

    2. Scan the system

    As soon as you launch Mac Cleaner, the program will immediately begin checking your computer for junk. When the scanning process is completed, the screen will show the total amount of space occupied by unnecessary files.

    3. Clean up your Mac drive

    To quickly clean your Mac of debris, click Start cleaning. Thus, the program will erase all unnecessary cache and log files, and also delete files located in the Recycle Bin.




    You can also delete unnecessary files manually. Notice the tabbed panel on the left side of the interface. In the tab System cleaning you can choose to delete cache and log files by clicking on the corresponding switches. If you want to delete separate files, click Details opposite the desired category. Next, mark the files you want to get rid of and click Start cleaning.




    Open the tab Removing languages. In it you can remove all unnecessary application localizations and other language files that you will most likely never need. Just check the boxes for unnecessary localizations and click the button you already know Start cleaning.




    Tab Large and old files will help you quickly find and delete “heavy” files that have been on your computer for a long time and, probably, you no longer need. To erase these files from hard drive, mark them and click Start cleaning.




    To free up additional disk space, remove unused applications, as well as files remaining on the disk from programs that were previously removed. To do this, open the tab Uninstaller and select a section User Applications, OS X Applications or Leftovers. Check the box next to the programs or files you want to erase and click Delete.

    The boot disk is the partition from which files of a specific type will be loaded when the computer is turned on. operating system. In the case of a Mac, you can change the assignment of partitions almost on the fly, following simple instructions.

    How to Set the Default Startup Disk

    1 . Open System Settings . How to call System Settings using hotkeys.

    2 . Click on the section Boot volume.

    3 . Mark the partition you chose as boot.

    4 . From now on, until further changes are made, the system will always automatically boot from the specified partition.

    How to change boot disk without booting OS X

    1 . Restart your Mac and hold down the button while doing so ⌥Option (Alt) on the keyboard.

    2 . Wait for it to appear Download Manager.

    3 . On the menu Dispatcher select the section you are looking for and press the key Return(Enter).

    4 . After restarting the computer, the system will boot from the default partition.

    Option with choice boot partition in the system settings is designed for stable, measured work; promptly changing the boot disk is useful for those who are passionate about testing and fine tuning new products

    Which, according to Cupertino, thanks to new technologies makes Mac computers more reliable, functional and faster. A little later the first beta version was released macOS High Sierra, and today we will tell you how to create your own Bootable USB drive to install this operating system on your Mac.

    To do a so-called "clean" installation, you first need to create boot disk, which can be used as a USB disk. This will allow you to install macOS High Sierra on several computers. In addition, you must have access to an image of the new desktop operating system. If you don't have paid account developer, you can wait until the public beta version of macOS High Sierra becomes available or download its image from third-party resources.

    Read the instructions to the very end before you begin the process of creating a USB drive with macOS High Sierra and its subsequent installation.


    Requirements:

    1. Computer * running OS X 10.7 Lion or higher.
    2. macOS High Sierra installer downloaded to your computer.
    3. USB disk with a capacity of at least 8 GB.

    * Your computer must be compatible with macOS High Sierra - Mac compatibility list.

    How to Create a Bootable USB Drive with macOS High Sierra

    1. Download the macOS High Sierra installer. By default, the distribution is named Install macOS 10.13 Beta. You can rename it, but to avoid confusion, we recommend leaving this name. Make sure that the Install macOS 10.13 Beta file is located in the Applications folder (this is where all programs from Mac App Store). If it is located elsewhere on your computer, move it to this folder.

    2. Connect the USB drive to your Mac computer. If it is not yet formatted, launch the application " Disk Utility» ( “Programs” → “Utilities” → “Disk Utility”) and format it by selecting "GUID Partition Scheme" and "Mac OS Extended (Journaled)". This process will erase all data from the USB drive.


    3. You can select any convenient name as the name of the USB disk, for example, “USB”. First make sure that there are no other drives with the same name connected to your computer.

    4. Launch "Terminal" ( “Programs” → “Utilities” → “Terminal”) and enter the following command * :

    sudo /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ 10.13\ Beta.app --nointeraction

    Once done, press the Enter key to move Install macOS 10.13 Beta to the USB drive and make it bootable.

    * If you renamed the macOS High Sierra installer distribution or USB drive, edit the command to include your names. If the macOS High Sierra installer was not in your Applications folder, edit the command to its current location.


    5. Enter your password (it does not appear on the screen) and press Enter.


    This will begin the process of creating a bootable USB drive with macOS High Sierra. During the entire process, the USB drive will not be visible on the desktop. The process of creating a bootable USB disk will be accompanied in the Terminal window by the following text:

    Erasing Disk: 0%... 10%... 20%... 30%...100%...
    Copying installer files to disk…
    Copy complete.
    Making disk bootable...
    Copying boot files...
    Copy complete.
    Done.

    Once the files have been copied, your USB drive will appear on your desktop again and Terminal will tell you that the process is complete.

    6. That's all! The bootable USB drive with macOS High Sierra has been created, you can close Terminal.

    How to Install macOS High Sierra on Mac from a Bootable USB Drive

    1. Connect your macOS High Sierra USB drive to your Mac.

    2. Press and hold on the keyboard Alt key(Option, ⌥) and restart your Mac. If your Mac was turned off, simply turn it on.

    3. In the window that appears, select the bootable USB drive with macOS High Sierra as the boot drive. After this, a window will appear on the screen macOS installations High Sierra.


    4. Click “Install” and wait for macOS High Sierra to install.

    ******************************************

    Subscribe to our Telegram channel to stay up to date with the latest latest news and rumors from the world of Apple and other largest IT companies in the world!
    To subscribe to the Newapples channel on Telegram, follow this link from any device on which this messenger is installed and click on the “Join” button at the bottom of the screen.

    We have looked at how to command line write down the installation DVD-disk OS X Lion. Some readers noted that it would be nice to know how to do the same, but for USB-disk. And really, don’t leave the owners MacBook Air and the latest Mac mini deprived. :)

    Let's get started. I’ll say right away that for successful creation we need an installation disk disk space on USB- the disk is a little larger than 4GB, and therefore flash drives with a capacity of more than 4GB, for example, 8GB, are suitable for these purposes. In my example, a 16GB flash drive is used.

    We connect the flash drive to the computer. First we need to determine what device the connected disk is known to the system as. To do this we open Terminal.app and enter the following command:

    Information about all will be displayed known to the system disks. It looks something like this (all images are clickable):

    From the information output from this command, we need to understand what belongs to what. In principle, this is not difficult to understand. The device /dev/disk0 is yours local disk, with OS X installed. And the information we need related to our flash drive is highlighted in red in the picture. In my case (and most likely in yours) this is /dev/disk1 .

    Now we need to create a disk with GPT-partitioning, with one partition and file system HFS+. This is done with the following command:

    diskutil partitionDisk /dev/disk1 1 GPTFormat HFS+ Lion 16G

    Where /dev/disk1 is what was highlighted in red in the picture above, 1 is creating one partition, GPTFormat is an instruction to create GPT-disk partitioning, HFS+ - file system for the partition being created, Lion - partition label (can be arbitrary), 16G - size of the partition being created (must match the size of your flash drive, correct if necessary).

    The result will look something like this:

    As you can see, in fact, two partitions were created on our disk, not one. The first partition with ID disk1s1 is system partition EFI about two hundred megabytes in size, do not pay attention to it. We need a second (large) partition with the identifier disk1s2 (highlighted in red in the picture).

    It is this identifier (or rather its full version of the entry /dev/disk1s2) that we will need for the next final command, which will create the installation disk:

    asr restore --source /Applications/Install\ Mac\ OS\ X\ Lion.app/Contents/SharedSupport/InstallESD.dmg --target /dev/disk1s2 --erase --noprompt

    Once again, please note that in this command we use the disk identifier /dev/disk1s2 (highlighted in red).

    Upon completion of the team’s work, we will get what we were looking for - installation disk OS X Lion.