Skip to main content
Home
term:~# less tar.gz.ro

Main navigation

  • Home
    • My Yard Projects
  • AIX World
    • AIX Commands
    • HACMP Commands
    • HMC Commands
    • How to assign disks to AIX partition via VIO
    • Misc stuff
    • NIM (Network Installation Management)
    • Virtual I/O (VIO)
  • Apple World
    • News
    • Tips & Tricks
    • iOS
  • CygWin World
    • CygWin Tips and Tricks
    • Cygwin: clone disk with dd
    • Cygwin: how to have multiple tabs in Cygwin's Mintty
    • Cygwin: start and enable sshd
    • config.guess: unable to guess system type
  • ESXi World
    • ESXi 7: Create VMFS Partition Via Command Line
    • ESXi : A bunch of useful commands and information
    • ESXi: How to change the hostname of an ESXi host
    • ESXi: how to change the MTU of vmkernek (vmk) interface (when UI fails)
    • ESXi: how to resize the OS partition
    • How to create a bootable USB installer of ESXi 7.0
  • Games
    • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
    • Assetto Corsa Rally – Early Access Deep Dive
    • Diablo 3 & Reaper of Souls tips
    • EA Sports WRC Time Trial Locations and Stages
    • EA Sports WRC vs Assetto Corsa Rally | Visual Comparison (Gravel, Asphalt, Wet, Night, Snow)
    • Global Chip Shortage? Build this oddity: PC From 2009 With GeForce GTX 1050ti 4G
    • Left4Dead Lan Play
    • Live Sessions
    • Mafia II Joe's Adventures - Playboy Locations
  • HP-UX World
    • Boot into HPUX L2000
    • How to increase the size of a filesystem in LVM
    • Miscellaneous
    • Performance tools
    • Working with HP VM
  • Hardware
    • 5 Months with iPhone 15 Pro: Not PERFECT But... Must See. From Gaming to ProRes Requirements.
    • Apple Watch Series 9? Not Yet! I Still Love My "Seven of Nine" 19 months later
    • Asus ROG Sheath in 2024: a HUGE Mousepad, Bigger Than Logitech G840 XL
    • Choose Your Perfect Mic / Lavalier | AIQIU M31 vs. Boya BY-M3/BY-M2 & Puluz PU425
    • DJI Mic Mini 2 – Real-World Review and Testing
    • How I Test Mousepads: Glide, Control, and Surface Noise Explained
    • How to build a 25U 600x600 Server Rack
    • I Tested Creative Pebble V2 on My Sim Rig – Surprising Results!
    • Icy Box IB-3805-C31 speed test
    • Is the RX 9060 XT Mercury Class Worth It? Silent Power Meets Real Gameplay
    • Logitech Pro X Wired Gaming Headset (2nd gen): review + mic test with G HUB on Windows 11 and macOS
    • Logitech RS H-Shifter - Amazing Feel, But There’s a Catch (As Always)
    • Mousepad Logitech G840
    • PX8 S2 – A Journey Through Sound, Expectations and Reality
    • Play Steam Games on iPhone with Backbone One Playstation Edition gen2 USB-C / Steam Deck Alternative
    • Qnap TR-004 short review - working with linux
    • Razer Gigantus V2 XXL – 5 Months Later (Still Worth It?)
    • Samsung 870 QVO 2TB: Speed Tests and comparison with Adata SU650 and Kingston K600
    • Server-Ready MS-01 - A Small PC with Everything: SFP+, USB4, 2.5gbps LAN, Enterprise SSD, TPM 2.0
    • The TCL 34R83Q is Insane
    • The TCL 34R83Q is Insane… But There’s a Catch! Honest Review About a Real Product! Read Description.
    • The one with APC Back-UPS BE850G2-GR: Charge Whatever With It, From Phone to Computer And BEYOND :D
    • Thermaltake Pure 20 fan - HUGE and quiet!
    • Ubiquiti EdgeRouter X lift off
    • VIOFO A139 Quad HD Dash Camera - 3 Channels Camera in a 2 Channels Package. Confused?
    • Why Bluetooth Headphones Switch to MONO When Using the Microphone?
    • Why the Logitech PRO Racing Wheel Made Me a Better Driver
  • Home
  • Linux World
    • Alternative to finger command? Sure: pinky :)
    • Backup/restore/reinstall tips
    • Copy one file in linux with progress bar, using pv
    • DNSKEY: verify failed due to bad signature (keyid=19297): RRSIG has expired
    • DRBD: How to replace drbd backend devices
    • Debian 11: Unable to locate package glances
    • Debian 13: missing last command
    • Debian Bullseye (11): zpool command missing
    • Debian DRBD: How to resize drbd and OCFS2 online
    • Debian DRBD: How to resize drbd volume on top of LVM
    • Debian DRBD: Tips, Tricks and Commands
    • Debian Heartbeat: Commands, Tips and Tricks
    • Debian Heartbeat: STONITH errors when configuring CRM cluster
    • Debian Jessie: how to enable and start OpenVPN
    • Debian Tips & Tricks
    • Debian on mac mini: Core temperature above threshold, cpu clock throttled
    • Debian: Can't locate LWP/UserAgent.pm in @INC
    • Debian: HA (cluster) NFS with DRBD and Heartbeat
    • Debian: How to install, configure and manage ZFS
    • Debian: How to split rc.local in rc.local.stop and rc.local.start
    • Debian: Install and configure AFP server
    • Debian: LVM on ISCSI not activated on reboot.
    • Debian: The repository does no longer have a Release file
    • Debian: add and configure VLAN
    • Debian: how to choose default kernel in grub2
    • Debian: how to create bonding device
    • Debian: install open-vm-tools
    • Debian: pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
    • Debian: reinstall zfs when changing the linux kernel
    • Debian: ssh key no longer works after upgrading to Debian version 9
    • Docker: Pi-Hole - Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
    • Gnome: Clear "Open With" list
    • How to add a swap file in linux
    • How to add an ISCSI disk from linux server
    • How to add exfat support on RHEL 6
    • How to be sure network interfaces have always the same names
    • How to check which local device is assigned to which iscsi disk
    • How to configure GlusterFS with a volume replicated over 2 nodes
    • How to create an encrypted image
    • How to create bond device under linux
    • How to create/modify a file's timestamp
    • How to give more memory to Lotus Notes in Linux
    • How to install bind (name server) in chroot environment
    • How to install mplayer on RHEL 6
    • How to install openoffice 4.0.1 on Fedora 20/19/18, CentOS/Red Hat (RHEL) 6.5
    • How to install python 2.7 on Red Hat Enterprise Linux Workstation release 6.5 (Santiago)
    • How to modify the hostname on Linux
    • How to mount a HFS partition in linux as Read/Write?
    • How to properly configure oidentd for IRC connections
    • How to read MBR
    • How to remove LVM snapshots if you get message "Can't remove open logical volume"
    • How to setup OpenVPN server for iPhone
    • How to show UUID of a block device, including other attributes too
    • How to speed up things by using tmpfs (your memory)
    • How to switch from pc to efi and recreate boot partition
    • How to test ethernet speed with iperf
    • How to write CD or DVD under linux's console
    • ISCIS: remove disk from linux client
    • LVM
    • Linux Network Tips and Tricks
    • Linux: CPU utilization vs. load average
    • Linux: How to clear (delete) a GUID partition table (GPT)
    • Linux: TCP keepalive or not
    • Linux: Tuning network cards on Linux
    • Linux: how to check if the disk is SSD or not
    • Network Manager - get_secrets_cb(): Couldn't get connection secrets
    • RHEL6: yum update - package is a duplicate with package
    • RPM Tips and Tricks
    • ReiserFS: how to recover deleted files
    • ShellShock - Fix Bash on Debian Lenny
    • ShellShock - Fix Bash on Debian Squeeze
    • Spamassassin: eval/lookup failed: available_nameservers: No DNS servers available!
    • Start restricted graphical apps
    • Systemd startup order
    • Ubuntu: Fast Install With VMware Fusion
    • User Management
    • Using Mdadm
    • Wi-FI KO after upgrade to RHEL 6.5
    • ZFS: Convert a One Disk Pool in Two Disks Mirror
    • ZFS: cannot import 'whatever': no such pool available
    • how to resize iscsi volume in Linux
    • rc.openvpn for slackware
  • Solaris World
    • Tips & Tricks
  • Windows World
    • Active Directory Command Line (CMD) Tips & Tricks
    • Excel: extract text between two different characters
    • Excel: seconds in hours:minutes:seconds
    • PowerShell tips and tricks
    • Windows 7: How to repair boot partition
    • Windows 7: Steam not starting
    • Windows 7: how to disable/enable hibernation
    • Windows CMD commands
  • Tips & Tricks
    • Apache Tips & Tricks
    • Audio / Video *nix Command Line Tricks
    • Bombardier: How to use it to Download Boot Camp Drivers
    • Brigadier: How to use to Download Boot Camp Drivers
    • Citrix XEN: Install VM OS via CLI
    • Citrix Xen CLI Tips & Tricks
    • Citrix Xen: Connect to VM's VNC console
    • Citrix Xen: How to "migrate" VHD lv from one XEN to another with dd
    • Citrix Xen: How to attach an existing vdi to any virtual machine
    • Citrix Xen: How to rename a vm via command line
    • Citrix Xen: How to show vm information via command line
    • Citrix Xen: Modify VM memory value via CLI
    • Docker Tips and Tricks
    • Docker: Create a Custom Image
    • Docker: How to Check Which Docker Container is Using the Space in Linux
    • Docker: How to Run Your Own Docker Registry (e.g. Images Repository)
    • Docker: Install on Debian
    • Docker: Playing with consul
    • Docker: UNIX socket and TCP port
    • Docker: how to enable swap limit capabilities
    • Docker: how to increase php memory "the docker way"
    • Docker: syslog-ng setup
    • Executing commands remotely on multiple systems via SSH
    • FIO Perf Tool Nutshell
    • Flushing the ARP cache
    • FreeNAS console tricks
    • Gallery2 - Gd - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • Gallery2 - Imagemagick - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • Gallery2 - Netpbm - How to create thumbnails with fixed width while keeping the aspect ratio (variable height)
    • How to change the hostid of a Linux operating system
    • How to create a hash password from text
    • How to delete files or directories that contains special characters
    • How to display the output of a file without the blank lines
    • How to enable rstatd
    • How to encrypt a file in linux (or cygwin)
    • How to find out which process is using some port
    • How to login to youtube account via Apple TV if you have Google Authenticator enabled
    • How to resume failed scp transfer
    • How to rotate pdf files with pdftk tool
    • How to send a json from command line
    • How to use an LVM partition as VirtualBox disk
    • IBM DS System Storage common commands examples
    • ImageMagick Tricks
    • Logging ssh sessions
    • Merge mp3 files
    • Miscellaneous
    • MySQL Commands, Tips and Tricks
    • Nagios Stuff
    • Nagios: UNKNOWN: Drive S/N : No health status line found,
    • Networking - questions and answers
    • Oracle: How to connect to the listener and display a parameter's value
    • Oracle: How to list DBA users for a database
    • Oracle: dbfsize Header block magic number is bad
    • Oracle: display tablespace information with sizes
    • PHP: How to display in a table, information from a text file
    • Python: fake smtp server
    • Render Blocking JavaScript and CSS
    • Runlevels
    • SAP useful commands for UNIX administrator
    • SMF Tips and Tricks
    • Script to get memory usage of desired processes
    • Strings or File Manipulation
    • The Hard Link
    • Using Find Command
    • Using VI Editor
    • VirtualBox Tips&Tricks
    • VirtualBox: How to Add Serial Port for Linux Cluster Heartbeat Monitoring
    • VirtualBox: How to work with ISCSI disks
    • dsmc commands
    • iMessage “Waiting for Activation” Error on iPhone
  • Exclamation!
    • Bash CVE-2014-6278 CVE-2014-6277
    • Heartbleed Bug
    • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
    • Ransomware KeRanger attached to Transmission app
    • Shellshock (CVE-2014-6271)
  • About This
    • Cookies, Cookies, Cookies!
  • Donate
