Skip to content

Instantly share code, notes, and snippets.

@trane
Created September 24, 2015 20:28
Show Gist options
  • Select an option

  • Save trane/8f40b541c55b3501803d to your computer and use it in GitHub Desktop.

Select an option

Save trane/8f40b541c55b3501803d to your computer and use it in GitHub Desktop.
in/prepare-boot-drive-from-iso ~/Downloads/nixos-minimal-15.09.431.52a8811-x86_64-linux.iso /dev/disk2
This will replace all your data on /dev/disk2. Are you sure you want to proceed? (yes|no) yes
Reading Master Boot Record (MBR : 0)…
Reading NIXOS_ISO (Apple_ISO : 1)…
..................................................................................................................................................
Reading (Type EF : 2)…
.......................................................................................................................................................
Reading NIXOS_ISO (Apple_ISO : 3)…
.............................................................................................................................................................
Elapsed Time: 3.591s
Speed: 94.7Mbytes/sec
Savings: 0.0%
created: /var/folders/wq/vs06gtj93j79hxy5sxg_bl6h0000gn/T/nixos.XXXXX.lVkKZj4N/nixos.dmg
Started partitioning on disk2
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk2s2 as MS-DOS (FAT32) with name NIXOS_BOOT
512 bytes per physical sector
/dev/rdisk2s2: 30286928 sectors in 1892933 FAT32 clusters (8192 bytes/cluster)
bps=512 spc=16 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=411648 drv=0x80 bsec=30316544 bspf=14789 rdcl=2 infs=1 bkbs=6
Mounting disk
Finished partitioning on disk2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *15.7 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Microsoft Basic Data NIXOS_BOOT 15.5 GB disk2s2
hdiutil attach -readOnly /var/folders/wq/vs06gtj93j79hxy5sxg_bl6h0000gn/T/nixos.XXXXX.lVkKZj4N/nixos.dmg -mountpoint /var/folders/wq/vs06gtj93j79hxy5sxg_bl6h0000gn/T/nixos.XXXXX.lVkKZj4N/nixos
hdiutil: attach failed - no mountable file systems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment