How Windows Boots Linux

Source: Internet
Author: User
Tags exit ini join relative

Booting Linux with Windows (Windows7+ubuntu)

Boot to Linux (Ubuntu)

sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1

The CP to your win root directory, for example, is c:/, for insurance, it is best to change its properties to "+s +h +r", that is, "system, read-only

Hidden

>attrib +s +r +h c:linux.lnx. And I suggest you make multiple backups of this file!

and reboot to win.

After entering, confirm that your system root has linux.lnx this file.

If the win 2000/xp directly modify Boot.ini

Boot.ini please change under win, because the code is different! Except for Heroes.

It may be hidden and read-only

And then join in the back

If there is

Code:

Time=0

Please change the 0! such as Time=5

Code:

c:/linux.lnx= "Linux"

Save!

Then you can restart win to see the effect.

If Vista/windows 7, because the new boot is enabled, it is a bcdedit execution bootstrapper operation.

After you have copied the boot file, you need to make further modifications as follows.

***************************************************

Programme A:

bcdedit/create {ntldr}/d "Ubuntu Linux"

Bcdedit/set {ntldr} device Partition=c:

Bcdedit/set {ntldr} PATH/NTLDR

Bcdedit/displayorder {ntldr}/addlast

Programme B: (note that the results are modified according to the first command):

bcdedit/copy {ntldr}//"Ubuntu Linux"; The system prompts that "the item has been successfully copied to the {8de1dad8-d399

-11DB-B639-000AEB2DC0BA} ", where the {8DE1DAD8-D399-11DB-B639-000AEB2DC0BA} is" Ubuntu Linux "

's start identifier. Different operating systems may not be the same.

Re-enter: Bcdedit/set {your Linux identifier} device partition=c: The system prompts you to "successfully complete the operation."

Input: bcdedit/set {your Linux identifier} PATH/NTLDR,

Last input: Bcdedit/displayorder {your Linux identifier}/addlast.

Save exit, and after reboot you will see Windows 7 and Ubuntu Linux dual boot menu.

Programme c:

Enter bcdedit/? To view related Help information

1. Configure a new boot entry using bcdedit

>bcdedit/create/d "Linux"/application OSLoader

#建立新项, which is to create a new boot entry and return a GUID value after success

The format is as follows: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

>bcdedit/set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} drive Partition=c:

#设置新引导项文件所在分区

>bcdedit/set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path Linux.lnx #设置启动项文件在分区中

Relative path, note that the "" before the file is required, indicating that it is located under the root directory of the partition. If you assume that the file is in C:windows

, it should be changed to windowslinux. In addition, there is a space behind the path

>bcdedit/displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}/addlast

#设置引导项顺序, AddLast is added to the end of the boot list, or AddFirst, to the top. So far

The operation to add a new boot entry has succeeded, but it is not yet bootable.

>bcdedit/default {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

#此命令可选, if you want to set this as the default boot entry, execute it

The following is the direct execution of Bcdedit to see the configuration.

***************************************************

If Windows boots properly, you can clean the MBR records.

Steps:

Win9x Boot Disk startup (or with other disk management tools)

Code:

Fdisk/mbr

This way, the grub boot is gone, leaving only the way Windows is booted.

Booting Linux with Windows (Windows7+ubuntu)

Boot to Linux (Ubuntu)

sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1

The CP to your win root directory, for example, is c:/, for insurance, it is best to change its properties to "+s +h +r", that is, "system, read-only

Hidden

>attrib +s +r +h c:linux.lnx. And I suggest you make multiple backups of this file!

and reboot to win.

After entering, confirm that your system root has linux.lnx this file.

If the win 2000/xp directly modify Boot.ini

Boot.ini please change under win, because the code is different! Except for Heroes.

It may be hidden and read-only

And then join in the back

If there is

Code:

Time=0

Please change the 0! such as Time=5

Code:

c:/linux.lnx= "Linux"

Save!

Then you can restart win to see the effect.

If Vista/windows 7, because the new boot is enabled, it is a bcdedit execution bootstrapper operation.

After you have copied the boot file, you need to make further modifications as follows.

***************************************************

Programme A:

bcdedit/create {ntldr}/d "Ubuntu Linux"

Bcdedit/set {ntldr} device Partition=c:

Bcdedit/set {ntldr} PATH/NTLDR

Bcdedit/displayorder {ntldr}/addlast

Programme B: (note that the results are modified according to the first command):

bcdedit/copy {ntldr}//"Ubuntu Linux"; The system prompts that "the item has been successfully copied to the {8de1dad8-d399

-11DB-B639-000AEB2DC0BA} ", where the {8DE1DAD8-D399-11DB-B639-000AEB2DC0BA} is" Ubuntu Linux "

's start identifier. Different operating systems may not be the same.

Re-enter: Bcdedit/set {your Linux identifier} device partition=c: The system prompts you to "successfully complete the operation."

Input: bcdedit/set {your Linux identifier} PATH/NTLDR,

Last input: Bcdedit/displayorder {your Linux identifier}/addlast.

Save exit, and after reboot you will see Windows 7 and Ubuntu Linux dual boot menu.

Programme c:

Enter bcdedit/? To view related Help information

1. Configure a new boot entry using bcdedit

>bcdedit/create/d "Linux"/application OSLoader

#建立新项, which is to create a new boot entry and return a GUID value after success

The format is as follows: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

>bcdedit/set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} drive Partition=c:

#设置新引导项文件所在分区

>bcdedit/set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path Linux.lnx #设置启动项文件在分区中

Relative path, note that the "" before the file is required, indicating that it is located under the root directory of the partition. If you assume that the file is in C:windows

, it should be changed to windowslinux. In addition, there is a space behind the path

>bcdedit/displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}/addlast

#设置引导项顺序, AddLast is added to the end of the boot list, or AddFirst, to the top. So far

The operation to add a new boot entry has succeeded, but it is not yet bootable.

>bcdedit/default {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

#此命令可选, if you want to set this as the default boot entry, execute it

The following is the direct execution of Bcdedit to see the configuration.

***************************************************

If Windows boots properly, you can clean the MBR records.

Steps:

Win9x Boot Disk startup (or with other disk management tools)

Code:

Fdisk/mbr

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.