User account menu
  • Log in
Popular content

Today's:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • OS X Misc Stuff
  • How to test ethernet speed with iperf
  • Error: CarbonHeaders is an obsolete port. Please uninstall it.
  • ESXi: How to create a bootable USB installer of ESXi 7.0
  • How to repair a sparsebundle image
  • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
  • How to add another script extension for syntax highlighting in gedit

All time:

  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • Tivoli Storage Manager Client Commands (dsmc commands)
  • Centrify Useful Commands and Information
  • Run ZIM on OS X and create Zim.app
  • How to be sure network interfaces have always the same names
  • Linux backup/restore/reinstall
  • How to add exfat support on RHEL 6
  • Mafia II Joe's Adventures - Playboy Locations
  • HMC commands
  • Command Line Software Update in MacOS

Last viewed:

  • Miscellaneous (Linux, UNIX)
  • Python: fake smtp server
  • 0516-1407 lextendlv Reboot with the 64-bit kernel and try again.
  • Debian: reinstall zfs when changing the linux kernel
  • AIX Misc Commands
  • How to add another script extension for syntax highlighting in gedit
  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • Global Chip Shortage? Build this oddity: PC From 2009 With GeForce GTX 1050ti 4G
  • 0301-108 /usr/lib/boot/bin/mkboot_chrp: Unable to read file blocks. Return code: -1
  • OS X Misc Stuff

