Chapter 5 . Using Partitions and (Java web server) File Systems

Chapter 5 . Using Partitions and File Systems 211 The options used by mkfs are followed by an argument specifying the partition that is to be formatted. After the command has been run an exit code of 0 (zero) will indicate success while the exit code of 1 (one) indicates failure. An example of the syntax used is as follows: mkfs option argument When creating a file system using mkfs, several commands can be used to specify the file system type. Table 5-5 shows the various commands to use when creating file systems. As you can see, there are specific commands to run for each file system type you want to create. These commands are accessible only by the root user. The utilities to understand for the test, and for real world usage, are covered here. Each file system type is created using a specific command. Be sure to know which commands are used for creating ext2, swap, and MS-DOS file systems. Exam Tip Table 5-5 Utilities for File System Creation Command Use mkfs.ext2 or mke2fs Creates an ext2 file system. mkfs.msdos or mkdosfs Creates an MS-DOS file system. mkswap Creates a Linux swap partition file system. mkraid Initializes and upgrades RAID device arrays. mkfs.minix Creates a Minix file system. mkfs.bfs Creates a SCO BFS file system. Cross- Reference More details on the options available when creating each file system can be located in the Linux man pages. To create a file system the correct tool specified in Table 5-5 must be used. An example of the proper use of these utilities is creating an ext2 partition using mkfs.ext2 as shown below: # mke2fs /dev/hda3
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Leave a Reply