Skip to content

Instantly share code, notes, and snippets.

@zcaudate
Forked from gildas/create-mint-sh
Last active January 31, 2021 05:51
Show Gist options
  • Save zcaudate/169fc2470cbaca41fc0aec4be578c6a4 to your computer and use it in GitHub Desktop.
Save zcaudate/169fc2470cbaca41fc0aec4be578c6a4 to your computer and use it in GitHub Desktop.
Create Linux Mint USB on Mac OS/X
#! /usr/bin/env bash
# Insert a USB key.
# if needed initialize it with MS/DOS FAT and MBR
# Download the Mint ISO image
# Convert the ISO -> IMG
hdiutil convert -format UDRW -o linuxmint-20.1-cinnamon-64bit linuxmint-20.1-cinnamon-64bit.iso
# Check where the USB drive has been mounted
diskutil list
# Run a diskutil list to know the device for the USB key, e.g.: /dev/disk3
# then unmount the USB key:
diskutil unmountDisk /dev/rdisk<N> #note the "r"
# And copy the img on it:
sudo dd if=linuxmint-17.3-cinnamon-64bit.dmg of=/dev/rdisk<N> bs=1m
# Eject the USB key and voilà!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment