Skip to content

Instantly share code, notes, and snippets.

@Miliox
Created September 26, 2015 21:23
Show Gist options
  • Select an option

  • Save Miliox/8808ebbc74ad1396f956 to your computer and use it in GitHub Desktop.

Select an option

Save Miliox/8808ebbc74ad1396f956 to your computer and use it in GitHub Desktop.
Create LiveBoot USB using CLI on MacOSX
# source: https://blog.tinned-software.net/create-bootable-usb-stick-from-iso-in-mac-os-x/
$ hdiutil convert -format UDRW -o livecd.img LiveCD.iso
$ diskutil list
$ diskutil partitionDisk /dev/disk<n> 1 "Free Space" "unused" "100%"
$ diskutil unmount disk<n>s1
$ sudo dd if=antivirus_livecd.img.dmg of=/dev/disk<n> bs=1m
$ diskutil eject /dev/disk<n>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment