O'Reilly logo

Linux Utilities Cookbook by James Kent Lewis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Disks and Partitioning

In this chapter we will cover the following topics:

  • Using fdisk
  • Using mkfs to format a drive
  • Using fsck to check the filesystem
  • Logical Volume Management (LVM)

Introduction

When installing a machine, you can take the defaults or set up your disk(s) practically any way you want. Here is a brief review of partitions and filesystems. A typical Linux system usually has at least three separate partitions. They are labelled /, /boot, and swap. The / (pronounced root) is the parent of the directory structure. /boot is where the system kernel and map files reside. The swap partition is used when parts of memory need to be moved to the hard drive because of over-commitment. This is called being swapped out to disk.

The following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required