This section describes how you create and use file systems on the storage unit for an Intel™ or ADM host running the Linux operating system.
After you partition the disk as described in "Partitioning storage unit disks for an Intel or AMD host running Linux", the next step is to create a file system. Figure 1 shows an example of the EXT2 Linux file system (which is nonjournaled) by using the mke2fs command.
[root@yahoo /data]# mke2fs /dev/sdb1 mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (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 the EXT2 Linux file system (which is nonjournaled) by using the mkfs command.
[root@yahoo /data]# mkfs -t ext2 /dev/sdb1 mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (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]#