Register now or log in to join your professional community.
case1:
fdisk -- to create a partition from hdisk
mkfs -t filesystem to format the partion you want
case2:
fdisk -- to build a partition and make it as LVM sign
pvcreate -- to create a PV
vgcreate -- to build a VG and add PVs into VG
lvcreate -- to build a LV
mkfs -t format -- to format the filesystem into that LV
Example:
mkfs -t ext3 /dev/hda1
There are also type specific command, which in fact are called by mkfs; these are:
mke2fs mkfs.ext3 mkfs.msdos mkfs.vfat
use:
man mke2fs man mkfs.ext3 man mkfs.msdos man mkfs.vfat
for the type specific options available. Note: mke2fs and mkfs.ext3 are usually the same file.
mkfs -t <filesystem option> <device name>
Filesystem options = vfat, ext2, ext3,ext4 etc.
Device Name= raw disk, basic partition, Logical Volume such as /dev/hda1, /vg00/lv0 etc.
I agree with Mr Steven Liang
Hi Friends,
This Nagoor i have1 year exp desktop role right now i am looking for hulf System Enginner job kindly help me. ID:
mkfs -t filesystem_typ device
mkfs is using for filesystem formating.
We can create following file system ext2, ext3, ext4 with following command mkfs.ext2 partition, mkfs.ext3 partition, mkfs.ext4 partition
mkfs -t filetype /dev/DEVICE
OR
mkfs.ext3 /dev/DEVICE
OR
mkfs.ext4 /dev/DEVICE