Normally you can boot Linux CDs in Mac and install Linux on hard disk. But what happens when your hard disk is corrupted, or you just want to install Linux on a pendrive that boots in Linux. Well that’s when you realize the problem that I faced. Here’s what I did

  1. Installed Unetbootin and created a live usb of Elementary OS
  2. Booted up my Macbook while pressing the Alt/Option key to see the EFI boot option for the USB drive
  3. Booted from Live USB
  4. Everything except Wifi adapter worked out of box
  5. To install Wifi adapter, launched the Elementary OS installer and went through the steps of selecting language options and installing proprietary drivers
  6. Quit the installer as soon as Wifi signal started showing
  7. Used the live environment to play and understand if this is going to work
  8. Once convinced, attached another pendrive to install elementary on this second pendrive
  9. The installation went fine but failed in last step where grub was to be installed
  10. Researched on how to repair the corrupted Grub, it seemed too much of work and also none of the online guidance actually worked
  11. I suddenly remembered that back in the early days there used to be a mechanism of making Linux USB drives persistent
  12. Found the mechanism now as mkusb
  13. Followed this guide https://phillw.net/isos/linux-tools/mkusb/mkUSB-quick-start-manual.pdf
  14. Created a Live persistent pendrive from mkusb
  15. Connected the live persistent pendrive into Macbook and booted with Alt/Option pressed to select booting from it
  16. It worked! and I landed up into a Live Persistent USB Elementary OS running on (flying on) my Macbook