aboutsummaryrefslogtreecommitdiffstats
path: root/chapter02/creatingfilesystem.xml
blob: 6edd58627ce03f6ed9e1663811fe1c55d31ec6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 [
  <!ENTITY % general-entities SYSTEM "../general.ent">
  %general-entities;
]>
<sect1 id="space-creatingfilesystem">
<title>Creating a file system</title>
<?dbhtml filename="creatingfilesystem.html"?>

<para>Now that we have a blank partition, 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 url="&blfs-root;view/stable/postlfs/filesystems.html"/>.</para>

<para>To create an ext2 file system on the LFS partition run the following:</para>

<screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>

<para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS partition
(something like <filename>hda5</filename>).</para>

<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
<command>mke2fs</command>) by running:</para>

<screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>

<para>Replace <replaceable>[yyy]</replaceable> with the name of the swap
partition.</para>

</sect1>