Create a bootable USB pen drive with a linux iso from a mac

Posted on 25 May 2024

Commands

  • Format the USB pen as MS-DOS FAT
  • hdiutil convert debian-live-12.5.0-amd64-xfce.iso -format UDRW -o debian
  • Find disk number of the USB drive using diskutil list. It's important to get this right. In this case it's number 3
  • diskutil unmountDisk /dev/disk3
  • sudo dd if=debian.dmg of=/dev/disk3 bs=1m
  • diskutil unmountDisk /dev/disk3