Nov 14, 2019 The reason many people want to have a bootable Lion installer is to create clean installs: that is, to install Lion on a freshly formatted hard drive that doesn't contain any previous OS. The other major reason to want a bootable Lion installer is for emergency booting and repair of. How do I create a Mac OS install thumb drive from InstallESD.dmg file using Windows 7? Ask Question Asked 7 years. Restore the USB drive using the InstallESD.dmg on the USB drive. In which case use 2 USB drives (one to copy the InstallESD.dmg from the PC and one to restore it to and boot from). Jan 19, 2018 Just in case that you don't want to use Terminal, you may follow these steps to build a USB drive for Mac OS X or macOS. Mount the Mac OS installer to get.DSStore, BaseSystem.chunklist, and BaseSystem.dmg. Files from InstallESD.dmg file. Use Disk Utility's Restore feature to create a copy of the OS Install ESD image.
These advanced steps are primarily for system administrators and others who are familiar with the command line. You don't need a bootable installer to upgrade macOS or reinstall macOS, but it can be useful when you want to install on multiple computers without downloading the installer each time.
Download macOS
Find the appropriate download link in the upgrade instructions for each macOS version:
- macOS Catalina, macOS Mojave, and macOS High Sierra download directly to your Applications folder as an app named Install macOS Catalina, Install macOS Mojave or Install macOS High Sierra. If the installer opens after downloading, quit it without continuing installation.
To get the required installer, download from a Mac that is using macOS Sierra 10.12.5 or later or El Capitan 10.11.6. Enterprise administrators, please download from Apple, not a locally hosted software-update server. - macOS Sierra downloads as a disk image that contains a file named InstallOS.pkg. Open this file and follow the onscreen instructions. It installs an app named Install macOS Sierra into your Applications folder.
- OS X El Capitan downloads as a disk image that contains a file named InstallMacOSX.pkg. Open this file and follow the onscreen instructions. It installs an app named Install OS X El Capitan into your Applications folder.
Use the 'createinstallmedia' command in Terminal
- Connect the USB flash drive or other volume that you're using for the bootable installer. Make sure that it has at least 12GB of available storage and is formatted as Mac OS Extended.
- Open Terminal, which is in the Utilities folder of your Applications folder.
- Type or paste one of the following commands in Terminal. These assume that the installer is still in your Applications folder, and MyVolume is the name of the USB flash drive or other volume you're using. If it has a different name, replace
MyVolume
in these commands with the name of your volume.
Catalina:*
Mojave:*
High Sierra:*
Sierra:
El Capitan: - Press Return after typing the command.
- When prompted, type your administrator password and press Return again. Terminal doesn't show any characters as you type your password.
- When prompted, type
Y
to confirm that you want to erase the volume, then press Return. Terminal shows the progress as the bootable installer is created. - When Terminal says that it's done, the volume will have the same name as the installer you downloaded, such as Install macOS Catalina. You can now quit Terminal and eject the volume.
* If your Mac is using macOS Sierra or earlier, include the --applicationpath
argument, similar to the way this argument is used in the commands for Sierra and El Capitan.
Use the bootable installer
After creating the bootable installer, follow these steps to use it:
- Plug the bootable installer into a compatible Mac.
- Use Startup Manager or Startup Disk preferences to select the bootable installer as the startup disk, then start up from it. Your Mac will start up to macOS Recovery.
Learn about selecting a startup disk, including what to do if your Mac doesn't start up from it. - Choose your language, if prompted.
- A bootable installer doesn't download macOS from the Internet, but it does require the Internet to get information specific to your Mac model, such as firmware updates. If you need to connect to a Wi-Fi network, use the Wi-Fi menu in the menu bar.
- Select Install macOS (or Install OS X) from the Utilities window, then click Continue and follow the onscreen instructions.
Write Dmg To Usb
Learn more
For more information about the createinstallmedia
command and the arguments that you can use with it, make sure that the macOS installer is in your Applications folder, then enter this path in Terminal:
Catalina:
Mojave:
Restore Dmg To Usb Mac Terminal
High Sierra:
Sierra:
El Capitan:
Click here to return to the 'Restore a full-disk .dmg file to a raw block device' hint |
Wow, great hint. This is going to go to good use. Thanks!
Somehow I thought that was what the menu item Images -> Scan Image for Restore always did... but I suppose there has been at least one occasion where this may have actually been what I needed.
g=
Happily, I've never found myself in a position where I needed to restore my backup image files, (made with Carbon Copy Cloner.) But I'd like to know the routine if I ever need to use it.
My question: since I back up separate partitions into separate disk image files, is this hint inapplicable to me? Does this hint only apply to backing up multiple partitions into a single disk image?
(I had no idea it was even possible to backup multiple partitions to a single disk image...)
This is great. I was getting real frustrated with Disk Utility's non-specific error messages. This worked just like you said it would.
Great post. However, when I tried this I got a 'Resource busy' error.
In order to avoid this problem, you have to make sure the mac OS isn't 'using' the device first. To do this just open the DiskUtility.app, and on the target USB hard drive, unmount any of it's partitions. Make sure to not eject the USB hard drive so that the device is still available in DiskUtility and shows up in the result from 'diskutil list'.
Many thanks to you and daveosborne for your hints !
1) I'm currently dumping the content of a .dmg file to an external disk.
2) 'with an appropriate buffer size to copy over the whole block image, including partition table and boot sector'
-> what do you mean by that and how can I determine which buffer size is appropriate ?
-> how did you determine the 131072 size ?
For my use I trusted blindly the example and used the bs=131072 option. Untill now it seems to be working... (it's still copying).
I'm currenlty getting tons of lines on my terminal screen that look like :
...
CZlibDecompressor::decompressData: src 0x02E4AA97 srcLen 116073
CZlibDecompressor::decompressData: dest 0x02E26000 destLen 262144
CZlibDecompressor::decompressData: src 0x02E61F0D srcLen 20723
CZlibDecompressor::decompressData: dest 0x02E26000 destLen 262144
...
with sometimes long series of
...
CZlibDecompressor::decompressData: src 0x02E66B71 srcLen 1167
CZlibDecompressor::decompressData: dest 0x02E26000 destLen 262144
CZlibDecompressor::decompressData: src 0x02E66B71 srcLen 1167
CZlibDecompressor::decompressData: dest 0x02E26000 destLen 262144
...
I notice the destLen (I suppose it means block destination length) 262144 is exactly the double of the bs=131072 that was used before. I'm curious if anyone can help me understand this. Does this mean the source data is sparsed over the destination disk by blocks of 131072 or 262144 bytes, thereby fragmenting the disk ?
In your replies, please kindly take into account that I'm a French newbie with a fair level of ignorance of OSX command line technical slang, however not completely ignorant with computers either (one piece of paper even says I'm an engineer :), it's just that I don't understand what the buffer size technically means here.
Many thanks in advance for your insights !