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. Figure 1 shows an example of how to use the mke2fs command to create an EXT2 Linux file system (which is nonjournaled).

Figure 1. Example of creating a file with the mke2fs command
[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]#

Figure 2 shows an example of how to create the EXT2 Linux file system (which is nonjournaled) by using the mkfs command.

Figure 2. Example of creating a file with 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]#