2001-01-24 00:31:17 +00:00
|
|
|
<sect1 id="ch04-creatingfs">
|
2001-02-28 00:08:17 +00:00
|
|
|
<title>Creating a file system on the new partition</title>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
<para>
|
2001-02-28 00:08:17 +00:00
|
|
|
Once the partition is created, we have to create a new file system on
|
|
|
|
that partition. If you want to create an ext2 file system, use the mke2fs
|
|
|
|
command. If you want to create a reiser file system, use the mkreiserfs
|
|
|
|
command. If you want to create a different kind of file system, use the
|
|
|
|
appropriate command. Enter the new partition as the only option to the
|
|
|
|
command and the file system will be created. If your partition is hda2
|
|
|
|
and you want ext2 you would run:
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
|
2001-02-28 00:08:17 +00:00
|
|
|
<userinput>mke2fs /dev/hda2</userinput>
|
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you want reiserfs you would run:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literllayout>
|
|
|
|
|
|
|
|
<userinput>mkreiserfs /dev/hda2</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|