mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 05:27:39 +00:00
673b0d84ba
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3435 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
<sect1 id="space-creatingfilesystem">
|
|
<title>Creating a file system on the new partition</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/xxx</userinput></screen>
|
|
|
|
<para>Replace <filename>xxx</filename> 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
|
|
<userinput>mke2fs</userinput>) by running:</para>
|
|
|
|
<screen><userinput>mkswap /dev/yyy</userinput></screen>
|
|
|
|
<para>Replace <filename>yyy</filename> with the name of the swap
|
|
partition.</para>
|
|
|
|
</sect1>
|