From 7df987a652b93d55dd8eca363706d3bacc469b55 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 27 Nov 2014 16:29:31 -0600 Subject: Initial commit message for lfs live howto. --- about_media.xml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 about_media.xml (limited to 'about_media.xml') 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 @@ + + + + + Creating a linux Filesystem + The commands in the remainder of this book must be performed while logged in as user root + The rest of this chapter assumes you already installed needed packages. If it's not the case, you should go to + You should also have configured your kernel properly, as described in + + Now it's time to assemble our live system. + First let's define the name of our system, this name will be given to our media: cd/dvd/usbkey/usbdrive. + 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 + export the name of our system: + export LFSLIVE=lfslive + create and export the mount point: + export LFSMOUNT=/mnt/LFS +mkdir -pv $LFSMOUNT + 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: + mount --bind <path to LFSspace> $LFSMOUNT + Or if you use a dedicated partition mount it: + mount /dev/<device> $LFSMOUNT + you can now continue with + + 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. + 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. + You will then have to create ext2/ext3 filesystem on the partition you created, using: + mke2fs -j -L $LFSLIVE /dev/<sd?1> + Where sd?1 is the flash drive partition for the livekey + And mount it: + mount /dev/<device> $LFSMOUNT + Now that the filesystem has been set up on the usb-media, go to + -- cgit v1.2.3-54-g00ecf