1<section xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 version="5.0"
5 xml:id="sec-booting-from-usb">
6
7<title>Booting from a USB Drive</title>
8
9<para>For systems without CD drive, the NixOS live CD can be booted from
10a USB stick. For non-UEFI installations,
11<link xlink:href="http://unetbootin.sourceforge.net/">unetbootin</link>
12will work. For UEFI installations, you should mount the ISO, copy its contents
13verbatim to your drive, then either:
14
15<itemizedlist>
16 <listitem>
17 <para>Change the label of the disk partition to the label of the ISO
18 (visible with the blkid command), or</para>
19 </listitem>
20 <listitem>
21 <para>Edit <filename>loader/entries/nixos-livecd.conf</filename> on the drive
22 and change the <literal>root=</literal> field in the <literal>options</literal>
23 line to point to your drive (see the documentation on <literal>root=</literal>
24 in <link xlink:href="https://www.kernel.org/doc/Documentation/kernel-parameters.txt">
25 the kernel documentation</link> for more details).</para>
26 </listitem>
27</itemizedlist>
28</para>
29
30</section>