Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What command do you use to create Linux file systems?

user-image
Question added by Faten Almajaly
Date Posted: 2014/06/23
Steven Liang
by Steven Liang , Sr. System Support , Bank of Tokyo Mitsubishi UFJ

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

 

Roderick Cabase
by Roderick Cabase , IT Technician , Saudi Aramco (Contract Isam Kabbani & Partners Co.)

mkfs command

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.

 

Khalique Zafar
by Khalique Zafar , Solution Manager IT , Huawei Technologies

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. 

Emad Mohammed said abdalla
by Emad Mohammed said abdalla , ERP & IT Software, operation general manager . , AL DOHA Company

I agree with Mr Steven Liang  

Nagoor Meeran
by Nagoor Meeran , Engineer , wipro_infotech

Hi Friends,

   This Nagoor i have1 year exp desktop role right now i am looking for hulf System Enginner job kindly help me. ID:

 

 

Muhammad Afroz Alam
by Muhammad Afroz Alam , Group Leader , Aptech Computer Education

mkfs -t filesystem_typ device

Muhammad Anzar
by Muhammad Anzar , DevOps/DevSecOps Architect , Confidential

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

Syed Javed
by Syed Javed , it consultant , Infosys

mkfs -t filetype /dev/DEVICE

OR

mkfs.ext3 /dev/DEVICE

OR

mkfs.ext4 /dev/DEVICE

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.