Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Операционные системы » Microsoft Windows » BCDEdit - Программа для настройки Boot Manager-а Висты Vista

Модерирует : KLASS, IFkO

 Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

Открыть новую тему     Написать ответ в эту тему

Denn29



Platinum Member
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору
This document is from BloodMaX's site - Настройка Boot Manager в Vista 5259,  
saved at 2006-12-14 16:46 GMT  
 
 
Author : BloodMaX / Date : 2005-12-13 14:28
 
Когда вы буду пробовать этот способ, вы должны сменить в командах буквы разделов  
и индетификационные номера на свои. Здесь только примеры!  
 
 
Изменение загрузчика Windows Vista
Допустим, вы установили несколько ОС на свой компьютер, и среди них есть  
несколько Vista, и несколько других ОС. Тогда при загрузки в новом загрузчике  
Windows Boot Manager вы увидите примерно следующее:
 
 
Код:
Legacy (pre-Longhorn) Microsoft Windows Operating System
Microsoft Windows
Microsoft Windows
Microsoft Windows
Microsoft Windows
 
 
Первый пункт открывает старый NTLDR, в котором будут старые ОС.
Но разные Microsoft Windows это новые версии Vista, и узнать какая есть какая не  
понять. Нам нужно добиться следующего:
 
 
Код:
Legacy (pre-VISTA) XP, 2000, 2003, WIN98x
VISTA 5259 TAP
VISTA 5231 IDX
WINDOWS SERVER 2003
 
 
Попробуем добиться этого посредством встроенных в ОС функций.
 
Теория
Старые ОС, такие как ХР, 2000, 2003 и 98, загружаются через NTLDR, который берет  
за источник файл boot.ini. NTLDR так же носит имя NT Loader или NT Bootloader.
В 5259 немного другая иерархия. За основной загрузчик берется новый бут-менеджер  
BOOTMANAGER, а NTLDR используется вторым.
 
Имеет две программы, которые способны нам помочь:
MSCONFIG (который не видит Vista)
BCDEDIT.EXE
 
BCDEDTI.EXE
Войдите в 5259, идите в Start > Run (Run можно использовать либо через меню  
поиска, либо в настройках таскбара идти в свойства > меню Пуск > Настройка меню  
> отметьте галочкой Run и нажмите ОК) и наберите command и нажмите ОК.
 
Да, это похоже на MS-DOS. И называется он Windows DOS.
Тут вы должны набрать: bcedit
и прекрасная программа запустится и вы увидите примерно следующее:
 
 
Код:
Microsoft® Windows DOS
©Copyright Microsoft Corp 1990-2001.
 
D:USERSADMINI~1>bcdedit
 
Windows Boot Manager
--------------------
Identifier: {bootmgr}
Type: 10100002
Device: partition=C:
Description: Windows Boot Manager
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Default: {871d699a-68d1-11da-9f30-eb66f9279051}
Display order: {legacy}
{871d699a-68d1-11da-9f30-eb66f9279051}
{d3e15d7c-66fb-11da-83c4-f23116dca051}
{77e994d8-64b9-11da-afd6-cd1e42667751}
{748c9ce4-6497-11da-b587-ba41a6a3f856}
{6bde53aa-630a-11da-b591-bb4bd04c9f19}
{d9b222a6-5f5b-11da-8e9c-87c5457d571e}
{eafe9a2c-558c-11da-86bb-9237c2e1a919}
{3ffee100-4b31-11da-b300-e812ef50ad19}
{eda3906c-438e-11da-b934-f4ecbe0a3419}
{4f964faa-3d7a-11da-bb88-b7df6f4d4219}
Timeout: 3
 
Windows Legacy OS Loader
------------------------
Identifier: {legacy}
Type: 10300006
Device: partition=C:
Path: ntldr
Description: Legacy (pre-Longhorn) Microsoft Windows Operating System
 
 
Windows Boot Loader
-------------------
Identifier: {871d699a-68d1-11da-9f30-eb66f9279051}
Type: 10200003
Device: partition=H:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: en-US
Inherit options: {emssettings}
{dbgsettings}
{5189b25c-5558-4bf2-bca4-289b11bd29e2}
Windows device: partition=H:
Windows root: Windows
No Execute policy: OptIn
 
Windows Boot Loader
-------------------
Identifier: {d3e15d7c-66fb-11da-83c4-f23116dca051}
Type: 10200003
Device: partition=H:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: en-US
Inherit options: {emssettings}
{dbgsettings}
{5189b25c-5558-4bf2-bca4-289b11bd29e2}
Windows device: partition=H:
Windows root: Windows
No Execute policy: OptIn
 
