Module Two - Session 07: Partitioning a Hard Drive

Linux File System Structure

What will I be learning?

We will learn about how Linux structures its files and directors (file system structure).

As we will be looking at file system types we should also look at the Linux filesystem structure. This URL contains a great deal of information related to several aspects of this Module.

The below image provides a basic outline of the filesystem structure with a description of what you'd find in each directory.

Diagram of Linux File System Structure

The below image provides more information and even items that you'd find in each directory.

Diagram of Linux File System Structure with more details

After this section I should be able to...

Understand how the Linux file system hierarchy works.

What should I practice?

Familiarize yourself with the hierarchy of Linux filesystem.


Partitions

What will I be learning?

You will learn about how to partition a hard drive and how to manage file systems.

Partitioning a hard drive is important as you will be creating the different areas that data is stored on the drive. There is not really a standard "You must do it like this way!". But, each distribution does have a recommend way. You can view four of those ways below.

Here are links to information on file system types:

Here is an example partition scheme: Work station with 1 TB hard drive and 16 gigs of memory.

Partition #

Mount Point

Size

File System Type

1

/

40 GB

EXT4

2

/home

Rest of Drive

XFS

3

SWAP

4GB

None

4

/var

4GB

EXT4

5

/usr

15GB

EXT4

6

/boot

250 meg

EXT2

7

/tmp

3GB

EXT4

After this section I should be able to...

Create partitions of various size on a hard drive and format them with a file system. Being able to successfully do this allows you to add more storage space to your Linux system without having to reinstall and reconfigure it. You should also be able to display information and be able to maintain filesystem integrity. Finally, be comfortable with mounting and unmounting partitions as required.

What should I practice?


Original webpage by Petersen Gross, modified by William Albritton.