Linux-guided installation in GRUB Command Line Mode

Source: Internet
Author: User

Linux-guided installation of commonly used software for computer gamers, I will study and study Linux-guided installation in depth. Here I will discuss with you how to use Linux-guided installation, I hope it will be useful to you. There are several methods to guide the installation process in Linux, one is to install through loadlin in DOS;

One is to boot through the lilo System Boot manager; the other is to boot the installation through the System Boot manager GRUB. Most of them are currently using this method, which is the most convenient and easiest way. GRUB has two versions, one FOR Windows, also known as grub for dos or WINGRUB, and the other for grub that comes with Linux. This article describes how to use the command line mode of GRUB (including WINGRUB) to guide Linux installation.

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 Linux, so it is necessary to learn GRUB. We have previously introduced the usage of GRUB, but we haven't introduced much about GRUB installation in Linux boot; so we need 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, detailed introduction of using WinGrub for Linux boot and installation. As for the Linux version, most of the major editions are available. If it is not included in the installation disk, it 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, for Beginners Guide, gnu grub manual and FAQ

4. The GRUB method is used for Linux boot installation;

Linux boot installation through GRUB including WINGRUB), in fact, it is relatively simple, one or two words 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 to boot and install GRUB is that the machine must have an operating system, either Linux or Windows, if Windows exists, install WINGRUB.

If there is LINUX, most of them have GRUB boot. If there is no GRUB boot, install one. In fact, Linux boot installation does not need to edit the menu. We can use the GRUB command line to complete the boot, it should be said that it is the simplest, clear, and 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 install the source CD image file) and store it 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. Linux boot installation in command line mode through GRUB including WINGRUB;

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 fix the system; in addition, Linux boot installation;

For example, if we put vmlinz and initrd. img in the fc5 directory of/dev/hda2, how should we write the GRUB command line?

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

How can I write data directly in the/dev/hda3 partition instead of any directory?

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

For more information about the representation of storage devices, see "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.

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 about this Linux boot installation method, but I still feel that some beginners do not know this method. It is necessary to write it. It is also a basic document construction;

  1. Linux Guidance
  2. The support of common Linux file systems and storage devices is determined by the kernel.
  3. Linux operating system Redhat series and Debian Series
  4. The System File rpm package required for Linux compilation and installation is used by me.
  5. Install the flash plug-in the Linux Firefox Chinese menu

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.