Breadcrumb

  1. Home

Create bootable image from OS X Installation App

Profile picture for user root
By root, 17 September, 2016
The OS X releases come only via App Store as an app package but sometimes there is need for a way to transform this into an iso image. So without further writing, I present you two ways to do so.

1. Download the installer app from App Store or if not available there, use gibMacOS.

It is easy to use, via terminal of course. You clone it, run it and do your thing.
fmbp16:gibMacOS florian$ ./gibMacOS.command 
#######################################################
#                Downloading Catalog                  #
#######################################################

Currently downloading publicrelease catalog from

https://swscan.apple.com/content/catalogs/others/index-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog

Downloaded 6.82 MB of 6.82 MB (100.00%)

#######################################################
#                      gibMacOS                       #
#######################################################

Available Products:

1. macOS Big Sur 11.0.1 (20B29)
   - 001-79699 - Added 2020-11-12 18:00:08 - 12.19 GB
2. macOS Catalina 10.15.7 (19H15)
   - 001-68446 - Added 2020-11-11 17:48:09 - 8.75 GB
3. macOS Catalina 10.15.7 (19H4)
   - 001-57224 - Added 2020-10-27 17:28:13 - 8.75 GB
4. macOS Catalina 10.15.7 (19H2)
   - 001-51042 - Added 2020-09-24 17:09:31 - 8.75 GB
