How to Use Win98Dos to guide multiple Linux systems

Source: Internet
Author: User
Article Title: How to Use Win98Dos to guide multiple Linux systems. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Premise: Your machine has an NT System, such as win2000, winXP, and win.net, but before installing the system, you can use the 98 boot disc or floppy disk format to format your first primary partition format C:/s/q, and then install windows 2000, xp ,. net and then install Linux. In this case, your windows Startup menu has an additional microsoft windows Startup item, which is actually the dos7.0 of WIN98.
  
1. When installing Linux, select create boot disk to boot and install Grub to fd0. In this way, the corresponding vmlinuz *** and initrd *** will appear in the/boot directory ***. img file generation. Suitable for most linux releases!
  
2. Boot linux with a boot disk, and then run the vmlinuz and initrd related to the linux system. img, you can use ls-l in the/boot directory to check who is actually copying it to a folder similar to the system name on your drive C, for example:
  
You can
Mount/dev/hda1/mnt/win_c
  
Cd/mnt/win_c
  
Mkdir mdk
  
Cd/boot
  
Cp vmlinuz initrd. img/mnt/win_c/mdk
  
Copy loadlin.exe to the mdk directory on the CD, or you can download it from my website.
  
Http: // 61.136.253.234/loadlin.exe
  
Http: // 61.136.253.234/loadlin.exe
  
Then you can create an autoboot. bat file in the mdk directory to guide the linux system under the 98 DOS.
  
For example, the content of autoboot. bat in my mdk directory is:
  
Loadlin vmlinuz initrd = initrd. img root =/dev/hda10 devfs = mount
  
3. The other linux boot methods are the same. I just thought about them and I will not talk about them much.
This is not a perfect startup method. The following is the difficulty: pay attention to it. (It is better to change several files on the win platform)
  
4. Change the CONFIG. SYS file and the autoexec. bat file under your drive C, as shown in my file:
  
The content of config. sys is:
  
[Menu]
Menuitem = 1, Microsoft DOS 7.0
Menuitem = 2, Mandrake Linux9.1
Menuitem = 3, RedFlag Linux 4.0
Menuitem = 4, SuSE Linux8.2 pro
Menudefault = // * this line is the default wait time *//
Menucolor = 10, 1 // * font color of the Startup menu, for example, 15, 1 *//
[1]
[2]
[3]
[4]
  
  
The content of autoexec. bat is:
  
Goto % config %
: 1
Goto end
: 2
C:
Cd mdk
C: \ mdk \ autoboot. bat
Goto: end
: 3
C:
Cd \ redflag
C: \ redflag \ autoboot. bat
Goto: end
: 4
C :\
Cd \ SuSE
C: \ suse \ autoboot. bat
Goto: end
  
5. Modify the boot. ini file under your drive C. For example, the content of my file is:
  
[Boot loader]
Timeout = 5
Default = C :\
[Operating systems]
Multi (0) disk (0) rdisk (0) partition (3) \ WINNET = "Microsoft Windows 2003 Server Enterprise"/fastdetect
Multi (0) disk (0) rdisk (0) partition (2) \ WINDOWS = "Microsoft Windows XP Professional _"/fastdetect
Multi (0) disk (0) rdisk (0) partition (1) \ WINNT = "Microsoft Windows 2000 Server _"/fastdetect
C: \ = "Dos7.0 Boot Linux OS"/bootlog
  
//// The main reason is that you need to add the parameter/bootlog to the start item of dos 98.
In this way, you can directly go to our linux Startup menu. Otherwise, the message 98 is prompted to start in safe mode.
  
In this way, my machine has six operating systems, three windows and three linux, and I don't have to worry about mbr, so I can use dos to get everything done. You can discard your boot disk.
  
Appendix:
  
Redflag start autoboot. bat content:
  
Loadlin vmlinuz initrd = initrd. img root =/dev/hda11 vga = 791 hdc = ide-scsi
  
  
Start autoboot. bat of SuSE:
  
Loadlin vmlinuz initrd = initrd root =/dev/hda11 append splash = silent showopts devfs = mount
  
The main parameter is the following parameter. You can see grub. the conf file contains parameters. For example, if you do not add devfs = mount your file system in other formats after the mdk pilot batch processing file. You can try other parameters!
  
As long as you don't lose the started batch processing files and loadlin, you don't have to worry about Reinstalling windows, and you don't worry about grub loss any more.
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.