You basically need to
There are GUI tools out there which can achieve this but I prefer the simple command line set of instructions which I could not find for MacBooks. I did find instructions for creating a USB stick on a Linux or Windows box though which I combined with instructions for the particular device handling on MacBooks.
Main resources:
Download Linux image
Download your favourite Linux image which you want to put onto the USB stick. I opted for Lubuntu from https://help.ubuntu.com/community/Lubuntu/GetLubuntuwhere I chose the PC 64bit Standard image disc.
Attach the USB stick
Attach the USB stick to a USB port. It will be shown in Finder. Check on the system:mount points: my USB stick is mounted under disk2, to be precise: the file system in partition s1 is mounted.
ls of disk devices: disk2 is the whole device, disk2s1 is the partition with the file system
Unmount the partition
What we want is: keep the USB stick attached and in the list of devices but unmount all partitions. Eject in Finder is no option since it will completely remove the device. We only want to unmount the USB stick.Overall this was the trickiest part since the normal UNIX umount did not work as expected. The usual umount does not work on MacOS since there are applications (spotlight, etc.) constantly accessing the file system so an error is thrown (of course this command and all the following need to be done as root therefore I am using sudo):One could try to kill all these processes (after first identifying them) but the real trick is to use the Mac specific diskutil command:
Write Linux image to USB stick
The good old dd is all you need. Input file if is the Linux iso file, output file of is the USB device (note the full device /dev/disk2, not a particular partition), and block size 4MB (could be anything which you think feasible on your machine).Note: this takes some time, 22 minutes in my case.