How to boot a Linux system from the DOS system

Source: Internet
Author: User
The Linux operating system was born very early, but has been widely used in recent years. It has evolved from a research system to an application system that is easy to master. Linux's open features and free software

The Linux operating system was born very early, but has been widely used in recent years. It has evolved from a research system to an application system that is easy to master. The open features and free software of Linux have become more and more popular among users. This kind of operating system brings about a revolution in the computer operating system, which may defeat the Windows operating system in the future. Linux not only can boot directly with the LILO boot program, but also indirectly boot from the DOS operating system.

The benefits of Linux operating system boot from DOS are:

1. after using the DOS operating system for regular transaction processing, you can directly access the Linux operating system without restarting the computer.

2. you can not write LILO boot data in the hard disk partition, so that you are not careful about writing errors, resulting in an operating system boot error. Is the most secure guide for the operating system.

3. for those who love to modify the Linux system boot kernel, using LOADLIN program boot in DOS can easily debug their own kernel programs without affecting any configuration of the original system. The DOS file system is different from the Linux file system. DOS currently only has two file formats: 16-bit and 32-bit. However, the Linux operating system supports various file systems, such as sysv, ext, ext2, dos.... the most popular file system for Linux is ext2.

There are also UMDOS file systems created in the DOS environment. Ext2 file format is a popular Linux operating system. The UMDOS file system is a file management format that Linux operating systems can run in the DOS file system.

When you get a Linux operating system CD, you also get the LOADLIN package. It is usually found in various Linux releases and distribution versions.

Of course, you can also find it on the Internet. This program has already been part of the Linux operating system. It is stored in ZIP or TGZ compression format. its file name is usually LOADLIN16.ZIP or LOADLIN16.TGZ, which contains the execution file and source code. Loadin supports both UMDOS and ext2 file systems.

It is a free and open software. if you are interested or need it, you can solve it with the source code package to modify and compile it. Add new functions for it. Author of the original program. It is Hans Lermen.

The Loadlin package version you can obtain is probably 1.6. It is the most popular version.

Features and functions of this version are as follows:

1. enhanced error check and full support for "command line features" in Linux ".

2. accept the response file. The command line can contain more than 128 bytes.

3. adapt to different DOS configurations. DOS configuration requirements are very few.

4. it can be executed in extended memory and supports large kernels (bzImages) and virtual disks (initrd)

5. supports running Linux systems in the DOS system file format

It is required to boot from the DOS file system into the Linux file system:

1. sufficient memory (can be loaded into the free memory of the Linux boot kernel), compressed kernel (zImage or bzImage, that is, compressed file of the Linux boot kernel), and optional loading of initrd image, (Linux file system RAM boot initialization ).

2. you need to run the DOS in real mode, that is, running in standard DOS mode can enter the Linux operating system.

Supports the EMS driver interface, that is, the extended memory. (VCPI)

3. a Linux operating system has been installed on your hard disk.

After you get the package, use the corresponding decompression software to decompress it to the corresponding directory. For example, assume that your software file is named loadlin16.zip. Use UnZip to decompress the package to your C: LOADLIN directory and enter the following command in the doscommand line:

C:> CD LOADLIN

C: LOADLIN> LOADLIN zimage

Root =/dev/hdb1 ro vga = ask

You can access the Linux operating system.

As shown in the preceding example, LOADLIN requires a zimage or bzimage file, which is a compressed file of the Linux kernel. zimage and bzimage are two different types of compressed Linux kernel.

Zimage is the core of the system after the Gcc program is compiled in the Linux operating system. it also plays an important role in LOLI boot. its function is to bootstrap the initialization and configuration of Linux devices, call the process of the initial driver of the system, and enter the Linux console for operations.

In addition, you can select an image file to mount the disk. /Dev/hdb1 refers to the drive device of the system. In this example, it refers to the first partition of the second hard disk. In Linux, a hard disk, a CD, or similar device is specified in the format of/dev/xxx.

Root =/dev/hdb1 is the location of the Linux system. it specifies where the Linux system is located. how does the Loadlin program identify and find the Linux operating system, so as to call specific files in Linux operations, use zimage for guidance.

The ro after/dev/hdb1 specifies the read attribute of the system. In the UMDOS file system, because Linux belongs to DOS, it is generally the rw attribute, that is, the read/write attribute, ro, rw indicates read-only or read/write.

During LOADLIN boot, a Linux boot core is required to specify the Linux path. It can use Linux core parameters in the doscommand line to directly pass the command line parameters to the Linux kernel. You can directly use the Linux kernel configuration in the command line.

Vga = ask is the display mode specified by the user. Specifies whether the display is VGA or expanded VGA.

Related Article

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.