Windows Boot Loader
-------------------
Identifier: {77e994d8-64b9-11da-afd6-cd1e42667751}
Type: 10200003
Device: partition=H:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: en-US
Inherit options: {emssettings}
{dbgsettings}
{5189b25c-5558-4bf2-bca4-289b11bd29e2}
Windows device: partition=H:
Windows root: Windows
No Execute policy: OptIn
 
Windows Boot Loader
-------------------
Identifier: {748c9ce4-6497-11da-b587-ba41a6a3f856}
Type: 10200003
Device: partition=D:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=D:
Windows root: Windows
No Execute policy: OptIn
Detect hal: Yes
 
Windows Boot Loader
-------------------
Identifier: {6bde53aa-630a-11da-b591-bb4bd04c9f19}
Type: 10200003
Device: partition=J:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=J:
Windows root: Windows
No Execute policy: OptIn
Detect hal: Yes
 
Windows Boot Loader
-------------------
Identifier: {d9b222a6-5f5b-11da-8e9c-87c5457d571e}
Type: 10200003
Device: partition=J:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=J:
Windows root: Windows
No Execute policy: OptIn
Detect hal: Yes
 
Windows Boot Loader
-------------------
Identifier: {eafe9a2c-558c-11da-86bb-9237c2e1a919}
Type: 10200003
Device: partition=J:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=J:
Windows root: Windows
No Execute policy: OptIn
Detect hal: Yes
 
Windows Boot Loader
-------------------
Identifier: {3ffee100-4b31-11da-b300-e812ef50ad19}
Type: 10200003
Device: partition=J:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=J:
Windows root: Windows
No Execute policy: OptIn
Detect hal: Yes
 
Windows Boot Loader
-------------------
Identifier: {eda3906c-438e-11da-b934-f4ecbe0a3419}
Type: 10200003
Device: partition=J:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=J:
Windows root: Windows
No Execute policy: OptIn
Detect hal: Yes
 
Windows Boot Loader
-------------------
Identifier: {4f964faa-3d7a-11da-bb88-b7df6f4d4219}
Type: 10200003
Device: partition=J:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Windows device: partition=J:
Windows root: Windows
No Execute policy: OptIn
Detect hal: Yes
 
D:USERSADMINI~1>
 
 
Извините за длину, но дальше вы увидите целесообразность привести здесь весь  
этот текст.
 
Заранее бэкап!
Для начала сохраним текущие настройки.
Шаг 1: Перейдите в пользователя Administrator.
Шаг 2: Запустите команду bcedit -?
Это покажет вам справку по bcedit.exe
 
 
Код:
H:USERSADMINI~1>bcdedit -?
 
BCDEDIT - Boot Configuration Data Store Editor
 
The Bcdedit.exe command-line tool modifies the boot configuration data store.
The boot configuration data store contains boot configuration parameters and
controls how the operating system is booted. These parameters were previously
in the Boot.ini file (in BIOS-based operating systems) or in the nonvolatile
RAM entries (in Extensible Firmware Interface-based operating systems). You can
use Bcdedit.exe to add, delete, edit, and append entries in the boot
configuration data store.
 
For detailed command and option information, type bdedit.exe /? . For
example, type "bcdedit.exe /? /createstore" (without quotes).
 
For command and option information, please run "bcdedit /? " where
is one of the help topics listed below.
 
/bootdebug Enables or disables boot debugging for a boot application.
 
/bootems Enables or disables Emergency Management Services for a boot
application.
 
/bootsequence Sets the one-time boot sequence for the boot manager.
 
/copy Makes copies of entries in the store.
 
/create Creates new entries in the store.
 
/createstore Creates a new and empty boot configuration data store.
 
/dbgsettings Sets the global debugger parameters.
 
/debug Enables or disables kernel debugging for an operating system
entry.
 
/default Sets the default entry that the boot manager will use.
 
/delete Deletes entries from the store.
 
/deletevalue Deletes entry options from the store.
 
/displayorder Sets the order in which the boot manager displays the multiboot
menu.
 
/ems Enables or disables Emergency Management Services for an
operating system entry.
 
/emssettings Sets the global Emergency Management Services parameters.
 
/enum Lists entries in the store.
 
/export Exports then contents of the system store to a file. This file
can be used later to restore the state of the system store.
 