5. macOS Catalina 10.15.6 (19G2021)
   - 001-36801 - Added 2020-08-12 20:04:02 - 8.75 GB
6. macOS Catalina 10.15.6 (19G2006)
   - 001-36735 - Added 2020-08-06 23:39:24 - 8.75 GB
7. macOS Catalina 10.15.5 (19F2200)
   - 001-15219 - Added 2020-06-15 18:52:41 - 8.74 GB
8. macOS Catalina 10.15.4 (19E2269)
   - 001-04366 - Added 2020-05-04 15:32:04 - 8.75 GB
9. macOS Catalina 10.15.3 (19D2064)
   - 061-86291 - Added 2020-03-23 21:41:00 - 8.69 GB
10. macOS Mojave 10.14.4 (18E2034)
   - 041-88800 - Added 2019-10-23 14:41:18 - 6.53 GB
11. Install macOS High Sierra Beta 10.13.5 (17F66a)
   - 041-90855 - Added 2019-10-23 14:41:18 - 5.69 GB
12. macOS High Sierra 10.13.6 (17G66)
   - 041-91758 - Added 2019-10-19 18:19:55 - 5.71 GB
13. macOS Mojave 10.14.6 (18G103)
   - 061-26589 - Added 2019-10-14 20:51:08 - 6.52 GB
14. macOS Mojave 10.14.5 (18F2059)
   - 061-26578 - Added 2019-10-14 20:38:26 - 6.52 GB

M. Change Max-OS Version (Currently 10.15)
C. Change Catalog (Currently publicrelease)
I. Only Print URLs (Currently False)
S. Set Current Catalog to SoftwareUpdate Catalog
L. Clear SoftwareUpdate Catalog
R. Toggle Recovery-Only (Currently Off)
U. Show Catalog URL
Q. Quit

