Red Hat ENTERPRISE LINUX 4 - INTRODUCTION TO SYSTEM ADMINISTRATION Administration Manual page 113

Introduction to system administration
Hide thumbs Also See for ENTERPRISE LINUX 4 - INTRODUCTION TO SYSTEM ADMINISTRATION:
Table of Contents

Advertisement

Chapter 5. Managing Storage
5.9.6.1. Adding Storage
The process of adding storage to a Red Hat Enterprise Linux system is relatively straightforward. Here
are the steps that are specific to Red Hat Enterprise Linux:
Partitioning
Formatting the partition(s)
Updating
/etc/fstab
The following sections explore each step in more detail.
5.9.6.1.1. Partitioning
Once the disk drive has been installed, it is time to create one or more partitions to make the space
available to Red Hat Enterprise Linux.
There is more than one way of doing this:
Using the command-line
Using
, another command-line utility program
parted
Although the tools may be different, the basic steps are the same. In the following example, the
commands necessary to perform these steps using
1. Select the new disk drive (the drive's name can be identified by following the device naming
conventions outlined in Section 5.9.1 Device Naming Conventions). Using
by including the device name when you start
fdisk /dev/hda
2. View the disk drive's partition table, to ensure that the disk drive to be partitioned is, in fact, the
correct one. In our example,
Command (m for help): p
Disk /dev/hda: 255 heads, 63 sectors, 1244 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hda4
3. Delete any unwanted partitions that may already be present on the new disk drive. This is done
using the
command in
d
Command (m for help): d
Partition number (1-4): 1
The process would be repeated for all unneeded partitions present on the disk drive.
4. Create the new partition(s), being sure to specify the desired size and file system type. Using
, this is a two-step process — first, creating the partition (using the
fdisk
Command (m for help): n
Command action
e
extended
p
primary partition (1-4)
p
utility program
fdisk
fdisk
Start
*
1
18
84
476
1244
:
fdisk
are included:
fdisk
:
fdisk
displays the partition table by using the
End
Blocks
Id
17
136521
83
83
530145
82
475
3148740
83
6176992+
83
fdisk
command:
p
System
Linux
Linux swap
Linux
Linux
command):
n
101
, this is done

Advertisement

Table of Contents
loading

Table of Contents