Creating File System in Console

File System
A filesystem is the methods and data structures that an operating system uses to keep track of files on a disk or partition; that is, the way the files are organized on the disk. The word is also used to refer to a partition or disk that is used to store the files or the type of the filesystem.


Creating File System in Console
Create a linux file system
mke2fs /dev/sda1


Initialize swap partition
mkswap /dev/sda1

Checking File System
Check Integrity of Linux File System
e2fsck -f /dev/sda1

Check Bad Blocks & Errors
e2fsck -f -c -p /dev/sda1

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s