Skip to content

Instantly share code, notes, and snippets.

@AngelBerihuete
Last active February 24, 2016 12:22
Show Gist options
  • Save AngelBerihuete/7155860 to your computer and use it in GitHub Desktop.
Save AngelBerihuete/7155860 to your computer and use it in GitHub Desktop.
Debian bootable USB stick on OSX
# http://askubuntu.com/questions/192620/how-to-make-ubuntu-iso-bootable-on-a-usb-stick-with-osx
#
# Requirements:
# - pen drive formatted in FAT
# - iso file downloaded from: http://cdimage.debian.org/debian-cd/7.2.0/amd64/iso-dvd/debian-7.2.0-amd64-DVD-1.iso
# - pen drive is on /dev/disk1 -> check with "diskutil list"
hdiutil convert -format UDRW -o debianDVD.img debian-7.2.0-amd64-DVD-1.iso
diskutil unmountDisk /dev/disk1
sudo dd if=debianDVD.img of=/dev/rdisk1 bs=1m
gzip -dc boot.img.gz >/dev/disk1
diskutil eject /dev/disk1
# mount pen drive again
# boot from the pen drive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment