Management of the GRUB guidance systems (including WINGRUB) mounted Linux boot command line

Author: North-South-North
from: League of Legends Community
Summary: boot the Linux installation process in several ways, one is installed via loadlin under DOS; one is to boot the system by lilo boot manager; Another is to boot the installation through the system boot manager GRUB, currently most of this method is the most convenient and easiest way. GRUB has two versions, one for Windows, also known as GRUB FOR DOS or WINGRUB, the other is Linux comes with GRUB. This article talk about how the command-line mode by GRUB (including WINGRUB) to guide the installation of Linux;

table of Contents

1, GRUB Introduction;
2, GRUB version of the presentation;
3, the relevant documents concerning the GRUB:
4, by the method of installing Linux GRUB boot;

4.1 extract vmlinuz and initrd.img files from the installation disk for Linux;
4.2 installation source (CD image files) stored in the position;

5, by the GRUB (including WINGRUB) command line to boot Linux installation;
6, on herein;
7, Postscript;
8, reference documents;
9, related documents;


++++++++++++++++++++++++++++++++++
text
+++++++++++++++ +++++++++++++++++++


1, GRUB Introduction;

GRUB is one of the most commonly used Linux system boot manager that can boot while Linux, BSD, Windows, the latest GRUB 2.x, but also to guide MACOS X86 version; GRUB can not boot has been installed good operating system, but also to guide the installation of Linux systems, so learning GRUB or necessary. We have introduced GRUB usage in the past, but not much introduced in the GRUB boot Linux installation system; so we need to introduce;


2, GRUB version of the presentation;

at present I have come across have GRUB Linux version, and Windows version of GRUB; Windows version of the reference document "WinGrub guide to install Fedora 4.0, for example, with detailed WinGrub to boot the Linux installation."

As for the Linux version, most of them have major releases, if no installation disk, on a number of related sites that also has a corresponding package;
official address: http: //www.gnu.org/software/grub


3, GRUB relevant documents regarding:

GRUB For details, please refer to the following two articles, it is best to look at the relevant documents, should be rewarding job;

"System boot manager GRUB, guide for beginners"

"GNU GRUB manual and FAQ"


4, by a method of installing a Linux boot GRUB;

boot Linux installation by GRUB (including WINGRUB), in fact, relatively simple, one or two words can be said complete. If more than likely beginners do not understand, so it is simple as well; by installing the GRUB boot Linux on the premise that machines must have an operating system with Linux, or for Windows, if you have Windows, install WINGRUB. If there LINUX, mostly GRUB is guided, if not, a installation;

In fact, installation guide Linux, do not need to edit the menu, we use the GRUB boot command line can be completed, it should be said that he is the most simple, clear, take up to three lines;


4.1 extracted from the installation disk Linux vmlinuz and initrd.img files;

vmlinuz and initrd.img two files in almost all Linux installation disk have, generally stored in the first disk isolinux directory; some may not release this directory, look for yourself to see it, mostly yes;

The papers presented on the inside is good? Put a partition to a directory, the file system may be fat32 or Linux file systems such as ext3 or reiserfs, but not on the NTFS file system; for example, we installed FC5, presented two documents, we can put FAT32 under fc5 directory partition; it can also be placed directly under the partition, not on the directory. Of course, GRUB wording a little bit different.

If we put a directory in a partition of Linux, the same is possible, for example, I put vmlinuz and initrd.img on / dev / hda7 partition, and that partition is reiserfs file system, and put the / home directory; of course on the Linux file system, these directories and files to other user groups can be read with permissions 755; can not be placed at a user's home directory.


4.2 installation source (CD image files) stored in a location;

some do not have to solve all the Linux CD image, but some of it is needed, such as Slackware you need to extract all out on CD next folder; Fedora series then, if you do not have a CDROM version put forward, if you are using the DVD version, will be presented in a folder; or to put FAT32 partition Linux file system, NTFS file system can not be placed ;

After this the system boots up, have to find the installation source, we specify it on the line; whether it is hard to install or network installations had designated; if you want to install over the network, have to stand FTP or NFS server to the line; if your machine many of them you need to install Linux, the best is to do a dedicated server, this can easily point.


5, by the GRUB (including WINGRUB) command line to boot Linux installation;

At boot time, such as GRUB screen out, press c to enter command line mode; if you are using WINGRUB, also have this mode, press c, is the same reason;

GRUB Linux and Windows, has a command line function, this feature is very useful, it is not only able to boot the system, and sometimes can be repaired with the system; Furthermore, is guided to install Linux;

For example:

For example, we put vmlinz and initrd.img on / dev / hda2 in fc5 directory; that GRUB command line should be how to write it?

grub>kernel (hd0,1)/fc5/vmlinuz
grub>initrd (hd0,1)/fc5/initrd.img
grub>boot

If directly on / dev / hda3 partition down, do not put any directory how should write it?

grub>kernel (hd0,2)/vmlinuz
grub>initrd (hd0,2)/initrd.img
grub>boot

Reference: representation on storage devices, refer to the "two representations of the storage device in Linux systems" , and some may not understand why brothers / dev / hda3 was able to be written in GRUB (hd0,2), read these articles, you will understand that. A lot of practice it;

See two example of FIG.

installlinuxbygrub001.png installlinuxbygrub002.png


6, on paper;

This article is relatively simple, although the documents are related to the previously wrote a little; this independent, is designed to allow beginners to know about. Eye-catching eye-catching nothing; Some brothers will say, I knew this boot method, but I still feel this way beginners do not know; it is necessary to write about. It can be considered the basis of construction documents;


7, postscript;

wanted to write a large write ISO files after download, MD5 or sha1sum verification code does not match the problem with the official, as well as solutions; thinking ~~~~~~


8, reference documentation;

"System boot manager GRUB, is a beginner's guide"
"the GNU GRUB manual and FAQ"


9, related documentation;

"System boot manager GRUB, is a beginner's guide"
"the GNU GRUB manual and the FAQ"
"WinGrub guide to install Fedora 4.0, for example, with detailed WinGrub to boot the Linux installation."

Reproduced in: https: //www.cnblogs.com/licheng/archive/2008/01/21/1047350.html

Guess you like

Origin blog.csdn.net/weixin_33896069/article/details/92630538