How do I create partitions for Red Hat Linux? How to Create partitions for Red Hat Linux When I first installed Linux, I had a lot of detours, especially in hard disk partitioning. Druid is a hard disk management tool used for installation in Red Hat Linux. It can create and delete hard disk partitions according to user requirements. It can also manage loading points for each partition. Fdisk is a traditional Linux hard disk partitioning tool. It is somewhat more flexible than disk druid, but fdisk assumes that you have some experience with hard disk partitioning and adapt to its simple user interface. 1. Use disk druid. If you select disk druid, you may feel unable to start seeing it for the first time. This is not the case. 1. "Current Disk Partitions" Area Each row of "Current Disk Partitions" represents a hard disk partition. You will notice that there is a scroll bar on the right of this area, which means there may be partitions not displayed. You can use the [uparrow] and [downarrow] keys to check whether more partitions exist. Each row has five different domains: Mount point-the load point specifies where the hard disk partition is loaded during installation and use in Red Hat Linux. Device-the device name of the hard disk partition is displayed here. The requested-"requested" field shows the minimum space applied for this partition definition. The actual-"actual" field shows the space currently allocated to this partition. Type-this field shows the partition type. 2. "Drive summaries" Area Each line in the drive summaries area represents a hard disk of your system. Each line has the following fields: Drive-this field displays the device name of the hard disk. Geom [C/h/S]-This field displays the hard disk's physical information (geometry), which includes the number of hard disk cylinders, heads, and fan sectors. The total-"Total" field shows all available disk space. Used-this field shows how much space is currently allocated to the hard disk. Free-"free" shows how much space is not allocated to the hard disk. Bar graph-this field uses graphs to represent the space currently used by the hard disk. # The larger the number, the less free space. 3. Disk druid button These buttons control disk druid behavior. They are used to add or delete partitions, or to modify attributes of partitions. In addition, There are buttons to accept your changes or exit disk druid. Take a look at these buttons in turn. The add-"add" button is used to apply for a new partition. After the selection, a dialog box is displayed, containing fields that you must enter. The Edit-"Edit" button is used to modify the attributes of the currently activated partition in the "Current Disk Partitions" area. Select a dialog box. Based on whether the Partition information has been written to the hard disk, you can modify some or all information in the "Edit Partition" dialog box. The Delete-"Delete" button is used to Delete the currently activated Partitions in the "Current Disk Partitions" area. Select this button to display a dialog box asking you to confirm deletion. The OK-"OK" button will write any modifications you have made to the hard disk. Before the Disk Druid overwrites your hard Disk partition table, you are required to confirm your modification. In addition, the load point you have defined will also be passed to the installer, and your Red Hat Linux system will use these systems to define the planning of the file system. Back-this button causes Disk Druid to exit without saving any modifications you have made. When this button is selected, the installer will return to the previous screen and start again. 4. Shortcut Keys The Disk Druid button and function key have some duplicates, but there are two function keys that do not have the corresponding buttons: [F2] (Add NFS)-This function key is used to Add a read-only NFS file system setting load point for your Red Hat Linux. After the selection, a dialog box appears asking you to enter the relevant domain. [F5] (Reset)-This function key ignores any modifications you make in Disk Druid and returns the partition table information on your hard Disk. After the selection, you are asked to confirm whether you want to ignore it. Note that your definition will be lost at all load points and you must enter it again. Now let's take a look at how Disk Druid sets partitions for your Red Hat Linux system. 1) Add a partition To Add a partition, select the Add button and press [Space] or [Enter]. A dialog box entitled "Edit New Partition" appears. It includes the following domains: Mount Point-move to this field and enter the loading Point of this partition. For example, if this partition is a root partition, enter "/", if it is a usr partition, enter "/usr. Size (Megs)-in this field, enter the partition Size (in MB ). Note that this domain starts with "1 ". This partition is only 1 MB unless you modify it. Use the [Backspace] key to delete it and enter the partition size you want. Growable? -This selection box indicates whether the size you entered in the previous domain is the exact capacity of the partition or the minimum capacity. Select by [Space] or not. If this option is selected, the partition can be increased to fill up the entire unallocated space of a hard disk. At this time, the capacity of this partition can increase or decrease with the modification of other partitions. Type-this field contains a column of different partition types. Use the [uparrow] and [downarrow] keys to select the appropriate partition type. Allowable Drives-this field includes a list of hard disks installed in your system, each corresponding to a selection box. If a hard disk is selected, the partition may be created on that hard disk. If a hard disk is not selected, the partition will not be created on that hard disk. With different options, you can let Disk Druid put the partition where you think it is appropriate, or let Disk Druid decide where to put the partition. OK-when you are satisfied with the partition settings and want to create it, select this button and press [Space]. Cancel-if you do not want to create this partition, select this button and press [Space]. 2) problems with adding partitions When you want to add a partition and Disk Druid cannot accept your application, you will see the dialog box that lists any partitions that have not been allocated yet, and the reasons for their unallocation. Select OK and press [Space] to continue. Note that unallocated Partitions are also listed on the Disk Druid home screen (you can see them by rolling the "Current Disk Partitions" area ). 3) delete a partition To Delete a partition, select a partition in the "Current Disk Partitions" area, select the Delete button, and press [Space]. You will be asked to confirm the deletion. 4) modify a partition To modify a partition, select a partition in the "Current Disk Partitions" area, select the Edit button, and click [Space]. A dialog box is displayed. Modify the appropriate value, select OK, and press [Space]. Note: If a partition already exists on your hard disk, you can only modify the loading point of the partition. If you want to make other modifications, you must delete the partition and recreate it. 5) start again If you want to cancel the modification in Disk Druid and use fdisk instead, you can select Back and press [Space]. If you want to continue using Disk Druid, you need to start again. Press [F5] Disk Druid to return to its initial state. Ii. Use fdisk If you want to use fdisk to manage partitions, once you select fdisk, you will see the dialog box entitled "partition disks. All hard disks of your computer are listed here. Move to the hard disk you want to partition, select edit, and press [space]. You will enter fdisk and can partition the hard disk you selected. Repeat this process to partition each hard disk and select "done ". 1. fdisk Overview Fdisk contains a simple and useful online help. Here is a prompt: The Help Command is M. Use the p command to list the current partition and use N to add a partition. The default partition type created by Linux fdisk is Linux native. When creating a Linux swap partition, do not forget to use the T command to change the partition type. The value of Linux swap is 82. Use the l command to view the list of partition types and corresponding values. Linux allows a hard disk to have up to four partitions. If you want to create more partitions, one of them must be extended partitions, which can contain one or more logical partitions. Because an extended partition is a "container", its size cannot be smaller than the total size of the logical partition it contains. Note the file system (such as/dev/hda2) corresponding to the partition when creating the partition ). Note: before you use the W command to save the disk and exit fdisk, all the changes do not take effect. You can use the Q command to exit fdisk without saving the disk. 2. modify a partition table After you partition the hard disk, press "Done" and the installer may require you to restart the computer. This is a normal phenomenon after the partition data is modified. It usually occurs when you create, modify, or delete any extended partition. Press OK to restart your computer. Follow the same steps until Partitioning Disks, then you only need to select Done. 3. File System Configuration All partitions (including MS-DOS or Windows partitions) that contain file systems that Red Hat Linux recognizes will be listed in the next dialog box, enabling you to assign these partitions (assign) it is different parts of the Red Hat Linux File System. The partitions you specify will be automatically installed (mount) when the Red Hat Linux system starts ). Select the partition you want to assign and press [Enter] (or select Edit). Enter the partition loading point, for example,/usr. Linuxman@263.net |