In this post I'll show you how to create a bootable USB of Mac OS X Mavericks so that you can do a fresh install of the OS. You can always update your OS X without doing the fresh install but I prefer a fresh install because.. it's fresh! So let's get started.

To make a bootable media for your Mavericks you need all this:

1. 'Install OS X' downloaded from the Apps Store.
2. 8GB empty USB pendrive or larger.

Then, simply follow these steps:

1. Insert your USB pendrive to USB port.
2. Open up 'Disk Utility'.
3. Select your USB pendrive from the left list.
4. Click on the 'Erase' tab. Set the Format field as 'Mac OS Extended (journaled)' and Name as 'Untitled'.
5. Click on 'Erase' and quit Disk Utility after the process completed.
6. Open up 'Terminal'
7. Copy and paste the command below into the terminal:

sudo /Applications/Install\ OS\ X\ --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ --nointeraction

And it's all done! You may see something like the texts below but all you have to do is wait. Patience is the key.

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

The process may take up to 30 minutes depending on your USB drive speed and please don't do anything to the terminal. Leave it there and have a cup of coffee.

Note: It is important to leave 'Install OS X' in /Applications folder for successful process. When using the bootable USB for fresh installation, the process may be stuck for a long time (about 20 minutes in my case) during installation but this is NORMAL. All you have to do is WAIT.