Please select an option:  

Browse to the gibMacOS Folder. Go to gibMacOS/macOS Downloads/ Open the Big Sur Folder Open InstallAssistant.pkg Continue the On-Screen Steps. Check for Applications Folder, The Installation App will be there. So, what I did above is one way to get some OSX install apps if they are not available on App Store. However, what follows is an example with a package that was already on the system, it is El Capitan. What I want to say here is: you can use whatever method to get the macos installation app. What follows is not depending of gibMacOS.

2. Install the iesd package from gem:

eeny:~ osx$ sudo gem install iesd
Password:

Fetching: iesd-1.2.2.gem (100%)
Successfully installed iesd-1.2.2
Parsing documentation for iesd-1.2.2
Installing ri documentation for iesd-1.2.2
1 gem installed

3. Extract and convert the installation dmg from the app into a dmg file:

eeny:iso osx$ iesd -i Install\ OS\ X\ El\ Capitan.app -o elcapitan.dmg -t BaseSystem
==> Mounting /Volumes/stuff/kit/iso/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg
Mounted: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-c3wghx
==> Mounting /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-c3wghx/BaseSystem.dmg
Mounted: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-1x9wnj2/d20160917-86405-qaqnxr
==> Copying /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-c3wghx/BaseSystem.dmg
Copied: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-1x9wnj2/d20160917-86405-qaqnxr/BaseSystem.dmg
==> Copying /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-c3wghx/BaseSystem.chunklist
Copied: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-1x9wnj2/d20160917-86405-qaqnxr/BaseSystem.chunklist
==> Copying /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-c3wghx/Packages
Copied: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-1x9wnj2/d20160917-86405-qaqnxr/System/Installation/Packages
==> Unmounting /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-c3wghx/BaseSystem.dmg
Unmounted: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-1x9wnj2/d20160917-86405-qaqnxr
==> Merging /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-1x9wnj2/BaseSystem.dmg.shadow
Merged: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-16qa2gj/BaseSystem.dmg
==> Unmounting /Volumes/stuff/kit/iso/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg
Unmounted: /var/folders/x0/r5mgbqyn2y1128xvypgl46wm0000gp/T/d20160917-86405-c3wghx
/Volumes/stuff/kit/iso/elcapitan.dmg

4. Convert the newly created dmg into sparseimage, to be customised on the next steps:

eeny:iso osx$ hdiutil convert elcapitan.dmg -format UDSP -o elcapitan.sparseimage
Reading Protective Master Boot Record (MBR : 0)…
Reading GPT Header (Primary GPT Header : 1)…
Reading GPT Partition Data (Primary GPT Table : 2)…
Reading  (Apple_Free : 3)…
Reading disk image (Apple_HFS : 4)…
..............................................................................................................................................................................
Reading  (Apple_Free : 5)…
Reading GPT Partition Data (Backup GPT Table : 6)…
..............................................................................................................................................................................
Reading GPT Header (Backup GPT Header : 7)…
...............................................................................................................................................................................
Elapsed Time:  5m 19.237s
Speed: 22.9Mbytes/sec
Savings: 14.6%
created: /Volumes/stuff/kit/iso/elcapitan.sparseimage

5. Mount the sparseimage and the original dmg file and copy the system files into the sparseimage. Unmount them afterwards:

eeny:iso osx$ hdiutil mount Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified   CRC32 $4C067D6E
Checksumming GPT Header (Primary GPT Header : 1)…
 GPT Header (Primary GPT Header : 1): verified   CRC32 $6C785BBD
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified   CRC32 $28B7052B
Checksumming  (Apple_Free : 3)…
                    (Apple_Free : 3): verified   CRC32 $00000000
Checksumming EFI System Partition (C12A7328-F81F-11D2-BA4B-00A0C93EC93B : 4)…
.....
EFI System Partition (C12A7328-F81F-: verified   CRC32 $B54B659C
Checksumming disk image (Apple_HFS : 5)…
..........................................................................................................................................................................
          disk image (Apple_HFS : 5): verified   CRC32 $212193FB
Checksumming  (Apple_Free : 6)…
..............................................................................................................................................................................
                    (Apple_Free : 6): verified   CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 7)…
