NixOS Installation Guide: Difference between revisions

imported>Samueldr
m title header
imported>Samueldr
m Using Unetbootin: moves instructions to a standalone page
Line 61: Line 61:
=== Using Unetbootin ===
=== Using Unetbootin ===


It is possible to install NixOS from a USB stick, rather than from a CD.  This is useful if you want to install NixOS on a machine that doesn't have a CD-ROM drive (such as most netbooks), or if you don't want to waste a blank CD.  Here is how to do it:
See → [NixOS_Installation_Guide/Unetbootin]
 
<ol>
 
<li>Download a [http://nixos.org/nixos/download.html NixOS ISO image] or [[#Build a custom installation image]].</li>
 
<li>Obtain a USB stick formatted with the VFAT/FAT32 filesystem with enough free disk space to hold the contents of the ISO image.  {{Note|It's not necessary to erase the USB stick.}}</li>
 
<li>Install [http://unetbootin.sourceforge.net/ UNetbootin], a tool that allows you to create a bootable USB stick from an ISO image.  UNetbootin runs on both Linux and Windows.  If you already have Nix/NixOS, you can install it by running <tt>nix-env -i unetbootin</tt>.  [http://en.wikipedia.org/wiki/List_of_tools_to_create_Live_USB_systems Other tools] may also work.</li>
 
<li>Insert the USB stick, start UNetbootin, select the ISO file and target USB drive, and press Ok.  This copies the contents of the ISO to the USB stick and installs the GRUB boot loader.</li>
 
<li>You should now be able to boot NixOS from the USB stick, and perform the installation as usual.</li>
 
</ol>
 
{{Note|For EFI support you may need to change the label of the FAT filesystem. You can do this on Linux with mlabel, and on OS X with diskutil: `sudo diskutil rename OLDNAME NIXOS_ISO`.}}


=== Using syslinux ===
=== Using syslinux ===