mkfs -t filetype /dev/DEVICE
OR
mkfs.ext3 /dev/DEVICE
Where,
- -t filetype : Is a File system kind, it can be ext3, ext2, vfat, etc
- /dev/DEVICE : The name of your device i.e. partition /dev/hda1 or /dev/sda1 etc.
Step #1 Create the new filesystem with following command (first login in as a root user)
Step 1 : make a new file system using the following commands:
# mkfs.ext3 /dev/sda5
Output:
mke2fs 1.35
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
30120 inodes, 120456 blocks
6022 blocks (5.00%) reserved for the super user
First data block=1
15 block groups
8192 blocks per group, 8192 fragment per group
2008 inodes per group
Superblock backups stored on the blocks:
8193, 24577, 40961, 57345, 73729
Writing inode tables: done
Creating journal (4096 blocks): done
Writing file system and superblocks accounting information: done