| Red Hat Docs > Red Hat Manuals > Archived Red Hat Linux Manuals > |
Partitioning Your Disk for Red Hat LinuxYou use the disk partitioning dialogs to tell the installation program where to install Red Hat Linux. If you're doing an expert installation, you will be given the choice of using fdisk instead of Disk Druid to partition your disk. (For a quick refresher on how to use fdisk , see the section called Using fdisk .) Otherwise, the install program displays the main Disk Druid dialog ( Figure 9-14 ). If you have not yet planned how you will set up your partitions, turn to Appendix C . Here you'll find an introduction to basic disk partitioning concepts. If you're familiar with disk partitions, you can skip ahead to the section called Making Room For Red Hat Linux in Appendix C for more information on the process of freeing up disk space to prepare for a Red Hat Linux installation. This section also discusses the partition naming scheme used by Linux systems, sharing disk space with other operating systems, and related topics. As a bare minimum, you'll need an appropriately-sized root partition, and a swap partition of at least 16 MB. The following sections describe the layout of Figure 9-14 and how to use its buttons to set up partitions. If you're already familiar with Disk Druid, you can partition your disk and skip to the section called Formatting Partitions . The Current Disk Partitions SectionEach line in the Current Disk Partitions section represents a disk partition. In Figure 9-14 , there are existing partitions in the section, indicating that Linux has been installed on this disk in the past. You'll note that this section has a scroll bar to the right, which means that there might be more partitions than can be displayed at one time. If you use the uparrow and downarrow keys, you can see if there are any additional partitions. Each line in this section has five different fields:
As you scroll through the Current Disk Partitions section, you might see an Unallocated Requested Partitions title bar, followed by one or more partitions. As the title implies, these are partitions that have been requested but, for one reason or another, have not been allocated. A common reason for having an unallocated partition is a lack of sufficient free space for the partition. In any case, the reason the partition remains unallocated will be displayed after the partition's mount point. The Drive Summaries SectionEach line in the Drive Summaries section represents a hard disk on your system. Each line has the following fields:
Disk Druid's ButtonsThese buttons control Disk Druid's actions. They are used to add and delete partitions, and to change partition attributes. In addition, there are buttons that are used to accept the changes you've made, or to exit Disk Druid entirely. Let's take a look at each button in order.
Handy Function KeysUse the F5 (Reset) function key to discard all changes you may have made while in Disk Druid, and return the list of partitions to those read from the partition table(s) on your hard disk(s). When selected, you'll be asked to confirm whether you want to discard the changes. Note that any mount points you've specified will be lost, and will need to be reentered.
Adding a PartitionTo add a new partition, select the Add button and press Space or Enter . The Edit New Partition dialog ( Figure 9-15 ) appears. The screen contains the following fields:
Problems When Adding a Partition
If you attempt to add a partition and Disk Druid can't carry out your request, you'll see a dialog box like Figure 9-16 . In the box are listed any partitions that are currently unallocated, along with the reason they could not be allocated. Select the Ok button, and press Space to continue. Note that the unallocated partition(s) are also displayed on Disk Druid's main screen (though you may have to scroll the "Current Disk Partitions" section to see them). Deleting a PartitionTo delete a partition, highlight the partition in the "Current Disk Partitions" section, select the Delete button, and press Space . You will be asked to confirm the deletion. Editing a PartitionTo change a partition's mount point, highlight the partition in the "Current Disk Partitions" section, select the Edit button, and press Space . The Edit Partition dialog is similar to the one shown in Figure 9-15 . The difference here is that all fields except the mount point are read-only. To modify any other value, delete the partition and add it again with the new values. When You're Finished…Once you've finished configuring partitions and entering mount points, your screen should look something like Figure 9-17 . Select Ok , and press Space . Formatting PartitionsUse Figure 9-18 to select for formatting all newly-created partitions and other partitions that contain old data (assuming they don't contain data you wish to keep.)
Select each partition to format and press Space . If you wish to check for bad blocks while formatting each filesystem (recommended), select Check for bad blocks during format . Select Ok , and press Space . Using fdiskThis section applies only if you're doing an expert install. It explains how to partition your disk with fdisk . Once you've selected fdisk , you'll be presented with the Partition Disks dialog box ( Figure 9-19 ). In this box is a list of every disk on your computer. Move the highlight to the disk you'd like to partition, select Edit , and press Space . You will then enter fdisk and can partition the disk you selected. Repeat this process for each disk you want to partition. When you're done, select "Done." An Overview of fdiskfdisk includes online help which is terse but useful. Here are a few tips:
Changing the Partition TableWhen you are finished partitioning your disks, press Done ; you may see a message indicating that the installation program needs to reboot. This is a normal occurrence after changing a disk's partition data; it usually happens if you created, changed or deleted any extended partitions. After you press Ok , your machine will reboot. Follow the same installation steps you did up until the "Partition Disks" dialog; then simply choose Done . |
||||||||