Linux From Scratch
Prev | Chapter 4. Preparing a new partition | Next

# Creating a file system on the new partition

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:

> `mke2fs /dev/hda2`

If you want reiserfs you would run:

> `mkreiserfs /dev/hda2`

Prev | Home | Next
Creating a new partition | Up | Mounting the new partition