Thoroughly understand linux Installation

Source: Internet
Author: User
Thoroughly understand linux installation-general Linux technology-Linux technology and application information. The following is a detailed description. Loadlin and autoboot
"Decompress dosutils to drive C, then cd dosutils, and then type autoboot" --- people installed with redhat9.0linux must have done this. But do you know the basic principles in this process? I don't think everyone knows.

There are many files under dosutils, including autoboot. bat, This Is A executable batch processing file, there is also an autoboot folder, there must be vmlinuz and initrd. img files (different versions of vmlinuz have different variants: linuz, linux, mbvmlinuz ...... Initrd's Variants include initrd.gz, initrd ......)

Now let's take a look at the content in autoboot (use NotePad to open autoboot. bat)

Loadlin autoboot \ vmlinuz initrd = autoboot \ initrd. img ramdisk_size = 9216% 1% 2% 3% 4% 5% 6% 7% 8% 9

This section is equivalent to sending commands to started dos: Use loadlin.exe to load vmlinuz and initrd in the autoboot directory to the memory. (Isn't loadlin short for load linux ?)

While vmlinuz is a compressed linux kernel (CORE)

Initrd is short for initial RAM disk. When there is no linux root directory in your disk, it provides a temporary root directory file system to load the linux kernel. In addition, this temporary root directory file system can be described as "very small, dirty", and all the necessary directories and programs are available. Now loadlin uses the temporary root directory file system established by initrd in the memory to load the Linux kernel (vmlinuz. Linux has taken over the control of dos on your hardware. In a sense, you are already using linux. Next, the installer will ask you: "Where are the disc image files (iso files) you stored ?" If you tell it to hda5, it will find it and ask you again if it cannot be found.

Once you know this, you can use loadlin in redhat to install other linux versions (such as fedora). Now suppose you have the loadlin file, and you have downloaded the five fc core 5 disks, stored in the root directory of drive D.

Put loadlin under drive C, and then release vmlinuz and initrd. img under fc/isolinux to drive C.

Create an autoboot. bat
Input:
Loadlin vmlinuz initrd = initrd. img ramdisk_size = 9216% 1% 2% 3% 4% 5% 6% 7% 9

Save. Restart the computer, enter dos, and run autoboot. Check that we successfully guided the installation of fc core 5 with loadlin.

Based on the above, you should be able to read loadlin.

Note: Installing debian from different media (such as CD, hard disk, network, floppy disk) requires different linux kernel, initrd, please download to http://debian.cn99.com/debian/di... 386/current/images. CD, hard disk, network, and floppy disk correspond to cdrom/hd-media/netboot/floopy (nonsense)

Grub
When you install some versions, there is no loadlin, and the online prawns will tell you to go to the next grub for dos and install it (in fact, you only need to decompress it if you don't need to install it ), run grub in dos mode and then call

Kernel (hd0, 5)/vmlinuz root =/dev/hda5 ramdisk_size = 512000
Initrd (hd0, 5)/initrd. img
Boot

In fact, grub and loadlin have similar principles. They also use the kernel and initrd commands to load the Linux kernel and initrd into the memory. The difference is that grub has a different name for the hard disk. Here (hd0, 4) similar to hda5, (hd0, 5) is equivalent to hda6, and so on. (Hd0, 5)/vmlinuz is a complete path, that is, vmlinuz (compared with autoboot \ vmlinuz) under (hd0, 5)

Boot: use the environment set by the above two commands to start.

Disk druid
Most people are most afraid of getting rid of those g movies, g songs, and hundreds of m images in windows when installing linux. In fact, you understand the routine, it is no longer afraid of pulling.

Since the disk management and naming methods for windows and linux are different, so many people have no clue at this step. Generally, your c disk is named hda1 in linux, and your d disk is named hda5. And so on.

Of course not all computers are the same.

When partitioning a disk, remember to select manual partitioning-so that you can operate your own disk, instead of letting redhat help you. In redhat9.0, disk druid is used for partitioning. This is a fully graphical partition tool, and it is easy for people who have used pq to get started.

A new partition is used to create a new partition, provided that the Operation partition uses free space ). Edit and edit a partition. in redhat, you can use this option to automatically mount a partition in windows (otherwise, you need to change fstab to enable automatic mounting when the system starts) to delete a partition, after you clear a partition in the format of fat32, you also need to delete it in disk druid and discard all the changes when you create a new partition in the format of ext3, delete all the edited items.

When installing windows on the mount point, you only need one partition. When installing linux, you need at least two partitions, one of which is the root directory, I .e.,/, and the other is the swap zone, I .e.,/swap. This/swap is equivalent to the virtual memory in windows.

Before you click Next, your disk will not change.

You can write down the size of your disk, especially the partition for storing important files. Remember its size. Its name will change and its size will never change. Freespace is not a fat32 zone without something installed, but is not formatted into any format. If you are not sure, select the default option and click Next. (We strongly recommend that you select ** not the default ** for manual partitioning during hard disk partitioning .) If the ora installation section is in English, ** be sure ** to configure the software package immediately --> language --> Simplified Chinese.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.