Windows and Linux dual-system startup problems.

Source: Internet
Author: User

In some special circumstances, the server may have to install dual-System
A Linux system and a Windows system
In this case, the installation sequence is to install the Windows system first, and then install the Linux

This is because grub, the Linux boot program, has the ability to select multiple systems.
Windows Default boot programs do not have the ability to select multiple systems

For example, if the server has already installed a dual system, the boot menu is Linux's grub
To delete a Linux system, use the Windows boot disc or DoS boot disk to boot
Then run fdisk/MBR in the command line.
In this way, the Linux boot program grub of the MBR Boot Sector will be overwritten by the Windows boot program.
After the server is restarted, the grub boot menu does not appear.
Then, delete the LINUX partition in Windows to completely delete the LINUX partition.

If the Windows system is reinstalled on a dual-system server, the MBR will also be overwritten as the default
At this time, although the LINUX partition is still on the hard disk, it cannot be booted without the grub Startup Program.
In this case, you need to use the Linux CD to restore grub.
First, put the Linux CD in. It is best to use the latest version.
Enter the Linux rescue when starting the CD boot to go to the repair status.
During the boot process, the program will ask if you want to mount the current hard disk to/mnt/sysimage
If yes is selected, the system automatically mounts the LINUX partition on the hard disk.
After the rescue mode is completed, enter the Linux Command Line
Enter chroot/mnt/sysimage in the command line
This command switches the system environment started from the CD to the mounted hard disk.
Run the DF command to check the drive letter of the hard disk.
For example, the SATA and SCSI hard disks are SDA, And the IDE Hard Disks are similar drive letters such as hda.
Execute grun-install/dev/SDA to fix it!
The program reports that grub is successfully installed.

Restart the server and you will find that the GRUB menu is back. You can select the dual system.

PS:

This article comes from:

Http://zhidao.baidu.com/question/47152984.html

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.