Changeset d7ea6f24
- Timestamp:
- 01/30/2005 10:24:49 AM (19 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 4642c89
- Parents:
- 9c10139
- Location:
- chapter02
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/creatingfilesystem.xml
r9c10139 rd7ea6f24 10 10 <para>See testing</para> 11 11 12 <!--13 <para>Now that we have a blank partition, we can create a file system on it.14 Most widely used in the Linux world is the second extended file system (ext2),15 but with the high-capacity hard disks of today the so-called journaling file16 systems are becoming increasingly popular. Here we will create an ext2 file17 system, but build instructions for other file systems can be found at18 <ulink url="&blfs-root;view/stable/postlfs/filesystems.html"/>.</para>19 20 <para>To create an ext2 file system on the LFS partition run the following:</para>21 22 <screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>23 24 <para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS partition25 (something like <filename>hda5</filename>).</para>26 27 <para>If you created a (new) swap partition you need to initialize it as a28 swap partition too (also known as formatting, like you did above with29 <command>mke2fs</command>) by running:</para>30 31 <screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>32 33 <para>Replace <replaceable>[yyy]</replaceable> with the name of the swap34 partition.</para>35 -->36 37 12 </sect1> -
chapter02/creatingpartition.xml
r9c10139 rd7ea6f24 10 10 <para>See testing</para> 11 11 12 <!--13 <para>In order to build our new Linux system, we will need some space:14 an empty disk partition. If you don't have a free partition, and no room15 on any of your hard disks to make one, then you could build LFS on the16 same partition as the one on which your current distribution is installed.17 This procedure is not recommended for your first LFS install, but if you18 are short on disk space, and you feel brave, take a look at the hint at19 <ulink url="&hints-root;lfs_next_to_existing_systems.txt"/>.</para>20 21 <para>For a minimal system you will need a partition of around 1.3 GB.22 This is enough to store all the source tarballs and compile all the packages.23 But if you intend to use the LFS system as your primary Linux system, you24 will probably want to install additional software, and will need more space25 than this, probably around 2 or 3 GB.</para>26 27 <para>As we almost never have enough RAM in our box, it is a good idea to28 use a small disk partition as swap space - this space is used by the kernel29 to store seldom-used data to make room in memory for more urgent stuff.30 The swap partition for your LFS system can be the same one as for your host31 system, so you won't have to create another if your host system already uses32 a swap partition.</para>33 34 <para>Start a disk partitioning program such as <command>cfdisk</command>35 or <command>fdisk</command> with an argument naming the hard disk upon36 which the new partition must be created - for example37 <filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native38 partition and a swap partition, if needed. Please refer to the man pages of39 <command>cfdisk</command> or <command>fdisk</command> if you don't yet40 know how to use the programs.</para>41 42 <para>Remember the designation of your new partition - something like43 <filename>hda5</filename>. This book will refer to it as the LFS partition.44 If you (now) also have a swap partition, remember its designation too. These45 names will later be needed for the <filename>/etc/fstab</filename> file.</para>46 -->47 48 12 </sect1> -
chapter02/introduction.xml
r9c10139 rd7ea6f24 10 10 <para>See testing</para> 11 11 12 <!--13 <para>In this chapter the partition which will host the LFS system is14 prepared. We will create the partition itself, make a file system on it,15 and mount it.</para>16 -->17 18 12 </sect1> -
chapter02/mounting.xml
r9c10139 rd7ea6f24 10 10 <para>See testing</para> 11 11 12 <!--13 <para>Now that we've created a file system, we want to be able to access14 the partition. For that, we need to mount it, and have to choose a mount15 point. In this book we assume that the file system is mounted under16 <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory17 you choose.</para>18 19 <para>Choose a mount point and assign it to the LFS environment variable20 by running:</para>21 22 <screen><userinput>export LFS=/mnt/lfs</userinput></screen>23 24 <para>Now create the mount point and mount the LFS file system by running:</para>25 26 <screen><userinput>mkdir -p $LFS27 mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen>28 29 <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS30 partition.</para>31 32 <para>If you have decided to use multiple partitions for LFS (say one for33 <filename class="directory">/</filename> and another for34 <filename class="directory">/usr</filename>), mount them like this:</para>35 36 <screen><userinput>mkdir -p $LFS37 mount /dev/<replaceable>[xxx]</replaceable> $LFS38 mkdir $LFS/usr39 mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen>40 41 <para>Of course, replace <replaceable>[xxx]</replaceable> and42 <replaceable>[yyy]</replaceable> with the appropriate partition names.</para>43 44 <para>You should also ensure that this new partition is not mounted with45 permissions that are too restrictive (such as the nosuid, nodev or noatime46 options). You can run the <command>mount</command> command without any47 parameters to see with what options the LFS partition is mounted. If48 you see nosuid, nodev or noatime, you will need to remount it.</para>49 50 <para>Now that we've made ourselves a place to work in, we're ready to download51 the packages.</para>52 -->53 54 12 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.