Please Note: If you intend to perform a workstation- or server-class installation, and you already have sufficient unpartitioned disk space available, you don't need to read this section, and may turn to Section 2.8. Otherwise, please read this section in order to determine the best approach to freeing disk space for your Red Hat Linux installation.
In order to install Red Hat Linux, you must make disk space available for it. This disk space needs to be separate from the disk space used by other operating systems you may have installed on your computer, such as Windows, OS/2, or even a different version of Linux.
A disk can be divided into different partitions. Each partition can be accessed as if it was a separate disk. Furthermore, each partition has a type that is used to indicate how information is stored in the partition. For example, there are different partition types used by DOS, OS/2, and Linux.
Please Note: You must install Red Hat Linux to one or more partitions having a partition type of ``Linux native''. Red Hat Linux also requires a swap partition, which has a partition type of ``Linux swap''. This means that an installation of Red Hat Linux requires at least two partitions:
We will discuss partitioning issues in more detail below. For now, keep in mind that Red Hat Linux requires at least two dedicated partitions, and that you cannot install Red Hat Linux to a DOS/Windows partition!
Even if you will be installing Red Hat Linux on its own hard disk, or on a computer which contains no other operating system, you'll still need to create partitions for Red Hat Linux to use. In this case it's pretty easy, as there are no other partitions on the hard disk to worry about.
On the other hand, you may wish to install Red Hat Linux on a disk which already contains software or data from a different operating system. Things can get a little trickier in this situation, since a mistake can destroy your existing partitions, not to mention the data they contain!
During the installation process, you'll be given the chance to create partitions for Red Hat Linux. At this point, your main concern is making sure you have sufficient disk space available to create those partitions. Let's review the different ways to free up space for Red Hat Linux partitions.
Linux refers to disk partitions using a combination of letters and numbers which may be confusing, particularly if you're used to the ``C drive'' way of referring to hard disks and their partitions. Red Hat Linux uses a naming scheme that is more flexible and conveys more information than the approach used by other operating systems. Here is a summary:
Keep this information in mind; it will make things easier to understand when you're setting up the partitions Red Hat Linux requires.
There are three possible scenarios you may face when attempting to repartition your hard disk:
Let's look at each scenario in order.
In this situation, the partitions already defined do not span the entire hard disk, leaving unallocated space that is not part of any defined partition. If you think about it, an unused hard disk also falls into this category; the only difference is that all the space is not part of any defined partition.
In this case, you can simply create the necessary partitions from the unused space.
Last year you replaced that tiny 105MB hard drive on your Windows system with a 1.2GB monster. You partitioned it into two equal parts, figuring that you'd use the C: ``drive'' (really the drive's first partition) for Windows, and the D: ``drive'' (really the drive's second partition) for your collection of freeware programs downloaded from the Internet. Well, you'd been so used to using C: that you never put anything of substance on D:.
If you find yourself in this situation, you can use the space allocated to the unused partition. In this case, you'll first need to delete the partition, and then create the appropriate Linux partitions in its place. You can either delete the partition using DOS fdisk, or you'll be given the opportunity to do so during a custom-class installation.
This is the most common situation. It is also, unfortunately, the hardest to deal with. The main problem is that you have enough free space, but it's presently allocated to a partition that is in use. If you purchased a computer with pre-installed software, the hard disk most likely has one massive partition holding the operating system and data.
Aside from adding a new hard drive to your system, you have two choices:
After creating a smaller partition for your existing software, you can reinstall any software, restore your data, and continue with your Red Hat Linux installation.
[Intel Systems: If Red Hat Linux/Intel will coexist on your machine with OS/2,
you must create your disk partitions with the OS/2 partitioning
software---otherwise, OS/2 may not recognize the disk partitions.
During the installation, do not create any new partitions, but do set
the proper partition types for your Linux partitions using the Linux
fdisk.]
[Intel Systems: LILO (the LInux LOader) is the most commonly used method to boot
Red Hat Linux on Intel-based systems. Being an operating system loader, LILO
operates ``outside'' of any operating system, using only the Basic I/O
System (or BIOS) built into the computer hardware itself. This section
describes LILO's interactions with PC BIOSes, and is specific to
Intel-compatible computers.
]
[Alpha Systems: Alpha owners may skip ahead to Section
2.7.5.]
[SPARC Systems: SPARC owners may skip ahead to Section
2.7.5.]
LILO is subject to some limitations imposed by the BIOS in most Intel-based
computers. Specifically, most BIOSes can't access more than two hard
drives and they can't access any data stored beyond cylinder 1023 (the
1024th cylinder) of any drive. Note that some recent BIOSes do not have
these limitations, but this is by no means universal.
All the data LILO needs to access at boot time (including the Linux kernel)
are located in the /boot directory, which is normally part of the
root partition (known as /). Here are the guidelines you must follow
if you are going to use LILO to boot your Red Hat Linux system:
As mentioned earlier, it is possible that some of the newer BIOSes may
permit LILO to work with configurations that don't meet our guidelines.
Likewise, some of LILO's more esoteric features may be used to get a Linux
system started, even if the configuration doesn't meet our guidelines.
However, due to the number of variables involved, Red Hat Software cannot
support such extraordinary efforts.
Please Note: Disk Druid as well as the workstation- and server-class
installs take these BIOS-related limitations into account. However, if you
decide to use fdisk instead, it is your responsibility to ensure that
you keep these limitations in mind.
Although you can install Red Hat Linux in a single large partition (subject to any
of the partitioning considerations we've mentioned so far), it's a much
better idea to split things up a bit. We recommend the following layout as
a compromise between single-partition simplicity, and multi-partition
flexibility:
Please Note: If you plan to install all the software packages that come with
Red Hat Linux, you will need to use the larger partitions sizes shown here. In
fact, you may want to increase the sizes above our recommendations, to
allow for future growth without needing to repartition.
[Intel Systems: Don't forget the LILO constraints we mentioned in Section
2.7.4!]
[Alpha Systems: The following partition is specific to Red Hat Linux/Alpha installations.]
Additionally, your circumstances may warrant creating one of more of the
following partitions:
Again, the size of this partition would depend on the amount of software
you anticipate building.
2.7.4 One Last Wrinkle: Using LILO
2.7.4.1 BIOS-Related Limitations Impacting LILO
2.7.5 How Many Partitions?