Skip to content

Instantly share code, notes, and snippets.

@sdeluce
Last active January 27, 2017 18:49
Show Gist options
  • Save sdeluce/1fc6281d6ab70688ff93ded5a60286c4 to your computer and use it in GitHub Desktop.
Save sdeluce/1fc6281d6ab70688ff93ded5a60286c4 to your computer and use it in GitHub Desktop.
Création d'un clef usb bootable via OsX en Cli
# convertir l'iso en img
hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/mint.iso
# Convertir l'img dmg en img
mv ~/path/to/target.img.dmg ~/path/to/target.img
# Liste des périphériques
diskutil list
# Replace N by value find in list
diskutil unmountDisk /dev/diskN
# Replace N
sudo dd if=/path/to/target.img of=/dev/rdiskN bs=1m
# With the good value of N
diskutil eject /dev/diskN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment