- Changing the Friendly Name of a Boot Entry
- Using BCDEdit
- Using Bootcfg
- Editing the Boot.ini File
- Изменение файла Boot.ini вручную в среде Windows Server 2003
- Аннотация
- Изменение параметров папки
- Сохранение резервной копии Boot.ini файла
- Пример Boot.ini файла
- Редактирование Boot.ini файла
- Удаление операционной системы из меню
- Изменение порядка меню операционной системы
- Изменение операционной системы по умолчанию
- Изменение времени простоя
- BCDBoot Command-Line Options
- File Locations
- Supported operating systems
- How It Works
- Command-Line Options
- Repair the system partition
- Set up or repair the boot menu on a dual-boot PC
- Troubleshooting
Changing the Friendly Name of a Boot Entry
In Windows, the items that appear in the Windows Boot Manager are the descriptions of each boot entry.
Typically, after you copy a boot entry, you change the friendly name of the newly created entry to distinguish it from the original.
You can also change the friendly name to make it easier to recognize customized boot entries. A string that precisely describes the entry can save significant time and effort.
For example, the following friendly name strings add little value.
However, more precise strings, such as the ones that follow, make the boot choice much easier.
NoteВ В When a boot entry is configured for debugging (/debug /debugport) or for Emergency Management Services (EMS) (/redirect) on an x86- or an x64-based system, the boot loader appends a bracketed phrase ([debugger enabled] or [ems enabled]) to the friendly name that appears in the boot menu. However, the boot loader omits the bracketed phrase from the boot menu when the friendly name and the bracketed phrase together exceed 70 characters. To restore the bracketed phrase, shorten the friendly name.
To change the friendly name of a boot entry in a Boot.ini file, you can use Bootcfg or edit the Boot.ini file in Notepad. On systems that store boot options in EFI NVRAM, use Bootcfg.
To change the friendly name of a boot entry for Windows, use BCDEdit.
Administrative privileges are required to update the boot configuration. Changing some boot entry options could render your computer inoperable.
Using BCDEdit
To change the description of a boot entry as it appears on the boot menu, you can use the /set IDdescription option. The command uses the following syntax. The ID is the GUID that is associated with the boot entry (or one of the well-known identifiers, for example,
If you are using Windows PowerShell, you must use quotes around the boot entry identifier, for example: «<49916baf-0e08-11db-9af4-000bdbd316a0>« or «
To change the description of the boot entry that corresponds to the operating system that is currently running, use the following example:
You can also change the description when you copy an existing boot entry using the /d option.
Using Bootcfg
With Bootcfg, you can change the friendly name of a boot entry only while copying the entry. Use the Bootcfg /copy switch to copy the entry and change its friendly name.
The following Bootcfg command copies the first boot entry to create a new entry. The /ID switch specifies the line number of the entry being copied. The /d (description) switch specifies the friendly name of the newly-created entry.
For complete instructions for using Bootcfg, see Help and Support Services. For examples, see Using Boot Parameters.
Editing the Boot.ini File
In the Boot.ini file, the friendly name of a boot entry appears in the boot entry in quotation marks.
For example, the following sample from a Boot.ini file has duplicate boot entries for Microsoft Windows 10 Professional.
To change the friendly name of a boot entry, type over the quoted string in the boot entry. In the following example, because the first entry will be customized for debugging, the name is changed to Windows 10 Debug.
Изменение файла Boot.ini вручную в среде Windows Server 2003
В этой статье описывается изменение файла Boot.ini вручную в среде Microsoft Windows Server 2003.
Исходная версия продукта: Windows Server 2003
Исходный номер КБ: 323427
Аннотация
В файле Ntldr используются сведения в Boot.ini для отображения экрана загрузчика загрузки, на котором выбрана операционная система. Этот экран основан на данных в Boot.ini файла. Если не выбрать запись, прежде чем счетчик достигнет 0 (ноль), Ntldr загрузит операционную систему, указанную параметром по умолчанию в Boot.ini файле.
Установка Windows Server 2003 помещает Boot.ini в корневую папку системного раздела.
Перед изменением Boot.ini измените параметры папки, чтобы можно было просматривать скрытые файлы, а затем Boot.ini файл.
Вы также можете изменить файл Boot.ini с помощью system Configuration Utility (Msconfig.exe). Чтобы запустить совластику system Configuration Utility, нажмите кнопку «Начните», выберите «Выполнить», введите msconfig в поле «Открыть» и нажмите кнопку «ОК».
Изменение параметров папки
- Щелкните правой кнопкой мыши «Начните» и выберите «Просмотр».
- В меню «Инструменты»щелкните «Параметры папки» и выберите пункт «Просмотреть».
- В области «Дополнительные параметры» щелкните «Показать скрытые файлы и папки», щелкните, чтобы очистить окно «Скрыть защищенные файлы операционной системы (рекомендуется»), нажмите кнопку «Да» и нажмите кнопку «ОК».
- Найдите системный раздел, найдите и щелкните правой кнопкой мыши файл Boot.ini и выберите «Свойства».
- Щелкните, чтобы очистить поле только для чтения, а затем нажмите кнопку «ОК».
Сохранение резервной копии Boot.ini файла
- Щелкните правой кнопкой мыши «Начните» и выберите «Просмотр».
- Найдите системный раздел, найдите и щелкните правой кнопкой мыши файл Boot.ini и выберите «Копировать».
- Найдите и щелкните папку, в которой вы хотите Boot.ini файл, а затем щелкните «Вложить» в меню «Правка».
Пример Boot.ini файла
Ниже приводится пример файла Boot.ini по умолчанию с компьютера на основе Windows Server 2003:
Ниже приводится пример того же файла Boot.ini после добавления другого раздела под названием Microsoft Windows XP Professional.
Редактирование Boot.ini файла
- Нажмите кнопку«Начните», выберите «Программы»,«Найдите «Дополнительные», а затем нажмите кнопку «Блокнот».
- В меню «Файл» нажмите кнопку «Открыть».
- В поле «Поиск в» щелкните системный раздел, в поле «Файлы типа» выберите «Все файлы», найдите и щелкните файл Boot.ini и нажмите кнопку «Открыть».
- Внести нужные изменения в файл Boot.ini и нажмите кнопку «Сохранить» в меню «Файл».
Примеры изменений, которые можно внести, описаны в следующих разделах этой статьи.
Удаление операционной системы из меню
Чтобы удалить операционную систему из меню, выполните следующие действия.
В Блокноте выберите строку, содержаную сведения об операционной системе, которую необходимо удалить, и нажмите кнопку «Удалить» в меню «Правка». Например, выберите следующую строку:
multi(0)disk(1)rdisk(0)partition(2)\WINDOWS=»Microsoft Windows XP Professional» /fastdetect
В меню Файл выберите пункт Сохранить.
Изменение порядка меню операционной системы
Чтобы изменить порядок меню операционной системы, выполните следующие действия.
- В Блокноте выберите строку, которую нужно переместить, щелкните «Копировать» в меню «Правка» и нажмите кнопку DELETE.
- Щелкните строку, в которой нужно вставить строку, а затем выберите «Вставить» в меню «Правка».
- Повторите шаг 1 и шаг 2 для каждой строки, которую нужно переместить, и нажмите кнопку «Сохранить» в меню «Файл».
Изменение операционной системы по умолчанию
Операционная система по умолчанию — это операционная система, которая запущена, если выбор не был выполнен до возникновения времени. (Время простоя — это время в секундах, в течение которого можно выбрать операционную систему в меню перед загрузкой операционной системы по умолчанию.) Чтобы изменить операционную систему по умолчанию, выполните следующие действия.
В Блокноте измените следующую строку, чтобы изменить операционную систему по умолчанию:
Например, чтобы изменить операционную систему по умолчанию с Windows Server 2003 на Windows XP Professional, измените следующее:
В меню Файл выберите пункт Сохранить.
Изменение времени простоя
Чтобы изменить значение времени действия, выполните следующие действия.
В Блокноте измените следующую строку, чтобы изменить время простоя (где значение составляет 30 секунд):
В меню Файл выберите пункт Сохранить.
BCDBoot Command-Line Options
BCDBoot is a command-line tool used to configure the boot files on a PC or device to run the Windows operating system. You can use the tool in the following scenarios:
- Add boot files to a PC after applying a new Windows image. In a typical image-based Windows deployment, use BCDBoot to set up the firmware and system partition to boot to your image. To learn more, see Capture and Apply Windows, System, and Recovery Partitions.
- Set up the PC to boot to a virtual hard disk (VHD) file that includes a Windows image. To learn more, see Boot to VHD (Native Boot): Add a Virtual Hard Disk to the Boot Menu.
- Repair the system partition. If the system partition has been corrupted, you can use BCDBoot to recreate the system partition files by using new copies of these files from the Windows partition.
- Set up or repair the boot menu on a dual-boot PC. If you’ve installed more than one copy of Windows on a PC, you can use BCDBoot to add or repair the boot menu.
File Locations
In Windows and Windows Preinstallation Environment (WinPE)
In the Windows Assessment and Deployment Kit (WindowsВ ADK):
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\BCDBoot\BCDBoot.exe
Supported operating systems
BCDBoot can copy boot environment files from images of WindowsВ 10, Windows 8.1, WindowsВ 8, WindowsВ 7, WindowsВ Vista, Windows ServerВ 2016 Technical Preview, WindowsВ Server 2012 R2, Windows ServerВ 2012, Windows ServerВ 2008В R2, or WindowsВ ServerВ 2008.
How It Works
To configure the system partition, BCDBoot copies a small set of boot-environment files from the installed Windows image to the system partition.
BCDBoot can create a Boot Configuration Data (BCD) store on the system partition using the latest version of the Windows files:
- BCDBoot creates a new BCD store and initialize the BCD boot-environment files on the system partition, including the Windows Boot Manager, using the %WINDIR%\System32\Config\BCD-Template file.
- New in WindowsВ 10: During an upgrade, BCDBoot preserves any other existing boot entries, such as debugsettings, when creating the new store. Use the /c option to ignore the old settings and start fresh with a new BCD store.
- If there is already a boot entry for this Windows partition, by default, BCDBoot erases the old boot entry and its values. Use the /m option to retain the values from an existing boot entry when you update the system files.
- By default, BCDBoot moves the boot entry for the selected Windows partition to the top of the Windows Boot Manager boot order. Use the /d option to preserve the existing boot order.
On UEFI PCs, BCDBoot can update the firmware entries in the device’s NVRAM:
- BCDBoot adds a firmware entry in the NVRAM to point to the Windows Boot Manager. By default, this entry is placed as the first item in the boot list. Use the /p option to preserve the existing UEFI boot order. Use /addlast to add it to the bottom of the boot order list.
Command-Line Options
The following command-line options are available for BCDBoot.exe.
BCDBOOT [/l ] [/s [/f ]] [/v] [/m [<OS Loader GUID>]] [/addlast or /p] [/d] [/c]
Option | Description |
---|---|