Creating file systems on the system

Use this information when you are ready to create and use file systems on the system.

After you partition the disk, the next step is to create a file system.

The following example shows how to use the mke2fs command to create an EXT2 Linux® file system (which is nonjournaled).
[root@yahoo /data]# mke2fs /dev/vpathb1
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=512 (log=2)
Fragment size=4096 (log=2)
122112 inodes, 243964 blocks
12198 blocks (5.00%) reserved for the super user
First data block=0
8 block groups
32768 blocks per group, 32768 fragments per group
15264 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376

Writing inode tables: done
Writing superblocks and filesystem accounting information: done
[root@yahoo /data]#
The following example shows how to create the EXT2 Linux file system (which is nonjournaled) by using the mkfs command.
[root@yahoo /data]# mkfs -t ext2 /dev/vpathb1
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=512 (log=2)
Fragment size=4096 (log=2)
122112 inodes, 243964 blocks
12198 blocks (5.00%) reserved for the super user
First data block=0
8 block groups
32768 blocks per group, 32768 fragments per group
15264 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
[root@yahoo /data]#