Many of us want to dual boot our PC or make a bootable disk, usb or sd card for performing a fresh installation of OS on our PC. But how to make a bootable usb or sd card. Well on Mac, it can be done via an application such as UNetbootin (my personal favourite) or using Terminal. I prefer the Terminal method. But I would advise beginners to use UNetbootin.
This tutorial will focus on Terminal. Just make sure you follow the steps properly or else the USB or SD Card can be malfunctioned through this method. So write down all the commands meticulously.
- Connect a USB or SD Card.
- Open Disk Utility, either through Spotlight or Launchpad or Finder.
- Select the USB or SD Card in left sidebar and click on Erase.
- Now select the format as MS DOS FAT from drop down menu. Give a name to your USB/SD Card. Naming is optional. Then click on the Erase button below.
- Next step is to open Terminal. Again use Finder or Spotlight or Launchpad to open it.
- Go to the location where your image file is located. Like lets say desktop for example. So I will type in
- Now we will find all the disk drives connected to the Mac. So type
sudo diskutil list
- It is important that you find which is the USB or SD Card. This can be done by observing the size of the USB or SD Card.
- Another important thing to note down is the Identifier. This will be required to unmount the drive as well as make it bootable. In my case the identifier is /dev/disk2. Also note down the sub identifiers that is the identifiers of partitions. I have only one partition, hence the sub identifier is /dev/disk2s1. Make sure you have only 1 partition or else you can find yourself in some serious trouble with the USB/SD Card.
- To unmount the main drive we will type
sudo umount disk2or
sudo umount /dev/disk2. Instead of disk2, type your identifier.
- Now its time to unmount the sub partitions. For this we will type
sudo diskutil umount disk2s1or
sudo diskutil umount /dev/disk2s1. Instead of disk2s1, type your identifier.
- We are through with 90% of the procedure. Its time to make the USB or SD Card bootable. For this we need to use the dd command. Once again, make sure you type in the command precisely or else you will find your USB or SD Card malfunctioned.
sudo dd bs=4m if=image_file_name.xxx of=/dev/disk2
bs specifies the block size. if specifies the file to be placed in the drive. of specifies the drive where the file has to be placed.
Once this command is typed, press enter and wait for few minutes. The only indication that the process is still going on is the scintillating LED on the USB. This can take around 15-20 minutes. So be patient.
That’s it. Once the process completes, eject the USB/SD Card and you can use it to boot an OS. To boot on Mac make sure you hold and press the Option key when Mac restarts. Enjoy.