|Lesson 2||Ext2 configuration, part 1|
|Objective||Use the mke2fs command to adjust the filesystem's block size.|
e2fsprogspackage, provide administrators with the functionality they need to get the most out of their Linux filesystems.
e2fsprogspackage provides the following tools.
mke2fsin this lesson and the others in the following lesson.
mke2fscommand with the
-boption to adjust the
ext2filesystem's block size. The block size should match the filesystem's expected usage, because block size directly impacts disk read and write performance.
mke2fsto adjust the block size, provide the
-bparameter and the partition name. For example, to adjust the
/dev/hda5partition to 2048 bytes, use
mke2fs -b 2048 /dev/hda5.
mke2fsplaces a new, formatted filesystem onto the partition. If you mistakenly type the wrong partition name, you will overwrite all existing data!