Hi,
Welcome to LQ!
Quote:
Originally Posted by rithi143
ya both commands are used for creating filesystem. As per ur reply i think mke2fs have the configuration file where mkfs does not have config file.
|
I do suggest that you read the man page for 'mkfs';
Quote:
excerpt from 'man mkfs';
NAME
mkfs - build a Linux file system
SYNOPSIS
mkfs [-V] [-t fstype] [fs-options] filesys [blocks]
DESCRIPTION
mkfs is used to build a Linux file system on a device, usually a hard disk partition. filesys is
either the device name (e.g. /dev/hda1, /dev/sdb2), or a regular file that shall contain the
file system. blocks is the number of blocks to be used for the file system.
The exit code returned by mkfs is 0 on success and 1 on failure.
In actuality, mkfs is simply a front-end for the various file system builders (mkfs.fstype)
available under Linux. The file system-specific builder is searched for in a number of directo-
ries like perhaps /sbin, /sbin/fs, /sbin/fs.d, /etc/fs, /etc (the precise list is defined at com-
pile time but at least contains /sbin and /sbin/fs), and finally in the directories listed in the
PATH environment variable. Please see the file system-specific builder manual pages for further
details.
|
Please read the last paragraph for understanding. Once you do, then realization to the fact 'mkfs' is just the front end for particular file system builders on the system in use.
Read the man page and at the bottom you will see references to 'mkfs.fstype' within the 'See Also'. You could then 'man command' for the particular builder.
HTH!