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.
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.
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 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. You'll need to delete the partition, and create the appropriate Linux partitions in its place.
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:
What software should you use to perform this feat? You can use the
fips
utility to resize FAT (File Allocation Table) partitions. It's
included on the Red Hat Linux/Intel CD-ROM in the dosutils directory. Before
using it, however, we highly recommend reading the fips
documentation, located in the fipsdocs subdirectory.
Please Note: At the present time, the fips utility cannot resize the
new FAT32-style
partitions found on many newer computers. If your computer
has a FAT32 partition, you can either use destructive repartitioning, or
purchase commercial disk management software capable of shrinking FAT32
partitions.
]
[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.
]
[Alpha Systems: Alpha owners may skip ahead to Section
2.4.4.]
[SPARC Systems: SPARC owners may skip ahead to Section
2.4.4.]
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 part 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.
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
accompanying Red Hat Linux, you may need to use even larger partitions.
[Intel Systems: Don't forget the LILO constraints we mentioned in Section
2.4.3!]
[Alpha Systems: The following partition is specific to Red Hat Linux/Alpha installations.]
Additionally, you may wish to create any of the following:
Again, the size of this partition would depend on the amount of software
you anticipate building.
2.4.3 One Last Wrinkle: Using LILO
2.4.3.1 BIOS-Related Limitations Impacting LILO
2.4.4 How Many Partitions?