Brief Introduction to how to use WinGrub to guide Linux

Source: Internet
Author: User

The following describes my first Linux installation experience and how to handle it. I hope it will help you. If you do not like it, you can skip it.

I. The first Linux installation and subsequent experiences

Opening part: according to the FC4 cainiao graphic version installation tutorial by the North South Brother, I successfully installed fc4using a local SATA hard drive. At that time, I recommended that I install the GRUB program of the Linux version of FC4 ON THE MBRMain Boot Record master. boot Records).

Let's briefly introduce my experiences:

I have not installed a soft drive on my machine, and SATA is also known as the serial port, at that time, considering that two hard disks were more expensive than a hard disk with a considerable capacity, in addition, I didn't plan to allocate much space to Windows for Linux in the long run, so I chose some cheaper configurations introduced in the Linux entry book, it is the two operating systems installed on one hard disk. As in general, I first installed windows XP (because windows does not seem to be obligated to identify linux at present, it may cause a lot of trouble to install windows later ), because I bought the redhat linux9 installation CD as the boot kernel, I don't know if it can be described as this) I cannot identify the SATA interface hard disk. The prompt at the time was:

An error has occurred-no valid devices were found on which to create new file systems. please check your hardware for the cause of this problem. no hard drives have been found. you probably need to manually choosedevice drivers for the installation to succeed. wocould you like to select drivers now? (If you are familiar with it, we have encountered a similar situation. If you do not understand it, please search the dictionary or google to solve it yourself)

One of the solutions is that I downloaded a FC4 installation image from the Internet (the installation disk should have 4) If you entered "ftp://...Fedora/1 (or 2 or 3 )/... "Then please click" up "and then find the shape such as Fedora /.. /4 /.. the files under this path should be FC 1, 2, 3 images under those paths. After that, I used wingrub to boot the installation as described in the "cainiao tutorial", loaded linux GRUB into the MBR, and then started linuxGRUB for scheduling, then I learned to re-compile the kernel and load the NIC Driver.) Then I downloaded and installed the OpenQ plug-in, and then restarted after the configuration of the graphics card driver was installed... blame me for being too greedy, and the resolution settings are a little too high... in this case, Linux runs as usual, and the monitor does not respond. From the beginning, when the user initializes the configuration, the monitor displays no input signal ..... for me, this was the beginning of a nightmare. At that time, I didn't have any solutions to such problems (and I didn't have a rescue disk), and then I simply formatted it and started to reinstall everything ..... end of experiences)

Later, I found that it was troublesome for me to have the right to speak in the hands of LinuxGRUB. So I wanted to find a way for win GRUB to take control of the startup. When I installed FC4 again for partition configuration and boot program selection and loading, I no longer choose to put GRUB in the MBR, but instead split it into a/boot zone and put the MBR in it. I hope the boot program will automatically shake hands and start working. Isn't it naive ?) At that time, I also selected the Force LBA32 option, and then continued to install all the packages, prompting that the installation was successful and that the system was restarted. Then Linux was not identified. What should I do ??

2. We want WinGrub to control the Analysis and Practice of guidance.

Then reload it and then load GRUB? It was slow. I was prompted that the installation was successful, and I really didn't want to try again .. in this case, we need to go back to another article provided by the north and south brothers: Compile the kernel operation process to reference this section:

1. Copy bzImage and Other Related Files and create the initrd file;

 
 
  1. [root@localhost linux-2.6.12.3]# cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.12.3  
  2.  
  3. [root@localhost linux-2.6.12.3]# cp System.map /boot/System.map-2.6.12.3  
  4.  
  5. [root@localhost linux-2.6.12.3]# cd /boot  
  6.  
  7. [root@localhost linux-2.6.12.3]# /sbin/mkinitrd initrd-2.6.12.3.img 2.6.12.3  

We copy the compiled bzImage into the/boot directory to the vmlinuz-2.6.12.3;

And use mkinitrd to create the imitrd-xxx.img file, where xxx is the kernel version number, is to view the/lib/modules to the corresponding version, we compile

To 2.6.12.3, so run the above command to create, create a initrd-2.6.12.3.img; do not create this file, sometimes cannot start up, such as the prompt VFS error;

Have you seen it? The first time I compile the kernel, that is, follow this path. The most important thing is that vmlinuz-a. B .c and initrd-a. B .c and System. map are all under the/boot path. Here we will give a brief introduction to the kernel: Linux kernel is stored in the/boot directory with names like vmlinuz-a. B .c, and all kernel versions are in the major. minor. patch number format. There is also an important basic concept: all the so-called partitions in linux, folder and other things are expressed by partitions, which is not hard to understand, I think it seems like a first-person perspective game is somewhat similar to a third-person perspective game: Windows clearly shows which part of the entire system is, in linux, the rule is my part. At the same time, mount is involved. even if it looks like/boot, the representation in linux is just a part of the root partition.

2. Writing menu. lst of wingrub;

In fact, when editing menu. lst (BOOT menu) in Windows, it is obvious that I can add
Title Fedora Core4 Installation
Root (hd0, 6)
Kernel (hd0, 6)/linux/vmlinuz
Initrd (hd0, 6)/linux/initrd. img (my settings are partitions that boot installation in Fat32 format)

In this case, you cannot add the following content to the menu. list file:
Title Fedora Core (2.6.11-1.1369_FC4)
Root (hd0, 7)
Kernel/vmlinuz-2.6.11-1.1369_FC4 ro root = LABEL =/rhgb quiet
Initrd/initrd-2.6.11-1.1369_FC4.img

Note: Because I have separately divided the boot partition, write it as follows. If there is no separate boot partition, it should be as follows:
Title Fedora Core (2.6.11-1.1369_FC4) _ te1
Root (hd0, 7)
Kernel/boot/vmlinuz-2.6.11-1.1369_FC4 ro root = LABEL =/rhgb quiet
Initrd/boot/initrd-2.6.11-1.1369_FC4.img

Does this section guide the linux system? Of course, no one told me no. The result is that this method works =) because I did this. After re-compiling the kernel, the method for loading the kernel is similar, so I will not talk about anything more.

  1. Brief Introduction to "Ubuntu ~" in the Ubuntu Operating System ~"
  2. For details about commonly used software in Ubuntu 8.10, set and configure 1)
  3. About commonly used software in Ubuntu 8.10, configuration 2)
  4. Ubuntu Compiz is commonly used as the shortcut key 3)
  5. Ubuntu Linux is suitable for at least five people

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.