2002-12-11 02:00:18 +00:00
|
|
|
<sect1 id="ch03-creatingfs">
|
2001-02-28 00:08:17 +00:00
|
|
|
<title>Creating a file system on the new partition</title>
|
2002-12-11 02:00:18 +00:00
|
|
|
<?dbhtml filename="creatingfs.html" dir="chapter03"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para>Now the partition has been made, we can create a file system on it.
|
|
|
|
Most widely used in the Linux world is the second extended file system (ext2),
|
|
|
|
but with the high-capacity hard disks of today the so-called journaling file
|
|
|
|
systems are becoming increasingly popular. Here we will create an ext2 file
|
|
|
|
system, but build instructions for other file systems can be found at <ulink
|
2003-09-04 05:20:50 +01:00
|
|
|
url="http://www.linuxfromscratch.org/blfs/view/cvs/postlfs/filesystems.html"/>.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para>To create an ext2 file system on the LFS partition run the following:</para>
|
2001-02-28 00:08:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>mke2fs /dev/xxx</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-10-18 18:00:20 +01:00
|
|
|
<para>Replace <filename>xxx</filename> with the name of the LFS partition
|
|
|
|
(something like <filename>hda5</filename>).</para>
|
2001-03-28 14:00:22 +01:00
|
|
|
|
2002-12-03 19:46:37 +00:00
|
|
|
<para>If you created a (new) swap partition you need to initialize it as a
|
|
|
|
swap partition too (also known as formatting, like you did above with
|
|
|
|
<userinput>mke2fs</userinput>) by running:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>mkswap /dev/yyy</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>Replace <filename>yyy</filename> with the name of the swap
|
|
|
|
partition.</para>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect1>
|
|
|
|
|