Skip to content

Instantly share code, notes, and snippets.

@aklap
Created October 12, 2018 03:39
Show Gist options
  • Save aklap/c1de39ebf695a90d5785d83e955a153f to your computer and use it in GitHub Desktop.
Save aklap/c1de39ebf695a90d5785d83e955a153f to your computer and use it in GitHub Desktop.
Create Ubuntu live USB on macOS

From Apple Stack Exchange

1. Download Ubuntu ISO

2. Insert flash drive. Reformat.

Open DiskUtility. Erase flash drive. Reformat as MS-DOS(FAT) with GUID partition.

3. Convert the ISO to .img

Run hdiutil convert -format UDRW -o /path/to/target.img /path/to/ubuntu.iso

(May create a file .img.dmg which is ok.)

4. Find flash drive and note disk.

diskutil list

5. Unmount the flash drive.

diskutil unmountDisk /dev/diskN

6. Copy .img(.dmg) to the flash drive.

sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m

7. Eject the finished flash drive.

diskutil eject /dev/diskN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment