Windows boot linux boot Linux (Windows 7 + Ubuntu) to linux (Ubuntu) sudo dd if =/dev/sda of =/media/linux. lnx bs = 512 count = 1 www.2cto.com, cp it to your win root directory, for example, C, it is best to change its attribute to "+ s + h + r", that is, "system, read-only, hidden"> attrib + s + r + h c: \ linux. lnx. And I suggest you back up this file multiple times! Then restart Windows to enter and confirm that your system root has linux. if the lnx file www.2cto.com Is win 2000/XP, directly modify the boot. iniboot. modify ini in win, because the encoding is different! Except for hero. It may be hidden and read-only, and then added later. If there is code: time = 0, change 0! Such as time = 5 code: C:/linux. lnx = "linux" save! Then you can restart win to see the effect. For Vista/Windows 7, because a new boot mode is enabled, it is a bcdedit Bootstrap action. After the boot file is copied, you need to make the following changes ********************************** * solution: bcdedit/create {ntldr}/d "Ubuntu Linux" bcdedit/set {ntldr} device partition = C: bcdedit/set {ntldr} path/ntldr bcdedit/displayorder {ntldr}/addlast solution B: (Be sure to modify the result returned by the First Command ): bcdedit/copy {ntldr}/d "Ubuntu Linux"; the system will prompt "This item has been successfully copied to {8de1dad8-d399-11db-b639-000aeb2dc0ba}", where {region} is "U" The identifier of the startup of buntu Linux. Different operating systems may be different. Enter bcdedit/set {your Linux identifier} device partition = C:, and the system will prompt "Operation completed successfully ". Enter bcdedit/set {your Linux identifier} path/ntldr, and enter bcdedit/displayorder {your Linux identifier}/addlast. Save and exit. After restart, you will see the dual-boot menu for Windows 7 and Ubuntu Linux. Solution C: Enter bcdedit /? View help information 1. use bcdedit to configure the new boot item> bcdedit/create/d "Linux"/application osloader # create a new boot item, that is, create a new boot item. After successful creation, a guid value is returned in the following format: {xxxxxxxx-xxxx-xxxxxxxxxxxx}> bcdedit/set {xxxxxxxx-xxxx-xxxxxxxxxxxx} drive partition = C: # set the partition where the new boot item file is located> bcdedit/set {xxxxxxxx-xxxx-xxxxxxxxxx} path \ linux. lnx # sets the relative path of the startup Item file in the partition. Note that "\" is required before the file, indicating that it is under the root directory of the partition. If the file is in c: \ windows \, it should be changed to \ windows \ linux. In addition, there is a space behind path> bcdedit/displayorder {xxxxxxxx-xxxx-xxxxxxxxxxxx}/addlast # Set the boot item sequence, to add addlast to the end of the boot item list, you can also change it to addfirst to add it to the beginning. So far, the operation to add a new boot item has been successful, but it cannot be started yet. Why ??> Bcdedit/default {xxxxxxxx-xxxx-xxxxxxxxxxxx} # This command is optional. If you want to set this item as the default boot item, run bcdedit to check the configuration. Then, you can run ************************** * *********************** If Windows boot is normal, you can clear MBR records. Step: Start the boot disk of win9x (or use another disk management tool). Code: fdisk/mbr does not enable grub boot, and there is only Windows boot mode. Use Windows to boot Linux (Windows 7 + Ubuntu) to boot to linux (Ubuntu) sudo dd if =/dev/sda of =/media/linux. lnx bs = 512 count = 1 cp it to your win root directory, for example, C:/. for insurance purposes, it is best to change its attribute to "+ s + h + r ", that is, "system, read-only, hide"> attrib + s + r + h c: \ linux. lnx. And I suggest you back up this file multiple times! Then restart Windows to enter and confirm that your system root has linux. if the lnx file is win 2000/XP, directly modify the boot. iniboot. modify ini in win, because the encoding is different! Except for hero. It may be hidden and read-only, and then added later. If there is code: time = 0, change 0! Such as time = 5 code: C:/linux. lnx = "linux" save! Then you can restart win to see the effect. For Vista/Windows 7, because a new boot mode is enabled, it is a bcdedit Bootstrap action. After the boot file is copied, you need to make the following changes ********************************** * solution: bcdedit/create {ntldr}/d "Ubuntu Linux" bcdedit/set {ntldr} device partition = C: bcdedit/set {ntldr} path/ntldr bcdedit/displayorder {ntldr}/addlast solution B: (Be sure to modify the result returned by the First Command ): bcdedit/copy {ntldr}/d "Ubuntu Linux"; the system will prompt "This item has been successfully copied to {8de1dad8-d399-11db-b639-000aeb2dc0ba}", where {region} is "U" The identifier of the startup of buntu Linux. Different operating systems may be different. Enter bcdedit/set {your Linux identifier} device partition = C:, and the system will prompt "Operation completed successfully ". Enter bcdedit/set {your Linux identifier} path/ntldr, and enter bcdedit/displayorder {your Linux identifier}/addlast. Save and exit. After restart, you will see the dual-boot menu for Windows 7 and Ubuntu Linux. Solution C: Enter bcdedit /? View help information 1. use bcdedit to configure the new boot item> bcdedit/create/d "Linux"/application osloader # create a new boot item, that is, create a new boot item. After successful creation, a guid value is returned in the following format: {xxxxxxxx-xxxx-xxxxxxxxxxxx}> bcdedit/set {xxxxxxxx-xxxx-xxxxxxxxxxxx} drive partition = C: # set the partition where the new boot item file is located> bcdedit/set {xxxxxxxx-xxxx-xxxxxxxxxx} path \ linux. lnx # sets the relative path of the startup Item file in the partition. Note that "\" is required before the file, indicating that it is under the root directory of the partition. If the file is in c: \ windows \, it should be changed to \ windows \ linux. In addition, there is a space behind path> bcdedit/displayorder {xxxxxxxx-xxxx-xxxxxxxxxxxx}/addlast # Set the boot item sequence, to add addlast to the end of the boot item list, you can also change it to addfirst to add it to the beginning. So far, the operation to add a new boot item has been successful, but it cannot be started yet. Why ??> Bcdedit/default {xxxxxxxx-xxxx-xxxxxxxxxxxx} # This command is optional. If you want to set this item as the default boot item, run bcdedit to check the configuration. Then, you can run ************************** * *********************** If Windows boot is normal, you can clear MBR records. Step: Start the boot disk of win9x (or use another disk management tool) code: fdisk/mbr