Use of the Vista pilot command bcdedit ----- guide other systems
Source: Internet
Author: User
Use of the Vista pilot command bcdedit-guide other systems-general Linux technology-Linux technology and application information. The following is a detailed description. Use bcdedit to guide Linux
0. Overview
In the xp era, you can modify the hidden System File boot. ini in the system partition (c: \) to guide other systems.
In the vista era, a new guiding method is used, so the configuration is different.
First: win + R open the command window, execute cmd, open the command prompt
Input bcdedit /? View related help information
1. Use bcdedit to configure the new boot item
> Bcdedit/create/d "Linux"/application osloader
# Create a new item, that is, create a new boot item. A guid value is returned after the new boot item is created.
# Set the partition where the new boot item file is located
> Bcdedit/set {xxxxxxxx-xxxx-xxxxxxxxxxxx} path \ linux. bin # Set 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 the path.
# Set the boot item sequence. addlast can also be changed to addfirst to add it to the beginning of the boot item list. 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 it.
Run bcdedit to check the configuration.
2. The Boot item is configured, but it cannot be guided. Why?
Because the boot item file does not exist.
3. boot to the linux rescue mode with a CD
For fedora, the system will be mounted under/mnt/sysimage/, and then execute the command
# Dd if =/mnt/sysimage/dev/sda5 of =/mnt/sysimage/dev/sdb/linux. bin bs = 512 count = 1
In the command, assume that grub is installed in the first 512 bytes of the sda5 partition, and output linux. bin to the device sdb.
Then restart windows vista and. bin copied to c: \. for insurance purposes, it is best to change its attribute to "+ s + h + r", that is, "system, read-only, hidden"
> Attrib + s + r + h c: \ linux. bin
4. The entire process ends here. You can restart and try again.
5. Supplement: You can also export linux. bin and configure bcdedit to save trouble.
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