Create multiple boot systems for Linux and Windows

  
        

In the operating system market, Microsoft from Windows 95 to Windows 98, from Windows NT to Windows 2000, which has just revealed its true face, has continuously introduced various versions of Windows, enabling the Windows operating system to successfully occupy. A large market share has become the mainstream of the operating system. However, the Linux boom that is now emerging is changing all of this unconsciously. Since 1998, Linux has become the focus of the IT industry. It is a free Unix system running on a microcomputer, first developed by the Finnish Linux Torvalds, and the program code is published and maintained by programmers on the Internet. After only seven years, Linux has been recognized by users for its excellent performance, security mechanism and low price. It has become the most popular operating system in the world and poses a huge threat to the empire of Microsoft. . The application of Linux on the network is almost perfect, and it is supported by large companies such as Oracle, Sybase, Sun, etc., and has a considerable advantage in the market of network servers. In addition, there is a graphical interface on Linux. If you are tired of Windows's huge, bloated and fragile body, you might want to try Linux and it will definitely bring you a new feeling.

But for individual users, the ease of use of Linux is not very good, and there is still a big gap compared to Windows. Although Linux also has KDE and GNOME similar to Windows, and StarOffice similar to Microsoft Office, it is always cheaper to use than Windows software. It seems a bit strange. Not only that, but the software, games, and development tools under Windows are much richer than Linux. Therefore, we often hope that Linux will not be abandoned while applying Linux, and that they can coexist peacefully without interference. Under this premise, we need to create a multi-boot system to meet our wishes.

Let's take a look at how to build a multi-boot system.
Here, we assume that /dev/hda1 is the C drive, the drive C is equipped with the operating system Windows 98 SE, the D drive is equipped with Windows 2000, and we install separately on /dev/hda6 and /dev/hda8. There are RedHat Linux 6.1 and Turbo Linux 4.0. Note that when installing Lilo, do not install Lilo in the main boot area (MBR), but on the superblock of the Linux root partition. In addition, it should be noted that Lilo cannot be installed in partitions above 8G.
First, put the Linux installation disk in the CD-ROM drive, enter the DOSUTILS directory on the CD-ROM, and copy the loadlin.exe from the directory to the hard disk. This file is a program that uses DOS's MBR to boot Linux. Then enter the DOSUTILSAUTOBOOT directory of the CD and copy the kernel image file vmlinuz file in the directory to the directory where loadlin.exe is located. Then run the command loadlin vmlinuz root=/dev/hda6 to enter RedHat Linux. In fact, copying the above files to the hard disk is only to speed up the startup of Linux. If you want, you don't have to copy the above two files, just add the path, such as: loadlin .autobootvmlinuz root=/dev/hda6. After entering Linux, log in as root and execute the following command:
(1)mount �t vfat /dev/hda1 /mnt/c Install the C drive to /mnt/c if it is in the /mnt directory There is no c directory, use mkdir /mnt/c to create this directory.
(2) dd if=/dev/hda6 of=/mnt/c/redhat.lnx bs=512 count=1
You may not know much about the dd command, let me introduce this command meaning. The function of the dd command is to convert the data read from the standard input into the standard output by converting it according to the method specified by the parameter. Let's take a look at the meaning of the dd command parameter: if specifies the name of the input file to be copied, the specifies the name of the output file to be created, bs specifies the size of the input and output blocks, and count specifies the block to be copied from the input file.
(3) umount /dev/hda1 This command is used to uninstall the C drive.
(4) Execute the reboot command to restart the computer.
Similarly, perform the following steps to output the turbo.lnx file:
1.loadlin vmlinuz root=/dev/hda8 Enter Turbo Linux and log in as root.
2.mount �t vfat /dev/hda1 /mnt/c
3.dd if=/dev/hda8 of=/mnt/c/turbo.lnx bs=512 count=1 < BR>4.umount /dev/hda1
5.reboot
After restarting, you can find two files in the C drive, named redhat.lnx and turbo.lnx. Since Windows NT/2000 boots, NTLDR is responsible for booting into Windows NT/2000, and it can boot non-Windows NT/2000 operating systems, so let's use NT/2000's multi-boot mechanism to create our Windows NT. /2000, Windows 98, RedHat Linux, Turbo Linux multi-boot system.
Since Windows NT/2000 multi-boot is controlled by the initialization file boot.ini, you must modify this file to achieve multiple booting of Windows NT/2000, Windows 98, RedHat Linux, Turbo Linux. The file is placed in the root directory of the C drive. Execute the command attrib boot.ini &#0;s &#0;r &#0;h to remove its system, read-only, and implicit attributes so that they can be modified. Then edit the boot.ini file, the following is the contents of the boot.ini file:
[boot loader]
timeout=30
default=C:[operating systems]
C:="Windows 98 SE "
C:redhat.lnx="RedHat Linux 6.1"
C:turbo.lnx="Turbo Linux 4.0"
multi(0)disk(0)rdisk(0)partition(8)WINNT= "Microsoft Windows 2000 Advanced Server" /fastdetect

In addition, changing the order of the different lines of the [operating systems] section can change the order of different operating systems. Changing the default definition changes the default operating system. Changing the timeout can change the wait time.
In this way, we can use Linux without abandoning Windows, and they will coexist peacefully without interference. ;

Copyright © Windows knowledge All Rights Reserved