Use the win system ntloader to boot Linux

Source: Internet
Author: User

I recently wanted to see Linux, but it was useless for two or three years. I threw a lot of things into the Java country. There is no way to do it. Come from the beginning.

First of all, the installation problem is that many people have installed Linux, and the installation and release versions of each person are different. In the past few days, when I came home from work, I began to configure X. I was not satisfied with the installation, I haven't done it yet. It's really depressing. Let's talk about the installation first.

Currently, you can install the following versions: RedHat, Suse, Mandrake, Debian, bluepoint, and redflag. They have their own strengths. However, I feel that Chinese products are just as boring as Chinese products. I chose RedHat Linux 9.0. I have nothing to say. Since "Everyone is using it", I am no exception.

There are two points to talk about.

I. Partition first.

Currently, you cannot install an operating system separately. windows must be retained. Whether you install Linux or windows first, the effect is the same: your hard disk must have two primary partitions, but only one is active (or activated, or active ). Linux has approximately 6 GB of free space for future installation of certain software (such as Oracle, Informix, and kylix. Windows XP is installed first. After installation is complete, place the first installation disk in Linux, start from the disc, and press enter all the way to partition. It should be noted that, as long as you are bold and careful, Windows will not be affected. In Linux, the hard disk is identified in this way. The first hard disk is hda, the second hard disk is HDB, and so on. Even if the machine has only one hard disk, It is hda. The first partition of the first hard disk is hda1 and the second is hda2. The extended partition contains the logical partition, and the logical partition is also numbered, such as hda3. I put Linux partitions in hda1 and format them into ext2 format. In addition, ext3 is an optional format. It is said that some methods of the mainframe are used for reference and the log function is enhanced, is the so-called power-resistance function: You can directly unplug the power plug. Even the notebook is still very fragile. Use ext2: Enough.

2. The installation location of the boot information.

There are two options: one is to install it in the primary partition of the hard disk, that is, the MBR, and the other is to install the boot area of the Linux primary partition. I do not need to install lilo in the MBR, it is packed in its own partition. The following is the waiting process.

Of course, you will not be able to see Linux after the installation is completed and started, but it does not matter. refer to the following steps:
1. You have to log on to Linux in either of the following ways:

A: copy these files from the dosutils directory of the installation disk: loadlin.exe and vmlinuz to drive C (If your drive C is in FAT32 format), start to DOS, and run:
Loadlin.exe vmlinuz root =/dev/hda? Ro?
Note: What is the hda in the command line? The partition name for Linux installation.
Press enter to enter Linux

B: Use the installation disc to start the machine. When the boot occurs, enter:
Linux vmlinuz root =/dev/hda? Ro
Note: What is the hda in the command line? The partition name for Linux installation.
Press enter to enter Linux

2. Use Windows NT Loder to guide Linux
First, the mountc disk in Linux:
Mount-T vfat/dev/hda? /Mnt
Note: What is the hda in the command line? It refers to the partition name for Windows installation.
Then execute:
Dd If =/dev/hda? Of =/mnt/bootsect. lnx BS = 512 COUNT = 1
Note: What is the hda in the command line? The partition name for Linux installation.

3. Go back to Windows, edit boot. ini, and add the following line:
C: // bootsect. lnx = Linux
Disk Storage and restart. You can see that the Windows Startup list has a Linux option. Select it to go to Linux.

If you install Linux boot information in MBR, you can use the Win98 installation disk to boot to the DOS environment. Execute fdisk/MBR to give Windows priority.

After all, I used it once or twice. Now I can remember something.

 

Envymask

 

Use the ntldr of Win2000 to guide Linux


I believe that Win2000 + WIN98 + LINUX or Win2000 + Linux is a system approach for most Linux beginners. Some old birds are installed like this. I believe that few people only use Linux and do not use win. Win's support for games is incomparable to its ease of use in Linux. Linux has many advantages.

Do you think that using LILO or GRUB to guide multiple systems often breaks down?
As long as windows is installed, the original Linux cannot be found?
This is because you overwrite the startup information written by LILO or grub in MBR during windows reinstallation. (If windows is not loaded, C: disks are not loaded ).
At this time, you only need to use the Linux boot disk or reinstall Linux. However, a floppy disk is often damaged. If the floppy disk is damaged, reload the disk. So this is annoying.
In fact, the ntldr of Win2000 is also a multi-system Boot Tool. Lilo can boot 2000, and in turn 2000 can also boot Linux. This method has already been introduced on the Internet. I don't know anyone about it, so I wrote this post, hoping to help some people, it also reduces the burden on our "north, south and south" brother. :)
WIN98 + Win2000 + linux
Install 98 first. This is not required !~~ The silver capital of the Earth implements the Tao !~ Pai_^
Then install 2000. When the installer copies the file and restarts for the first time, the Win2000 installation CD is taken out. Install 2000 first, and then install it later.
Change to the Linux installation CD to boot the machine to install Linux, and then install linux normally, but install lilo in MBR first. After installation, go to Linux and startx. Then use the klilo in KDE to modify lilo in the root partition, that is "/". Then run the following command on the terminal:
Dd If =/dev/hda7 of =/bootsect. lnx BS = 512 COUNT = 1
Note: The "hda7" here is the Linux Root partition. The actual operation varies depending on the individual's situation.
Change, hda7 is the root partition of my Linux.
Then use:
Mkdir/DOS-C
Mount/dev/hda1/DOS-C
Attach the drive C under the win partition of FAT32 to the/DOS-C directory of Linux.
Then:
CP/bootsect. lnx/DOS-C
Copy bootsect. lnx to the c root directory.
Okay. Next we will install 2000
Use 98 to start a floppy disk or a CD disk to the real DOS, and use commands
Fdisk/MBR
Clear lilo information in/MBR.
Change the 2000 installation disk and then install the 2000
At this time, everything is no different from installing Linux. After installing 2000, you cannot see the Linux Startup information.
Don't worry. After entering 2000 normally. Open boot. ini under drive C
Add a line at the end:
C:/bootsect. lnx = "Red Hat 7.2"
After saving the disk, exit and restart the system. Check whether the "Red Hat 7.2" error is displayed in the following line ".
At this point, we have completed the production of WIN98 + Win2000 + LINUX at multiple boot times.
In the future, no matter how we reinstall windows, 98 and 2000. As long as bootsect. lnx is still running, you can edit boot. ini to start Linux. To ensure security, it is best to create a boot disk when installing Linux and back up bootsect. lnx to a safe place.
I am now 98 + 2000 + rh7.2, And I have installed Windows several times. But Linux has not been reinstalled.
Although this method is annoying, it is still very practical. In fact, I don't think it's very troublesome. Just a few steps.
It is much easier to solve the 7.0 cylinder problem than rh before 1024.

---- By: envymask

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.