Guest User

Untitled

a guest
May 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #! /usr/bin/env bash
  2.  
  3. # Insert a USB key.
  4. # if needed initialize it with MS/DOS FAT and MBR
  5.  
  6. # Download the Mint ISO image
  7. # Convert the ISO -> IMG
  8. hdiutil convert -format UDRW -o linuxmint-18.3-cinnamon-64bit linuxmint-18.3-cinnamon-64bit.iso
  9.  
  10. # Run a diskutil list to know the device for the USB key, e.g.: /dev/disk3
  11. # then unmount the USB key:
  12. diskutil unmountDisk /dev/rdisk2 #note the "r"
  13.  
  14. # And copy the img on it:
  15. sudo dd if=linuxmint-17.3-cinnamon-64bit.dmg of=/dev/rdisk2 bs=1m
  16.  
  17. # Eject the USB key and voilà!
Add Comment
Please, Sign In to add comment