Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What command do you use to create Linux file systems?

user-image
Question ajoutée par Faten Almajaly
Date de publication: 2014/06/23
Steven Liang
par 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
par 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
par 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
par Emad Mohammed said abdalla , ERP & IT Software, operation general manager . , AL DOHA Company

I agree with Mr Steven Liang  

Nagoor Meeran
par 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
par Muhammad Afroz Alam , Group Leader , Aptech Computer Education

mkfs -t filesystem_typ device

Muhammad Anzar
par 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
par Syed Javed , it consultant , Infosys

mkfs -t filetype /dev/DEVICE

OR

mkfs.ext3 /dev/DEVICE

OR

mkfs.ext4 /dev/DEVICE

More Questions Like This