GPT Partition Data (Backup GPT Table: verified   CRC32 $28B7052B
Checksumming GPT Header (Backup GPT Header : 8)…
  GPT Header (Backup GPT Header : 8): verified   CRC32 $A566262B
verified   CRC32 $7B0D9EC5
/dev/disk9          	GUID_partition_scheme          	
/dev/disk9s1        	EFI                            	
/dev/disk9s2        	Apple_HFS                      	/Volumes/OS X Install ESD
eeny:iso osx$ hdiutil mount elcapitan.sparseimage
/dev/disk10         	GUID_partition_scheme          	
/dev/disk10s1       	Apple_HFS                      	/Volumes/OS X Base System
eeny:iso osx$ rm -rf /Volumes/OS\ X\ Base\ System/System/Installation/Packages
eeny:iso osx$ cp -rp /Volumes/OS\ X\ Install\ ESD/Packages /Volumes/OS\ X\ Base\ System/System/Installation
eeny:iso osx$ cp -rp /Volumes/OS\ X\ Install\ ESD/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/
eeny:iso osx$ cp -rp /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/
eeny:iso osx$ hdiutil detach /dev/disk10
"disk10" unmounted.
"disk10" ejected.
eeny:iso osx$ hdiutil detach /dev/disk9
"disk9" unmounted.
"disk9" ejected.

6. Remove the old dmg file, and convert the sparseimage to DMG file:

eeny:iso osx$ rm elcapitan.dmg
eeny:iso osx$ hdiutil convert elcapitan.sparseimage -format UDZO -o elcapitan.dmg
Preparing imaging engine…
Reading Protective Master Boot Record (MBR : 0)…
   (CRC32 $8ABD6A37: Protective Master Boot Record (MBR : 0))
Reading GPT Header (Primary GPT Header : 1)…
   (CRC32 $A51CFB2A: GPT Header (Primary GPT Header : 1))
Reading GPT Partition Data (Primary GPT Table : 2)…
   (CRC32 $64FF28F2: GPT Partition Data (Primary GPT Table : 2))
Reading  (Apple_Free : 3)…
   (CRC32 $00000000:  (Apple_Free : 3))
Reading disk image (Apple_HFS : 4)…
............................................................................................................................................................................
   (CRC32 $7FC7EAA0: disk image (Apple_HFS : 4))
Reading  (Apple_Free : 5)…
..............................................................................................................................................................................
   (CRC32 $00000000:  (Apple_Free : 5))
Reading GPT Partition Data (Backup GPT Table : 6)…
...............................................................................................................................................................................
   (CRC32 $64FF28F2: GPT Partition Data (Backup GPT Table : 6))
Reading GPT Header (Backup GPT Header : 7)…
...............................................................................................................................................................................
   (CRC32 $DAF1AFC4: GPT Header (Backup GPT Header : 7))
Adding resources…
...............................................................................................................................................................................
Elapsed Time:  5m 11.110s
File size: 6716560939 bytes, Checksum: CRC32 $5A7EC524
Sectors processed: 17508712, 14955572 compressed
Speed: 23.5Mbytes/sec
Savings: 25.1%
created: /Volumes/stuff/kit/iso/elcapitan.dmg
If you are unable to boot from it, convert it to iso:
eeny:iso osx$ hdiutil convert elcapitan.dmg -format UDTO -o elcapitan.iso
Reading Protective Master Boot Record (MBR : 0)…
Reading GPT Header (Primary GPT Header : 1)…
Reading GPT Partition Data (Primary GPT Table : 2)…
Reading  (Apple_Free : 3)…
Reading disk image (Apple_HFS : 4)…
............................................................................................................................................................................
Reading  (Apple_Free : 5)…
Reading GPT Partition Data (Backup GPT Table : 6)…
............................................................................................................................................................................
Reading GPT Header (Backup GPT Header : 7)…
............................................................................................................................................................................
Elapsed Time:  5m  2.254s
Speed: 28.3Mbytes/sec
Savings: 0.0%
created: /Volumes/stuff/kit/iso/elcapitan.iso.cdr
eeny:iso osx$ mv elcapitan.iso.cdr elcapitan.iso

There is also an alternative way, with the help of asr command:

eeny:iso osx$ hdiutil attach "Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd
/dev/disk8          	GUID_partition_scheme          	
/dev/disk8s1        	EFI                            	
/dev/disk8s2        	Apple_HFS                      	/Volumes/esd
eeny:iso osx$ hdiutil create -o elcapitan.cdr -size 7316m -layout SPUD -fs HFS+J
..............................................................................................................................................................................
created: /Volumes/stuff/kit/iso/elcapitan.cdr.dmg
eeny:iso osx$ hdiutil attach elcapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/iso
/dev/disk9          	Apple_partition_scheme         	
/dev/disk9s1        	Apple_partition_map            	
/dev/disk9s2        	Apple_HFS                      	/Volumes/iso
eeny:iso osx$ asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase
	Validating target...done
	Validating source...done
	Retrieving scan information...done
	Validating sizes...done
	Restoring  ....10....20....30....40....50....60....70....80....90....100
	Remounting target volume...done
eeny:iso osx$ rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
eeny:iso osx$ cp -rp /Volumes/esd/Packages /Volumes/OS\ X\ Base\ System/System/Installation
eeny:iso osx$ cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/
eeny:iso osx$ cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/
eeny:iso osx$ hdiutil detach /Volumes/esd
"disk8" unmounted.
"disk8" ejected.
eeny:iso osx$ hdiutil detach /Volumes/OS\ X\ Base\ System
"disk9" unmounted.
"disk9" ejected.
eeny:iso osx$ hdiutil convert elcapitan.cdr.dmg -format UDTO -o elcapitan.iso
Reading Driver Descriptor Map (DDM : 0)…
Reading Apple (Apple_partition_map : 1)…
Reading disk image (Apple_HFS : 2)…
...............................................................................................................................................................................
Elapsed Time:  8m  8.119s
Speed: 15.0Mbytes/sec
Savings: 0.0%
created: /Volumes/stuff/kit/iso/elcapitan.iso.cdr
eeny:iso osx$ mv elcapitan.iso.cdr elcapitan.iso
eeny:iso osx$ ls -la elcapitan.iso
-rw-r--r--+ 1 osx  admin  7671382016 Sep 17 18:51 elcapitan.iso
  • Log in to post comments
  • 22861 views

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!
Or at least link back to this website.

Popular content

Today's:

  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • €6,000 MacBook Pro: Should I Throw It Away After 6 Years?
  • Drupal 7 to Drupal 10 Migration and Configuration Notes
  • OS X Misc Stuff
  • How to test ethernet speed with iperf
  • Error: CarbonHeaders is an obsolete port. Please uninstall it.
  • ESXi: How to create a bootable USB installer of ESXi 7.0
  • How to repair a sparsebundle image
  • Assetto Corsa Rally vs Real Life – La Bollène-VĂ©subie → Col de Turini | Monte-Carlo Rally
  • How to add another script extension for syntax highlighting in gedit

All time:

  • Linux Networking: How to disable/enable offload features, RX/TX checksum, scatter, gather and beyond
  • Tivoli Storage Manager Client Commands (dsmc commands)
  • Centrify Useful Commands and Information
  • Run ZIM on OS X and create Zim.app
  • How to be sure network interfaces have always the same names
  • Linux backup/restore/reinstall
  • How to add exfat support on RHEL 6
  • Mafia II Joe's Adventures - Playboy Locations
  • HMC commands
  • Command Line Software Update in MacOS

Last viewed:

  • Miscellaneous (Linux, UNIX)
  • Python: fake smtp server
  • 0516-1407 lextendlv Reboot with the 64-bit kernel and try again.
  • Debian: reinstall zfs when changing the linux kernel
  • AIX Misc Commands
  • How to add another script extension for syntax highlighting in gedit
  • PHP2Shell: Critical PHP Remote Code Execution Vulnerabilities
  • Global Chip Shortage? Build this oddity: PC From 2009 With GeForce GTX 1050ti 4G
  • 0301-108 /usr/lib/boot/bin/mkboot_chrp: Unable to read file blocks. Return code: -1
  • OS X Misc Stuff