Skip to content

Instantly share code, notes, and snippets.

@yriveiro
Created August 29, 2017 17:52
Show Gist options
  • Save yriveiro/137cf03610922f3545d6c302e3458bc4 to your computer and use it in GitHub Desktop.
Save yriveiro/137cf03610922f3545d6c302e3458bc4 to your computer and use it in GitHub Desktop.
Bootable USB drive within OSX for a Debian installation
# Requirements:
# - pen drive formatted in FAT
# - boot.img.gz downloaded from: http://ftp.debian.org/debian/dists/Debian6.0.2/main/installer-amd64/current/images/hd-media/
# - netinstall iso image http://cdimage.debian.org/debian-cd/6.0.2.1/amd64/iso-cd/
# - pen drive is on /dev/disk1 -> check with "diskutil list"
diskutil unmountDisk /dev/disk1
gzip -dc boot.img.gz >/dev/disk1
diskutil eject /dev/disk1
# mount pen drive again
# add iso image to the pen drive
# boot from the pen drive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment