Use Grub to start the LinuxISO installation file on the hard disk

Source: Internet
Author: User
Article Title: Use Grub to start the LinuxISO installation file on the hard disk. Linux is a technology channel of the IT lab in China. Grub is the first basic classification of desktop applications, Linux system management, kernel research, embedded systems and open-source systems.
 
Grub is used to start the operating system. Since grub is started before the operating system, you can find the downloaded Operating System iso file on the hard disk before mounting the operating system to install it. Grub for dos is required for windows systems. for linux systems that have been installed, Grub for linux is required.
 
For windows, the installation method is to directly add its path to the startup Item. In this way, before windows is started, go to grup, so that our linux has the opportunity to start and install. The specific method is to find the partition where windows is installed. There is a hidden file of boot. in. Add your complete grub path and Startup menu item name at the end.
 
GRUBDIR "Start GRUP ".
 
For linux, the installation method is very simple.
 
The second is the kernel files vmlinuz and vmlinux.
 
The VMS in the two are Virtual Memory. Because linux uses hard disk space to implement Virtual Memory, vm is added at the beginning.
 
Vmlinux is a linux kernel executable file. Generated by the command make bzImage when compiling the kernel. While vmlinuz is a compressed file of vmlinux, which is generated by the command make zImage.
 
Last inirtd. imgfile
 
Initrd indicates initial ramdisk. A typical application of initrd is used for temporary hardware initialization so that the kernel can start normally without loading the driver.
 
By adding the above two files, the linux installation program has an installation environment.
 
The file is ready. The general installation process is as follows:
 
Start grub with the name line. Grub
 
Then:
 
Set the kernel path
 
Kernel kernel_path/vmlinuz
 
Set initrd path
 
Initrd initrd_path/initrd. img
 
Last started:
 
Boot
 
In this way, the system will start to the corresponding boot interface, find the iso file, and start installation.
 
Related Article

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.