diff options
Diffstat (limited to 'book/about_media.html')
-rw-r--r-- | book/about_media.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/book/about_media.html b/book/about_media.html new file mode 100644 index 0000000..beb7020 --- /dev/null +++ b/book/about_media.html @@ -0,0 +1,8 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>5.1. Creating a linux Filesystem</title><link rel="stylesheet" href="stylesheets/lfs.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><link rel="stylesheet" href="stylesheets/lfs-print.css" type="text/css" media="print" /></head><body class="lfs" id="lfs-0.3"><div class="navheader"><h4>LFS live howto - Version 0.3</h4><h3>Chapter 5. Preparing install</h3><ul><li class="prev"><a accesskey="p" href="ch05.html" title="Preparing install">Prev</a><p>Preparing install</p></li><li class="next"><a accesskey="n" href="pt05.html" title="the USB live system">Next</a><p>the USB live system</p></li><li class="up"><a accesskey="u" href="ch05.html" title="Chapter 5. Preparing install">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div><div class="sect1" lang="en" xml:lang="en"><h1 class="sect1"><a id="about_usb" name="about_usb"></a>5.1. Creating a linux Filesystem</h1><div class="admon note"><img alt="[Note]" src="images/note.png" /><h3>Note</h3><p>The commands in the remainder of this book must be performed while logged in as user root</p></div><p>The rest of this chapter assumes you already installed needed packages. If it's not the case, you should go to <a class="xref" href="squashfs.html" title="2.1. Squashfs 4.2">squashfs 4.2</a> + You should also have configured your kernel properly, as described in <a class="xref" href="essential.html" title="3.1. Reconfiguring the Kernel">Section 3.1, “Reconfiguring the Kernel”</a> + </p><p>Now it's time to assemble our live system.</p><p>First let's define the name of our system, this name will be given to our media: cd/dvd/usbkey/usbdrive.</p><p>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</p><p>export the name of our system:</p><pre class="userinput"><kbd class="command">export LFSLIVE=lfslive</kbd></pre><p>create and export the mount point:</p><pre class="userinput"><kbd class="command">export LFSMOUNT=/mnt/LFS +mkdir -pv $LFSMOUNT</kbd></pre><p>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:</p><pre class="userinput"><kbd class="command">mount --bind <path to LFSspace> $LFSMOUNT</kbd></pre><p>Or if you use a dedicated partition mount it:</p><pre class="userinput"><kbd class="command">mount /dev/<device> $LFSMOUNT</kbd></pre><p>you can now continue with <a class="xref" href="building_iso.html" title="8.1. Building the ISO live system">Section 8.1, “Building the ISO live system”</a></p><p></p><p>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.</p><p>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.</p><p>You will then have to create ext2/ext3 filesystem on the partition you created, using:</p><pre class="userinput"><kbd class="command">mke2fs -j -L $LFSLIVE /dev/<sd?1></kbd></pre><p>Where sd?1 is the flash drive partition for the livekey</p><p>And mount it:</p><pre class="userinput"><kbd class="command">mount /dev/<device> $LFSMOUNT</kbd></pre><p>Now that the filesystem has been set up on the usb-media, go to <a class="xref" href="building.html" title="6.1. Building the USB live system">Section 6.1, “Building the USB live system”</a></p></div><div class="navfooter"><ul><li class="prev"><a accesskey="p" href="ch05.html" title="Preparing install">Prev</a><p>Preparing install</p></li><li class="next"><a accesskey="n" href="pt05.html" title="the USB live system">Next</a><p>the USB live system</p></li><li class="up"><a accesskey="u" href="ch05.html" title="Chapter 5. Preparing install">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div></body></html> |