Rev | Line | |
---|
[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[522b09f] | 2 | <!DOCTYPE section [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[522b09f] | 6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
| 7 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
| 8 | xml:id="space-creatingfilesystem">
|
---|
[6a0e6f3] | 9 | <title>Creating a file system</title>
|
---|
[673b0d8] | 10 | <?dbhtml filename="creatingfilesystem.html"?>
|
---|
| 11 |
|
---|
| 12 | <para>Now that we have a blank partition, we can create a file system on it.
|
---|
| 13 | Most widely used in the Linux world is the second extended file system (ext2),
|
---|
| 14 | but with the high-capacity hard disks of today the so-called journaling file
|
---|
| 15 | systems are becoming increasingly popular. Here we will create an ext2 file
|
---|
| 16 | system, but build instructions for other file systems can be found at
|
---|
[dc6acb5] | 17 | <link xlink:href="&blfs-root;view/stable/postlfs/filesystems.html">&blfs-root;view/stable/postlfs/filesystems.html</link>.</para>
|
---|
[673b0d8] | 18 |
|
---|
| 19 | <para>To create an ext2 file system on the LFS partition run the following:</para>
|
---|
| 20 |
|
---|
[55851d6] | 21 | <screen><userinput>mke2fs /dev/<replaceable>[xxx]</replaceable></userinput></screen>
|
---|
[673b0d8] | 22 |
|
---|
[55851d6] | 23 | <para>Replace <replaceable>[xxx]</replaceable> with the name of the LFS partition
|
---|
[673b0d8] | 24 | (something like <filename>hda5</filename>).</para>
|
---|
| 25 |
|
---|
| 26 | <para>If you created a (new) swap partition you need to initialize it as a
|
---|
| 27 | swap partition too (also known as formatting, like you did above with
|
---|
[55851d6] | 28 | <command>mke2fs</command>) by running:</para>
|
---|
[673b0d8] | 29 |
|
---|
[55851d6] | 30 | <screen><userinput>mkswap /dev/<replaceable>[yyy]</replaceable></userinput></screen>
|
---|
[673b0d8] | 31 |
|
---|
[55851d6] | 32 | <para>Replace <replaceable>[yyy]</replaceable> with the name of the swap
|
---|
[673b0d8] | 33 | partition.</para>
|
---|
| 34 |
|
---|
[522b09f] | 35 | </section>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.