Creation of new File System
Any partition on a newly partitioned disk required to have a File System made on it before adding data. The make File System (mkfs) command is used to make the File System on the partition. To create a File System on the disk drive partition, for instance, the following command has to be used:
# mkfs [-t filesytemtype] [-c] [device]
The option -t denotes the type of the File System and the option -c denotes the device path on that the new File System is to be created.
Practice
The given example describes how to make a new File System.
# mkfs -t ext2 -c /dev/hda*
Blocksize=4096,611648
Inodes 1220932 Blocks
61046 Blocks(5.00%) reserved for Super user
32768 inodes per group.
Super Block backups states on Blocks (for fsck )
32768, 98304,163840,226376,294912,819200,884736.
mkfs is the command that is used to make a new File System on the device known as /dev/hda12.
Once a new File System is created through using mkfs and the new File System has to be pointed on the mount point. A mount point should be unique.
Note: Within Solaris and SCO mkfs is the commmand that is used to make a new File System, newfs is a user-friendly command that is used to create a New File System on Solaris.
Syntax:
# newfs -s [size of the File System] -d [ device]
Options:
-s Denotes the size of the File System.
-d Denotes the device path where a new filesystem has to be created.
Let consider the following example:
# newfs -s 2000 -d /dev/rdsk/c0d0s0