Directory
1. Introduction to grub;
2. Grub version introduction;
3. Grub-related documents:
4. Use grub to guide Linux installation;
4.1 extract the vmlinuz and initrd. imgfiles from the Linux installation disk;
4.2 The installation source (CD image file) is stored in the location;
5. Use the grub (including wingrub) command line mode to guide Linux installation;
6. About this article;
7. postscript;
8. references;
9. related documents;
++
Body
++
1. Introduction to grub;
Grub is one of the most commonly used system boot managers in Linux. It can guide Linux, BSD, and windows at the same time. Currently, grub 2.xis the latest version, and MACOs x86 version; grub can not only boot the installed operating system, but also boot and install the Linux system, so it is necessary to learn grub. We have previously introduced the usage of grub, but we have not introduced much about grub installation in the boot Linux system; so it is necessary to introduce it;
2. Grub version introduction;
Currently, I have been familiar with grub Linux and grub windows. For Windows, refer to "Install fedora 4.0 with wingrub as an example, how to Use wingrub to guide Linux Installation
Most of the Linux versions are available in various major releases. If they are not available in the installation disk, they will also be packaged on some related websites;
Official Address: http://www.gnu.org/software/grub
3. Grub-related documents:
For details about grub, please refer to the following two articles. It is best to take a look at the relevant documents;
Grub, System Boot manager for beginners
GNU grub manual and FAQ
4. Use grub to guide Linux installation;
Using grub (including wingrub) to boot and install Linux is actually relatively simple, and one or two statements can be done. If it is too much, it may be hard for beginners to understand, so it is better to be simple. The premise for Linux installation through grub is that the machine must have an operating system, either Linux or windows, if Windows exists, install wingrub. If Linux is available, most of them are grub-Guided. If not, install one;
In fact, you do not need to edit the menu to guide the installation of Linux. You can use the grub command line to complete the boot. It should be said that it is the simplest and clear, and it requires up to three lines;
4.1 extract the vmlinuz and initrd. imgfiles from the Linux installation disk;
Vmlinuz and initrd. IMG files are available in almost all Linux installation disks. They are generally stored in the isolinux directory on the first disk. Some release versions are sometimes not in this directory. You can find them by yourself. Most of them are available;
How can I put the proposed file in it? Put it in a directory in a partition. The file system can be a file system such as FAT32 or Linux ext3 or reiserfs, but it cannot be placed in the NTFS file system. For example, we install fc5 and propose two files, we can put it in the fc5 directory of the FAT32 partition, or directly under the partition, not in the directory. Of course, the syntax of grub is a little different.
If we put it in a directory under a LINUX partition, it is also feasible, for example, I put vmlinuz and initrd. IMG is placed on the/dev/hda7 partition, which is a reiserfs file system and stored in the/home directory. Of course, it is placed in the Linux File System, these directories and files can be read by other user groups with a permission of 755. They cannot be stored in the home directory of a user.
4.2 The installation source (CD image file) is stored in the location;
Some Linux systems do not need to unlock all the disc images, but some do. For example, slackware needs to extract all the discs and put them in a folder. What about the fedora series, if it is a cdrom version, it is not necessary to mention it. If you are using a DVD version, you need to put it in a folder; to put it in a FAT32 partition or a Linux File System, it cannot be stored in the NTFS file system;
After the system is booted up, you have to find the installation source. You just need to specify the installation source, whether it is hard disk installation or network installation. If you want to install it through the network, you need to install an FTP or NFS server. If many of your machines need to install Linux, it is best to build a dedicated server for convenience.
5. Use the grub (including wingrub) command line mode to guide Linux installation;
When the grub screen is displayed, press the C key to enter the command line mode. If you are using wingrub, press the C key, the truth is the same;
Grub in Linux and Windows has the command line function, which is extremely useful. It can not only guide the system, but also sometimes repair the system. In addition, it can guide the installation of Linux;
Example:
For example, we put vmlinz and initrd. img in the fc5 directory of/dev/hda2. How should we write the grub command line?
grub>kernel (hd0,1)/fc5/vmlinuz
grub>initrd (hd0,1)/fc5/initrd.img
grub>boot
How can I write data directly in the/dev/hda3 partition instead of any directory?
grub>kernel (hd0,2)/vmlinuz
grub>initrd (hd0,2)/initrd.img
grub>boot
Refer:For more information about the representation of storage devices, see the two Representation Methods for storage devices in Linux. some may not understand why/dev/hda3 can be written in grub (hd0, 2). After reading these articles, you will understand a little. Practice more;
View two instance charts
6. About this article;
This article is relatively simple, although I have previously written a little in the relevant documentation; this independent release mainly aims to let beginners know. Some of them will say that I have long known this guiding method, but I still feel that some beginners do not know this method. It is necessary to write it down. It is also a basic document construction;
7. postscript;
After downloading a large ISO file, I want to write the MD5 or sha1sum verification code that is inconsistent with the official version and find a solution ~~~~~~
8. references;
Grub, System Boot manager for beginners
GNU grub manual and FAQ
9. related documents;
Grub, System Boot manager for beginners
GNU grub manual and FAQ
Taking wingrub as an example to describe how to use wingrub to guide Linux Installation