Skip to content

Instantly share code, notes, and snippets.

@js32
Forked from itsmikita/README.md
Last active May 31, 2023 11:29
Show Gist options
  • Save js32/5a81a33de49f3b9d14d364de6df6cd1f to your computer and use it in GitHub Desktop.
Save js32/5a81a33de49f3b9d14d364de6df6cd1f to your computer and use it in GitHub Desktop.

Revisions

  1. js32 revised this gist May 31, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,8 @@ hdiutil attach InstallMacOSX.pkg/InstallESD.dmg -noverify -nobrowse -mountpoint
    sudo asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/MyVolume -noprompt -noverify -erase
    ```
    4. To finish and fix installation issues, run these commands:
    ```diskutil rename OS\ X\ Base\ System Install\ El\ Capitan
    ```
    diskutil rename OS\ X\ Base\ System Install\ El\ Capitan
    rm /Volumes/Install\ El\ Capitan/System/Installation/Packages
    cp -rp /Volumes/esd/Packages /Volumes/Install\ El\ Capitan/System/Installation
    cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/Install\ El\ Capitan/
  2. @itsmikita itsmikita revised this gist Sep 2, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -28,5 +28,5 @@ diskutil eject Install\ El\ Capitan

    Resources
    --------
    https://apple.stackexchange.com/a/389830
    https://apple.stackexchange.com/a/389830 \
    https://appstorrent.ru/602-os-x-el-capitan.html
  3. @itsmikita itsmikita revised this gist Sep 2, 2022. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ diskutil eject Install\ El\ Capitan
    ```
    5. Insert the USB drive on Machine needed reinstall.

    Resorces
    Resources
    --------
    Originally found solution here: https://apple.stackexchange.com/a/389830
    Downloaded El Captain here: https://appstorrent.ru/602-os-x-el-capitan.html
    https://apple.stackexchange.com/a/389830
    https://appstorrent.ru/602-os-x-el-capitan.html
  4. @itsmikita itsmikita revised this gist Sep 2, 2022. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -26,4 +26,7 @@ diskutil eject Install\ El\ Capitan
    ```
    5. Insert the USB drive on Machine needed reinstall.

    Original found: https://apple.stackexchange.com/a/389830
    Resorces
    --------
    Originally found solution here: https://apple.stackexchange.com/a/389830
    Downloaded El Captain here: https://appstorrent.ru/602-os-x-el-capitan.html
  5. @itsmikita itsmikita revised this gist Sep 2, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -24,4 +24,6 @@ cd "$HOME"
    rm -r /tmp/El\ Capitan
    diskutil eject Install\ El\ Capitan
    ```
    5. Insert the USB drive on Machine needed reinstall.
    5. Insert the USB drive on Machine needed reinstall.

    Original found: https://apple.stackexchange.com/a/389830
  6. @itsmikita itsmikita created this gist Sep 2, 2022.
    27 changes: 27 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    Create bootable USB drive from `InstallMacOSX.pkg`
    ==================================================

    1. Erase USB drive with Disk Utility using format `Mac OS Extended (Journaled)` and `Master Boot Record` and call it `MyVolume`
    2. Use Finder to mount/open `InstallMacOSX.dmg`.
    3. Run following commands:
    ```rm -rf /tmp/El\ Capitan
    pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg /tmp/El\ Capitan
    diskutil eject Install\ OS\ X
    cd /tmp/El\ Capitan
    hdiutil attach InstallMacOSX.pkg/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/esd
    sudo asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/MyVolume -noprompt -noverify -erase
    ```
    4. To finish and fix installation issues, run these commands:
    ```diskutil rename OS\ X\ Base\ System Install\ El\ Capitan
    rm /Volumes/Install\ El\ Capitan/System/Installation/Packages
    cp -rp /Volumes/esd/Packages /Volumes/Install\ El\ Capitan/System/Installation
    cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/Install\ El\ Capitan/
    cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/Install\ El\ Capitan/
    hdiutil detach /Volumes/esd
    sudo bless --folder /Volumes/Install\ El\ Capitan/System/Library/CoreServices --label Install\ El\ Capitan
    cp /Volumes/Install\ El\ Capitan/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/InstallAssistant.icns /Volumes/Install\ El\ Capitan/.VolumeIcon.icns
    cd "$HOME"
    rm -r /tmp/El\ Capitan
    diskutil eject Install\ El\ Capitan
    ```
    5. Insert the USB drive on Machine needed reinstall.