Main
Ocelot Stuff
Wolf Stuff
Recipes
Humor
Walkthroughs
About Us
  Log in

Misc. Info Database

 

 

Make a file system in linux (Author: unknown)

Making the File System

Every disk partition is simply an empty space with a beginning and an
end. Unless the partition is being used for swap space, you have to
put some type of file system on the partition before it can become
useful. The mkfs (for make file system) command is used to create the
file system on the partition. Normally, the file system is a native
Linux file system, which at this time is called ext2. The Linux
version of mkfs has been nicely streamlined and requires hardly any
input. To create a file system on the disk drive partition sda1, for
example, you enter the following command:

mkfs -t ext2 /dev/sda1

If you want to create an MS-DOS file system on the disk partition,
you use this command:

mkfs -t msdos /dev/sda2

You can continue to execute mkfs commands to create file systems for
every partition on your new disk. Or you can leave some partitions
without file systems (for future use), as long as you remember to
perform the mkfs command on them before trying to attach them to your
file system by using either the mount command or the /etc/fstab table.

Congratulations! Your disk has been physically added to your system
and partitioned, and you've added file systems to it. Now the disk is
ready to join the rest of the file system -- simply use either the
mount command or the /etc/fstab file, which I describe earlier in
this chapter.

New

home | ocelot | wolf | recipes | guitar chords | humor | walkthroughs | about | privacy | contact | Site Map | MetSecTech
67347 hits for this section SingleSignOn Copyright 2004-2009 Kevin and Erin Metcalf. All rights reserved.