Red Hat Double Boot

xiaoxiao2021-03-06  205

Red Hat Dual Boot: Installation Directive When you are ready to start this procedure, turn off the system first, then restart it. The Red Hat Linux CD is then placed in the drive.

The Red Hat Linux installation routine will guide you to complete a very simple installation process. You will have to complete some basic system configurations, such as selecting the default language and keyboard types. Enter the correct information until the "Partitions" screen appears.

When the screen appears, click the "Add" button and select "Linux Native" as the type of the operating system. For "size", enter 16 (megabytes), then select / Boot as partition type. The rest are given below, and for a particular partition, the configuration can be done by repeating the above instructions.

/ boot sda1 16m Linux native

/ SDA5 1024M Linux native

SWAP SDA6 256M Linux Swap

/ VAR SDA7 200M Linux Native

/ TMP SDA8 200M Linux Native

Note that these directory locations are for SCSI drives. For IDE drivers, as long as you replace S-SDAL is replaced with H (let your HDA1 as a / boot drive, let HDA5 as root drivers, etc.).

Please also note that the size of the above is suitable for our hardware - they are not mandatory. You can flexibly choose any size that suits your hardware, especially because the current newer hardware can support a variety of configurations. However, don't assign too many space to the "/ boot" partition, because most of the space will eventually waste-on the latest hardware, you will might want a boot area that is smaller than our boot partition. Again, other sizes can be used for other partitions.

Installation Tag 2 Now you are ready to install the second instance of the Linux kernel. Follow the following simple principles:

Use the LILO installation in the main boot record (Master Boot Record (MBR)) (strictly needed for SCSI drives) to keep several kernel parameters empty

The initial installation partition should still be marked as "Not Set". Keep them as Not set, then install 5 new partitions as specified above by clicking "add" and install it as specified above. Just add new partitions, do not need to delete or edit the previously installed partition.

The remaining mount remains unchanged. You can use any names (we use Linux2). However, if the label has multiple words, make sure you enclose them with quotes (ie, if you want to keep the space, use "Linux 2"). Of course, make sure to mark the second installation with the first different name.

After installation, the system reboots and prompts. Press Tab: This will display the label of the second Linux installation. Enter "Linux2" (or any name for your second image), then press Enter, which will call the second Linux system you just installed.

Edit Lilo.conf Next, we will edit the Lilo (Linux loader) profile lilo.conf to add a record tells Linux information about our first installation.

To do this, turn to the / etc directory and open the lilo.conf file with your favorite editor (you may want to build a backup copy, just in case). Lilo.conf code Similar to: boot = / dev / sda #this points to the boot device

Timeout = 300 #if No activity in the specified time, Load default Image

Linear

Prompt

Default = "linux2" # Linux1 Will Be Displayed At The Prompt

VGA = NORMAL #Video Mode

Read-only

MAP = / boot / map

INSTALL = / boot / boot.b

Image = / boot / vmlinuz = 2.2.14-5.0 #Location of boot image

Label = "linux2" #Label

INITRD = / boot / initrd-2.2.14-5.0

Root = / dev / sda10 #location of root partition

Note: Computer ignores annotations (starting from the # or the well). Here, they include them to correctly understand the use of each line - do not have to include these comments in your system, unless you want to keep them for reference.

Also, if you use an IDE drive, remember to replace SDA using HDA.

Another way to configure LILO is here an alternative to the lilo.conf file.

Open a terminal window, then turn to the "/ root" directory and enter LinuxConf. This will bring you to the Linux command window, where you can configure the system. Scroll down until boot mode. Under "Boot Mode", you should see the options for configuring LILO. Select the second "Configure Lilo Linux Configuration" tab on the menu and click the Lilo Linux Configurations tab. Click Add. You can then add other Linux boot partitions and kernel files. If you are not sure about adding something to each field, check the content already listed before entering.

Look at the Lilo.conf file above, you will notice that it belongs to the Linux installation of the label Linux2, that is, the second of our installation during the installation process. Now, to install the LILO dual boot to the first Linux instance on / SDA5 (for the IDE drive is / hda5) partition, the following content is completed immediately:

Image = / boot / vmlinuz = 2.2.14-5.0

Label = "linux1"

INITRD = / boot / initrd-2.2.14-5.0

root = / dev / sda5

Therefore, after editing the above code, the final file should be similar to:

Boot = / dev / sda

TIMEOUT = 300

Linear

Prompt

Default = "linux2"

VGA = Normal

Read-only

MAP = / boot / map

INSTALL = / boot / boot.b

Image = / boot / vmlinuz = 2.2.14-5.0Label = "linux2"

INITRD = / boot / initrd-2.2.14-5.0

Root = / dev / sda10

Image = / boot / vmlinuz = 2.2.14-5.0

Label = "linux1"

INITRD = / boot / initrd-2.2.14-5.0

root = / dev / sda5

Make sure to specify the root path as the last row completed, - this is very important. Also make sure you list the labels used during installation.

Now save the file and enter the command LILO at the prompt. This will recompile the file and save the updated configuration.

Note: Image / kernel is the same for both installation (/boot/vmlinuz=2.2.14-5.0). Since we are doing the double boot of the exact same system, it is installed from the same CD, so there is the same image file. These files will be different if you are installing different releases.

Now we have to complete it. Next, you want to send a reboot command from the terminal: shutdown -r now. When the computer restarts, the LILO prompt appears. Press the Tab button, you will see:

Linux2 linux1

Boot: _

On the Boot prompt, enter Linux1 to guide our first Linux installation. After booting, you need to enter its lilo.conf file - this is very similar to the configuration files we have just edited for the second image, the only difference is the default image is / SDA5 (if there is an IDE drive, / HDA5 ), With label "Linux1". We will edit this file like another file and add the following line at the end:

Image = / boot / vmlinuz = 2.2.14-5.0

Label = "linux2"

INITRD = / boot / initrd-2.2.14-5.0

Root = / dev / sda10

In this way, the code of the entire file will be similar to:

Boot = / dev / sda

TIMEOUT = 300

Linear

Prompt

Default = "linux1"

VGA = Normal

Read-only

MAP = / boot / map

INSTALL = / boot / boot.b

Image = / boot / vmlinuz = 2.2.14-5.0

Label = "linux1"

INITRD = / boot / initrd-2.2.14-5.0

root = / dev / sda5

Image = / boot / vmlinuz = 2.2.14-5.0

Label = "linux2"

INITRD = / boot / initrd-2.2.14-5.0

Root = / dev / sda10

Save the file and then recompile it by entering LILO on a command prompt. I will issue a reboot command again; after the system is started, you will also prompt you to select Linux boot. When you press the Tab button, you will see the following list:

Linux boot:

Linux1 Linux2

Boot: _

This is done! You have just built a double boot Red Hat Linux system.

转载请注明原文地址:https://www.9cbs.com/read-128572.html

New Post(0)