diff options
Diffstat (limited to 'about_media.xml')
-rw-r--r-- | about_media.xml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/about_media.xml b/about_media.xml new file mode 100644 index 0000000..81aa5c7 --- /dev/null +++ b/about_media.xml @@ -0,0 +1,35 @@ +<?xml version='1.0' encoding='ISO-8859-1'?>
+<!-- This document was created with Syntext Serna Free. -->
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" []>
+<sect1 id="about_usb">
+<?dbhtml filename="about_media.html"?> <title>Creating a linux Filesystem</title>
+ <note><para>The commands in the remainder of this book must be performed while logged in as user root</para></note>
+ <para>The rest of this chapter assumes you already installed needed packages. If it's not the case, you should go to <xref linkend="squashfs"/>
+ You should also have configured your kernel properly, as described in <xref linkend="essential"/>
+ </para>
+ <para>Now it's time to assemble our live system.</para>
+ <para>First let's define the name of our system, this name will be given to our media: cd/dvd/usbkey/usbdrive.</para>
+ <para>The cd/dvd choice will be further mentioned as the ISO live system, the usbkey, usbdrive or usbstick will be mentioned as the usb live system</para>
+ <para>export the name of our system:</para>
+ <screen><userinput>export LFSLIVE=lfslive</userinput></screen>
+ <para>create and export the mount point:</para>
+ <screen><userinput>export LFSMOUNT=/mnt/LFS
+mkdir -pv $LFSMOUNT</userinput></screen>
+ <para>If you plan to create an ISO live system, create some space to store the complete system plus some extra space. App. 1,5 times the size of the system will do,
+after you reserved some space, create a link to the folder:</para>
+ <screen><userinput>mount --bind <path to LFSspace> $LFSMOUNT</userinput></screen>
+ <para>Or if you use a dedicated partition mount it:</para>
+ <screen><userinput>mount /dev/<device> $LFSMOUNT</userinput></screen>
+ <para>you can now continue with <xref linkend="building_iso"/></para>
+ <para></para>
+ <para>For use of the usb live system, it's time to create some free space on it and create partitions, just like we do in the LFS book;
+Make an ext2 or ext3 file system on it and a small swap partition.</para>
+ <para>First, open the key with your favorite partitioning program, eg. cfdisk or fdisk or some other, and remove any partition already existing on it.
+Then, create one primary partition on the usb stick.</para>
+ <para>You will then have to create ext2/ext3 filesystem on the partition you created, using:</para>
+ <screen><userinput>mke2fs -j -L $LFSLIVE /dev/<sd?1></userinput></screen>
+ <para>Where sd?1 is the flash drive partition for the livekey</para>
+ <para>And mount it:</para>
+ <screen><userinput>mount /dev/<device> $LFSMOUNT</userinput></screen>
+ <para>Now that the filesystem has been set up on the usb-media, go to <xref linkend="building_usb"/></para>
+</sect1>
|