- Timestamp:
- 05/29/2004 08:00:54 PM (20 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.0, 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:
- 05616e2
- Parents:
- d44a965
- Location:
- chapter02
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/creatingfilesystem.xml
rd44a965 r55851d6 17 17 <para>To create an ext2 file system on the LFS partition run the following:</para> 18 18 19 <screen><userinput>mke2fs /dev/ xxx</userinput></screen>19 <screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen> 20 20 21 <para>Replace < filename>xxx</filename> with the name of the LFS partition21 <para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS partition 22 22 (something like <filename>hda5</filename>).</para> 23 23 24 24 <para>If you created a (new) swap partition you need to initialize it as a 25 25 swap partition too (also known as formatting, like you did above with 26 < userinput>mke2fs</userinput>) by running:</para>26 <command>mke2fs</command>) by running:</para> 27 27 28 <screen><userinput>mkswap /dev/ yyy</userinput></screen>28 <screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen> 29 29 30 <para>Replace < filename>yyy</filename> with the name of the swap30 <para>Replace <replaceable>[yyy]</replaceable> with the name of the swap 31 31 partition.</para> 32 32 -
chapter02/creatingpartition.xml
rd44a965 r55851d6 29 29 a swap partition.</para> 30 30 31 <para>Start a disk partitioning program such as < userinput>cfdisk</userinput>32 or < userinput>fdisk</userinput> with an argument naming the hard disk upon31 <para>Start a disk partitioning program such as <command>cfdisk</command> 32 or <command>fdisk</command> with an argument naming the hard disk upon 33 33 which the new partition must be created -- for example 34 34 <filename>/dev/hda</filename> for the primary IDE disk. Create a Linux native 35 35 partition and a swap partition, if needed. Please refer to the man pages of 36 < userinput>cfdisk</userinput> or <userinput>fdisk</userinput> if you don't yet36 <command>cfdisk</command> or <command>fdisk</command> if you don't yet 37 37 know how to use the programs.</para> 38 38 -
chapter02/mounting.xml
rd44a965 r55851d6 11 11 the partition. For that, we need to mount it, and have to choose a mount 12 12 point. In this book we assume that the file system is mounted under 13 <filename >/mnt/lfs</filename>, but it doesn't matter what directory13 <filename class="directory">/mnt/lfs</filename>, but it doesn't matter what directory 14 14 you choose.</para> 15 15 … … 22 22 23 23 <screen><userinput>mkdir -p $LFS 24 mount /dev/ xxx$LFS</userinput></screen>24 mount /dev/<replaceable>[xxx]</replaceable> $LFS</userinput></screen> 25 25 26 <para>Replace < filename>xxx</filename> with the designation of the LFS26 <para>Replace <replaceable>[xxx]</replaceable> with the designation of the LFS 27 27 partition.</para> 28 28 29 29 <para>If you have decided to use multiple partitions for LFS (say one for 30 <filename >/</filename> and another for <filename>/usr</filename>), mount31 them like this:</para>30 <filename class="directory">/</filename> and another for 31 <filename class="directory">/usr</filename>), mount them like this:</para> 32 32 33 33 <screen><userinput>mkdir -p $LFS 34 mount /dev/ xxx$LFS34 mount /dev/<replaceable>[xxx]</replaceable> $LFS 35 35 mkdir $LFS/usr 36 mount /dev/ yyy$LFS/usr</userinput></screen>36 mount /dev/<replaceable>[yyy]</replaceable> $LFS/usr</userinput></screen> 37 37 38 <para>Of course, replace < filename>xxx</filename> and <filename>yyy</filename>39 with the appropriate partition names.</para>38 <para>Of course, replace <replaceable>[xxx]</replaceable> and 39 <replaceable>[yyy]</replaceable> with the appropriate partition names.</para> 40 40 41 41 <para>You should also ensure that this new partition is not mounted with
Note:
See TracChangeset
for help on using the changeset viewer.