In this article, we’ll show you how to create a Linux bootable USB flash drive from Mac OS terminal. If for some reason you do not have windows or Linux installed on your machine, then you can create a bootable USB flash drive in Mac OS.
First of all, you have to download your favorite Linux distribution. After that insert the flash drive into your system, but first, we need to determine the name of our flash drive, for this we open the terminal and issue the following command.
our flash drive was defined as /dev/disk1
further, we need superuser rights
enter your password, and do not worry that you can not see the characters of the input.
Continue, Now we know the name of our flash drive we will proceed with formatting.
diskutil eraseDisk "MS-DOS FAT-32" FLASH disk1
Let’s take a closer look, “eraseDisk” – erases our disk, “MS-DOS FAT-32” – formats the USB flash drive with FAT32 system, “FLASH” – the new disc name and “disk1” – how the flash drive is ready.
If everything went well, then you need to unmount the USB device with a command
diskutil unmountDisk /dev/disk1
Now write the image by issuing the command
dd if = "path to image" of = /dev/disk1
and wait for about 15 minutes.
Now you have fully functional, bootable Linux USB drive. Reboot and install your OS.