> For the complete documentation index, see [llms.txt](https://hackintosh.gitbook.io/r-hackintosh-vanilla-desktop-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hackintosh.gitbook.io/r-hackintosh-vanilla-desktop-guide/building-the-usb-installer.md).

# Building the USB Installer

Once you have your 8+GB USB installer, we need to make sure it's set up properly. If you don't plan on patching the installer (and I don't) - you want the USB setup the following way:

* GUID Partition Map
* 1 Partition
* OS X Extended (Journaled)

To do this, fire up the Terminal (located in `/Applications/Utilities`) and type `diskutil list`.

This will give you a list of all the connected disks and their partitions. Take note of the disk identifier for your USB drive. **DO NOT GUESS THIS AS WE ARE ABOUT TO ERASE IT!** Then run the following replacing `disk#` with your actual identifier:

```
diskutil partitionDisk /dev/disk# GPT JHFS+ "USB" 100%
```

This will partition the disk as listed above and rename it to "USB".

You can now run the corresponding command from [Apple's own instructions](https://support.apple.com/en-us/HT201372) - for this example, we'll be using the Mojave command:

```
sudo "/Applications/Install macOS Mojave.app/Contents/Resources/createinstallmedia" --volume /Volumes/USB
```

*This will take some time, and it doesn't output much for status updates.* It can take upwards of 30-40 minutes, so just be patient. Grab a cup of coffee, read the news, catch up with friends and family - you'll be here for a bit

When this completes, you will have a USB installer that can boot on a *real Mac*. We just need to get the Hackintosh-related stuff set up, and we'll be in business!

For those that are timid around the command line - I *did* put together [a script](https://github.com/corpnewt/USB-Installer-Creator) awhile back that can perform these actions for you.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hackintosh.gitbook.io/r-hackintosh-vanilla-desktop-guide/building-the-usb-installer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