formats Displays the formats of the data required by the /set command.
 
id Displays the identifier parameter options that can be used
in several Bcdedit commands such as /create and /copy.
 
/import Restores the state of the system store using a backup file
created with the /export command.
 
/set Sets entry option values in the store.
 
/store Specifies the boot configuration data store to use.
 
/timeout Sets the boot manager time-out value.
 
/types Displays the data types required by the /set and /deletevalue
commands.
 
/v Displays all entry identifiers in full, rather than using
shorthand notation for the well-known identifiers.
 
H:USERSADMINI~1>
 
 
Шаг 3: Выполните команду bcdedit -? Export
Вы увидите следующее:
 
 
Код:
H:USERSADMINI~1>bcdedit -? export
 
bcdedit /export  
 
This command exports the contents of the system store into a file. This file
can be used later to restore the state of the system store. This command is
only valid for the system store.
 
The filename to be used as the desination for the export.
If the filename contains spaces, it must be enclosed in
double quotes (").
 
Example:
 
The following example will export the system store to the specified file:
 
bcdedit /export "C:DataBCD Backup"
 
H:USERSADMINI~1>
 
 
Шаг 4: Создайте новую папку, скажем  
Код:
C: Data
.
Шаг 5: Выполните команду  
 
Код:
bcdedit /export "C:DataBCD Backup"
 
Вы сохранили текущие настройки. Затем вы сможете сохранить и новые, скажем такой  
командой:
bcdedit /export "C:DataBCD My New Boot Entries"
 
Удаление двойных записей в WBM
За следующий шаг мы удалим двойные записи в загрузчике. Внимание! Всегда  
используйте ВАШИ индетификационные номера, мои приводятся только для пример!
 
Шаг 6: Найдите двойные записи, в которых есть повторяется скажем такая запись:  
Device: partition=H: (у вас много дисков, H приводится для примера).
Шаг 7: Наберите и выполните команду bcdedit -? Delete
Вы увидите примерно следующее:
 
 
Код:
H:USERSADMINI~1>bcdedit -? delete
 
bcdedit -delete [-f]
 
This command will delete an entry from the boot configuration data store.
 
This specifies the identifier of the boot entry to be
deleted.
 
[-f] bcdedit will not delete any entries that have a well known
identifier. To force such a delete operation, specify this
flag.
 
Examples:
 
The following command will delete the specified OS entry from the store:
 
bcdedit -delete {cbd971bf-b7b8-4885-951a-fa03044f5d71}
 
The following command will delete the legacy OS loader entry from the store:
 
bcdedit -delete {legacy} -f
 
H:USERSADMINI~1>bcdedit -delete {4f964faa-3d7a-11da-bb88-b7df6f4d4219}
The operation completed successfully.
 
H:USERSADMINI~1>
 
 
Обратимся к моему примеру.
 
Windows Boot Loader
-------------------
Identifier: {871d699a-68d1-11da-9f30-eb66f9279051}
Type: 10200003
Device: partition=H:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: en-US
Inherit options: {emssettings}
{dbgsettings}
{5189b25c-5558-4bf2-bca4-289b11bd29e2}
Windows device: partition=H:
Windows root: Windows
No Execute policy: OptIn
 
Windows Boot Loader
-------------------
Identifier: {d3e15d7c-66fb-11da-83c4-f23116dca051}
Type: 10200003
Device: partition=H:
Path: Windowssystem32winload.exe
Description: Microsoft Windows
Locale: en-US
Inherit options: {emssettings}
{dbgsettings}
{5189b25c-5558-4bf2-bca4-289b11bd29e2}
Windows device: partition=H:
Windows root: Windows
No Execute policy: OptIn
 
Я хочу удалить второй (жирный) и ненужный мне пункт.
 
Шаг 8: Наберите и выполните команду bcdedit -delete {d3e15d7c-66fb-11da-83c4-f23116dca051}
И эта строка исчезла! Еще раз напомню, используйте ВАШИ номера, мой только для  
примера!
Теперь вы можете удалить тем же принципом все другие повторяющиеся записи,  
оставив по одному экземпляра с каждого раздела.
 
Переименование записей
Следующий шаг это переименование записей.
Самый простой шаг, это запуститься в Vista 5259 TAP, набрать и запустить  
следующее:
 
Шаг 9: Запустите H:USERSADMINI~1>bcdedit -set DESCRIPTION "VISTA 5259 TAP"  
Операция закончится успешно. Проверьте запустив H:USERSADMINI~1>bcdedit.
И вы увидите, как Vista 5259 в котором вы сейчас находитесь переименовался с  
Microsoft Windows в Vista 5259 Tap!
ВЫ можете загружаться в другие Vista, как 5231 или др и делать тоже самое для  
переименования их (просто в команде из шага 9 меняйте название).
 
Но если вы воспользуетесь индетификационными номерами ОС, вы можете  
переименовывать их намного проще. Скажем так:
Шаг 10: Запустите H:USERSADMINI~1>bcdedit -set {748c9ce4-6497-11da-b587-ba41a6a3f856}  
DESCRIPTION "VISTA 5231 IDX"
 
Из моих 6 записей о W2k3 я удалил 5 и переименовал последний:
H:USERSADMINI~1>bcdedit -set {6bde53aa-630a-11da-b591-bb4bd04c9f19} DESCRIPTION  
"WINDOWS SERVER 2003"
 
Автоматический запуск других ОС
Теперь решим еще одну проблему. Вы хотите автоматически загружаться в, скажем,  
ваш ХР несмотря на установленную Vista? MSCONFIG вам боле не поможет, но  
наоборот BCEDIT!
 
Шаг 11: Наберите и выполните команду bcdedit ? default
 
У вас появится:
 
Код:
H:USERSADMINI~1>bcdedit -? default
 
This command sets the default entry that the boot manager will use when the
time-out expires.
 
bcdedit /default  
 
Specifies the identifier of the boot entry to be used as the
default when the time-out expires.
 
Examples:
 
The following command sets the specified entry as the default boot manager
entry:
 
bcdedit /default {cbd971bf-b7b8-4885-951a-fa03044f5d71}
 
The following command sets the legacy Windows loader (Ntldr) as the default
entry:
 
bcdedit /default {legacy}
 
H:USERSADMINI~1>
 
 
Шаг 12: Наберите bcdedit /default {legacy}
 
И у вас появится следующее:
 
 
Код:
Microsoft® Windows DOS
©Copyright Microsoft Corp 1990-2001.
 
H:USERSADMINI~1>bcdedit
 
Windows Boot Manager
--------------------
Identifier: {bootmgr}
Type: 10100002
Device: partition=C:
Description: Windows Boot Manager
Locale: ENG-US
Inherit options: {emssettings}
{dbgsettings}
Default: {legacy}
Display order: {legacy}
{current}
{d3e15d7c-66fb-11da-83c4-f23116dca051}
{77e994d8-64b9-11da-afd6-cd1e42667751}
{748c9ce4-6497-11da-b587-ba41a6a3f856}
{6bde53aa-630a-11da-b591-bb4bd04c9f19}
{d9b222a6-5f5b-11da-8e9c-87c5457d571e}
{eafe9a2c-558c-11da-86bb-9237c2e1a919}
{3ffee100-4b31-11da-b300-e812ef50ad19}
{eda3906c-438e-11da-b934-f4ecbe0a3419}
{4f964faa-3d7a-11da-bb88-b7df6f4d4219}
Timeout: 3
 
 
Так оно и есть!
 
Смена Legacy
Это следующий и последний шаг в нашей настройки бут-менеджера.
Мы должны переименовать:
Legacy (pre-Longhorn) Microsoft Windows Operating System
в нечто похожее:
Legacy (pre-VISTA) XP, 2000, 2003 , WIN98x
 
Шаг 13: Наберите и выполните bcdedit -set {legacy} DESCRIPTION "Legacy (pre-VISTA)  
XP, 2000, 2003, WIN98x"
 
Посмотрим как это сработало:
 
 
Windows Legacy OS Loader
------------------------
Identifier: {legacy}
Type: 10300006
Device: partition=C:
Path: ntldr
Description: Legacy (pre-VISTA) XP, 2000, 2003, WIN98x
 
Замечательно!
Теперь при загрузке мы будем получать стандартный NTDLR (то есть boot.ini),  
который можно настраивать дефолтными способами.
 
Замечательная программа bcedit.exe, не правда ли?

Всего записей: 20957 | Зарегистр. 27-12-2005 | Отправлено: 15:43 05-03-2007 | Исправлено: Denn29, 15:44 05-03-2007
Открыть новую тему     Написать ответ в эту тему

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Операционные системы » Microsoft Windows » BCDEdit - Программа для настройки Boot Manager-а Висты Vista


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru