Monday, August 29, 2016

mkfs

mkfs is a front-end for real commands that make each file type filesystem

i.e.

/sbin/mkfs.ext4
/sbin/mkfs.nfs

...

syntax:

mkfs -t ext4 /dev/sdb1

options:

-b: blocksize
-N <inodes>: number of inodes
-i <bytes per inode>: sets size of inode
-j: creates a journal of file system

Reiser:

mkfs -t reiserfs <device> OR

mkreiserfs <device>

Does distribution support  xfs file type?

find / -name mkfs*

mkfs -t xfs <device>

vfat:

mkfs -t vfat <device>

No comments:

Post a Comment