Friday, January 3, 2014

Easy learn linux command line- Part 20

Do you format any file systems in linux? 
maybe yes, you format it with GUI and maybe no. today we want to learn, how to use linux Command line for format a file system on our Hard Drive or even Floppy Drive!

lets to start: 

Format a Filesystem

Command Description
# fdformat -n /dev/fd0 format a floppy disk   
# mke2fs /dev/hda1 create a filesystem type linux ext2 on hda1 partition   
# mke2fs -j /dev/hda1 create a filesystem type linux ext3 (journal) on hda1 partition   
# mkfs /dev/hda1 create a filesystem type linux on hda1 partition   
# mkfs -t vfat 32 -F /dev/hda1 create a FAT32 filesystem   
# mkswap /dev/hda3 create a swap filesystem   

No comments: