NixOS Installation Guide: Difference between revisions

imported>Ixxie
No edit summary
imported>Ixxie
m Fixed formatting of Hybrid section.
Line 3: Line 3:
== Installing NixOS from USB ==
== Installing NixOS from USB ==


<!--
Since NixOS 14.11 the installer ISO is hybrid. This means it is bootable on both CD and USB drives. It also boots on EFI systems, like most modern motherboards and Mac* systems. Please read the [[#Hybrid image]] section on how to burn the ISO.
Since NixOS 14.11 the installer ISO is hybrid. This means it is bootable on both CD and USB drives. It also boots on EFI systems, like most modern motherboards and Mac* systems. Please read the [[#Hybrid image]] section on how to burn the ISO.


For NixOS 14.04 and earlier, please read [[#Using Unetbootin]] and the other sections below.
For NixOS 14.04 and earlier, please read [[#Using Unetbootin]] and the other sections below.


=== Hybrid image ===
=== Hybrid image ===
Line 15: Line 13:


On Linux:
On Linux:
*Find the right device with <code>fdisk -l</code>, let's say <code>/dev/sdb</code>.
# Find the right device with <code>fdisk -l</code>, let's say <code>/dev/sdb</code>.
*Burn with: <code>cp nixos-xxx.iso /dev/sdb</code>
# Burn with: <code>cp nixos-xxx.iso /dev/sdb</code>
{{Note|do not use /dev/sdb1 or partitions of the disk, use the whole disk /dev/sdb.}}


{{Note|do not use /dev/sdb1 or partitions of the disk, use the whole disk /dev/sdb.}}
On OS X:
</li>
# Find the right device with <code>diskutil list</code>, let's say <code>disk<b>2</b></code>.
<li>On OS X:
# Unmount with <code>diskutil unmountDisk disk<b>2</b></code>.
 
# Burn with: <code>sudo dd if=<b>path_to_nixos.iso</b> of=/dev/<b>r</b>disk<b>2</b> bs=64k</code>
<ol>
# Note the use of rdisk instead of disk, this makes a large speed difference. You can check the write speed with <code>iostat 2</code> in another terminal.
<li>Find the right device with <code>diskutil list</code>, let's say <code>disk<b>2</b></code>.</li>
<li>Unmount with <code>diskutil unmountDisk disk<b>2</b></code>.</li>
<li>Burn with: <code>sudo dd if=<b>path_to_nixos.iso</b> of=/dev/<b>r</b>disk<b>2</b> bs=64k</code></li>
<li>Note the use of rdisk instead of disk, this makes a large speed difference. You can check the write speed with <code>iostat 2</code> in another terminal.</li>
</ol>


You could use Disk Utility to write the image but then you'd need to convert it first to a compatible format somehow.
You could use Disk Utility to write the image but then you'd need to convert it first to a compatible format somehow.
</li>
<li>On Windows:


<ol>
On Windows:
<li>Download [http://sourceforge.net/projects/usbwriter/ USBwriter].</li>
# Download [http://sourceforge.net/projects/usbwriter/ USBwriter].
<li>Start USBwriter.</li>
# Start USBwriter.
<li>Choose the downloaded ISO as 'Source'</li>
# Choose the downloaded ISO as 'Source'
<li>Choose the USB drive as 'Target'</li>
# Choose the USB drive as 'Target'
<li>Click 'Write'</li>
# Click 'Write'
<li>When USBwriter has finished writing, safely unplug the USB drive.</li>
# When USBwriter has finished writing, safely unplug the USB drive.
</ol>
</li>
</ul>


This should suffice to boot the installer. Otherwise look for other alternatives below.
This should suffice to boot the installer. Otherwise look for other alternatives below.
-->


=== UEFI note ===
=== UEFI note ===