creatingfs.xml 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <sect1 id="ch03-creatingfs">
  2. <title>Creating a file system on the new partition</title>
  3. <?dbhtml filename="creatingfs.html" dir="chapter03"?>
  4. <para>Now the partition has been made, we can create a file system on it.
  5. Most widely used in the Linux world is the second extended file system (ext2),
  6. but with the high-capacity hard disks of today the so-called journaling file
  7. systems are becoming increasingly popular. Here we will create an ext2 file
  8. system, but build instructions for other file systems can be found at <ulink
  9. url="http://beyond.linuxfromscratch.org/view/cvs/postlfs/filesystems.html"/>.</para>
  10. <para>To create an ext2 file system on the LFS partition run the following:</para>
  11. <para><screen><userinput>mke2fs /dev/xxx</userinput></screen></para>
  12. <para>Replace <filename>xxx</filename> with the name of the LFS partition
  13. (something like <filename>hda5</filename>).</para>
  14. <para>If you created a (new) swap partition you need to initialize it as a
  15. swap partition too (also known as formatting, like you did above with
  16. <userinput>mke2fs</userinput>) by running:</para>
  17. <para><screen><userinput>mkswap /dev/yyy</userinput></screen></para>
  18. <para>Replace <filename>yyy</filename> with the name of the swap
  19. partition.</para>
  20. </sect1>