[SCM] Debian Live manual branch, master, updated. 20090201-1-2-g615d9ec

Daniel Baumann daniel at debian.org
Tue Feb 3 09:52:20 UTC 2009


The following commit has been merged in the master branch:
commit 615d9ecbce36dd593f1201a871412ad89ac52ffb
Author: Frederic Boiteux <fboiteux at calistel.com>
Date:   Tue Feb 3 10:50:01 2009 +0100

    Adding (temporary) instructions on how to use grub on an usb stick image.

diff --git a/xml/chapters/customization/bootup.xml b/xml/chapters/customization/bootup.xml
index 46389f4..8daca41 100644
--- a/xml/chapters/customization/bootup.xml
+++ b/xml/chapters/customization/bootup.xml
@@ -38,6 +38,45 @@
  FIXME
 </para>
 </sect3>
+
+<sect3>
+<title>Booting a Debian Live USB/HDD system from a USB stick with Grub</title>
+<para>
+Suppose you've built your Debian Live USB/HDD image, but want to
+install it on an already used USB stick with ext2/3 partition and Grub
+bootloader:
+</para>
+
+<para>First, copy live components in a directory on your key: the
+  Linux kernel (<filename>vmlinuz*</filename>), its Initial RAM disk
+  (<filename>initrd*</filename>) and the system
+  (<filename>filesystem.squashfs</filename>):
+<screen>
+# mkdir /media/myUsb/boot/live/
+# cp binary/vmlinuz1 binary/initrd1.img binary/live/filesystem.squashfs /media/myUsb/boot/live/
+</screen>
+</para>
+
+<para>Then, add a stanza in Grub's menu definition to boot up this
+  system:
+<screen>
+echo &gt;&gt;/media/myUsb/boot/grub/menu.lst  &lt;&lt;EOF
+
+title           my Debian Live
+root            (hd0,1)    # my Ext2 partition is the second on this stick
+kernel          /boot/live/vmlinuz1 boot=live vga=791 persistent union=aufs live-media-path=boot/live
+initrd          /boot/live/initrd1.img
+
+EOF
+</screen>
+The important kernel command line option to add here
+is <variablename>live-media-path</variablename>, which tells to Live
+initrd's script in which subdirectory to look for the SquashFS image.
+</para>
+
+<para>Next, umount your USB stick and reboot on it. That's all!</para>
+
+</sect3>
 </sect2>
 
 <sect2 id="splash">

-- 
Debian Live manual



More information about the debian-live-changes mailing list