为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

win7引导修复(Win7 boot repair)

2017-10-24 19页 doc 58KB 137阅读

用户头像

is_180829

暂无简介

举报
win7引导修复(Win7 boot repair)win7引导修复(Win7 boot repair) win7引导修复(Win7 boot repair) Windows7 boot repair I. overview of the Windows7 boot (a) terminology description Bootmgr (Windows, Boot, Manager):Windows Startup Manager BCD (Boot, Configuration, Data): start configuration data storage ...
win7引导修复(Win7 boot repair)
win7引导修复(Win7 boot repair) win7引导修复(Win7 boot repair) Windows7 boot repair I. overview of the Windows7 boot (a) terminology description Bootmgr (Windows, Boot, Manager):Windows Startup Manager BCD (Boot, Configuration, Data): start configuration data storage (two) dual partition Windows7 and single partition Windows7 1, double partition Windows7:Win7 after the installation of default occupied two primary partitions, a C (Windows folder where the disc, the first partition, the hard disk is not active) and a hidden partition (boot file where the hard disk, second partitions, real active partition). 2, Windows7: a single partition can be two Win7 partitions installed by default the merge method is: be made one, the two partition file merge to C (i.e. the first hard disk partition); the C set active partition; the implementation of the "bootsect /nt60 c:" to write the C BOOTMGR compatible boot code; the computer starts with Windows7's installation CD into the CD-ROM, select "repair computer" CD "system recovery options" began to work, and wait that completed, restart OK. (three) the boot process of Windows7 1, BIOS, according to the set of storage medium order polling to the hard disk, first looking for the hard disk MBR (master boot record) and DPT (partition table), and then in accordance with the MBR and DPT information to find the system partition. 2, there are two important information in the hard disk MBR (boot code): one is the target partition, and the other is the system type". The bootsect with the /MBR parameter writes both the active tag and the system type to the MBR". 3, DPT is like a map, MBR in the "target partition" is the destination names, general partitioning tools will be the name as "active", but some software will carry out special adaptations of the names, such as a wizard will rewrite the names for their "backup / restore partition". This "backup / recovery partition is not active. 4, the active partition PBR (partition boot record, also known as OBR or DBR) also has an important message (boot code), that is, the boot file name". For WinXP, the boot file name is ntldr". For Win7, the boot file name is bootmgr". According to the BIOS MBR and DPT to find the active partition, press PBR "boot file name" for NTLDR in the root directory (BOOTMGR) file, if found will control to NTLDR (BOOTMGR), if they can not find that NTLDR (BOOTMGR) lost end guide. Bootsect with different parameters can write different boot file names to PBR". After 5 and NTLDR (BOOTMGR) take over control, search and load the startup environment file (font, file, etc.) and start the configuration file in the root directory, and then follow the instructions in the startup configuration file to proceed to the next boot. For WinXP, the startup configuration file is boot.ini in the active partition root directory, and the boot.ini is single in content. It instructs NTLDR to load the system kernel directly. For Win7, the boot configuration file is the active partition the root directory of the boot\BCD BCD complex, it will make a number of instructions BOOTMGR verification of system configuration, first verify whether there is BOOTMGR compatible with the "system type" information MBR hard disk, and then verify the consistent guidance, prove the inconsistency is prompted, termination guide. 6, Win7 failed to start, will usually have five tips: looking for equipment - active partition PBR blank, the boot process did not loaded into the BOOTMGR format by the active partition; no operating system -- not compatible with BOOTMGR MBR in the "system type" information - FDISK by /MBR 3; boot automatically start the Windows startup repair "- no problem, but the partition table is local disorder recovery caused by the wrong GHOST. The Windows boot manager pops up the 0xc000000f error - everything else is ok, But the partition table GHOST does not restore local disorder caused by the deletion + /Recovery directory; the Windows boot manager 0xc000000e BOOTMGR popup error can not find the dvice option is specified in the BCD partition -- cause see "four, manual fix 0xc000000e error". 7, about GHOST: GHOST objects include the entire PBR, file systems and user data. GHOST will not change the size of the target partition, but it will cause partial disorder of the partition table. Two, Windows7 boot code maintenance (1) overview of Windows7 boot code maintenance The purpose of the maintenance of the boot code is to update the MBR of the hard disk (master boot record) and the partition's PBR (partition boot record) to switch between identifying BOOTMGR and identifying ntldr. The most convenient, versatile and professional tool for updating MBR and PBR is Bootsect. Bootsect.exe is a single file program (attached to the boot directory of the Windows vista/7 installation CD) that supports the Windows command line running (including the WinPE command line). It is recommended to start WinPE on disk, execute bootsect.exe, execute bootsect.exe under hard disk operating system, and sometimes cause PBR update to fail because of unable to lock target volume. Also note that the Vista's bootsect.exe does not have a /mbr parameter, so it can only update the PBR and not update the MBR. (two) Bootsect command parameter Bootsect.exe {/help /nt52 /nt60} {SYS ALL | | | | }[/force] /mbr Parameter description /help display instructions. /nt52 applies the NTLDR compatible master boot code to SYS, ALL, or . The operating system installed on SYS, ALL, or must be Windows (R) XP. /nt60 applies the Bootmgr compatible master boot code to SYS, ALL, or . The operating system installed on SYS, ALL, or must be Windows Vista?. SYS updates the main boot code on the system partition used to start Windows. ALL updates the main boot code on all partitions. The ALL option does not have to update the startup code for each volume. Instead, this option updates startup code that can be used as a Windows boot volume (excluding dynamic volumes that do not have a connection to the underlying disk partition). This limitation exists because the boot code must be at the beginning of the disk partition. updates the main startup code on the volume associated with this drive letter. In the following two cases, the boot code is not updated: is not associated with the volume is associated with a volume that is not connected to the underlying disk partition. /force forcibly dismount the volume during startup code updates. This option must be used with care. If Bootsect.exe cannot obtain exclusive volume access, the filesystem may overwrite the boot code before the next restart. Bootsect.exe always attempts to lock and dismount volumes before each update. When a /force is specified, the attempt is forced to dismount if the initial lock attempt fails. For example, if the file on the target volume has now been opened by another program, the lock may fail. If the lock is successful, forced dismount will enable exclusive volume access and reliable startup code updates, even if the initial lock fails. At the same time, forced dismount will render all open handles to files on the target volume invalid. This can cause unexpected behavior from programs that open these files. Therefore, be careful to use this option. /mbr updates the master start record without changing the partition table on the disk sector 0 that contains the partitions specified by SYS, ALL, or . When used with the /nt52 option, the master boot record is compatible with the operating system of the previous version of Windows Vista. When used with the /nt60 option, The master boot record will be compatible with Windows, 7, Windows, Vista, Windows, Server, 2008, or Windows Server 2008 R2. (three) Bootsect application example Bootsect /nt52 E: writes the PBR compatible WindowsXP to the E disk. The bootsect /nt60 sys /mbr writes Windows7 and Vista MBR to the hard disk and writes Windows7 and Vista PBR to the active partition for the active partition. The bootsect /nt52 sys /mbr writes the WindowsXP compatible MBR to the hard disk and writes the WindowsXP compatible PBR to the active partition. (four) Bootsect returns the information definition The following is the Win7 returned to the dual partition WinPE rewrite PBR and MBR success after the return of information. Target, volumes, will, be, updated,, with, NTLDR, compatible, bootcode (the target volume will be updated with the NTLDR compatible boot code) 2, X: \Volume{,}> <\\? (local computer identifier {-} the volume (partition), X: is the volume of the letter, do not display the X: and < > when not allocated. Special attention should be paid here to the fact that the identifiers identified by Bootsect are mostly wrong 3, Successfully, updated, NTFS, filesystem, bootcode (successfully updated the NTFS filesystem boot code) 4, Updated, NTFS, filesystem, bootcode. The, update, may, be, unreliable, the, volume, since, could, not, be,, locked, during, the, update (update the NTFS file system boot code. The update may not be valid because the volume cannot be locked when it is updated Bootcode, was, successfully, updated, on,, all, targeted, volumes The boot code on all target volumes has been successfully updated 6? \?? \PhysicalDrive0? (local computer \ physical drive 0, generally refers to the main hard disk) 7, \Device\Harddisk0\DR0 (device / hard disk 0\ data logger 0) 8, Successfully, updated, disk, bootcode (successfully updated disk boot code) Three, Windows7 boot file maintenance (1) overview of Windows7 boot file maintenance The Windows7 boot file includes the BOOTMGR and the entire boot directory (containing BCD, etc.), and if one of the files is missing or corrupted, Windows7 will not start. There are three ways to guide document maintenance: 1, full backup method: that is, a copy of the boot file to save, and if necessary, then copy back. 2, Bcdedit editing method can only be used for maintenance: BCD, because BCD does not like XP boot.ini that directly use Notepad to open the edit boot options, and it is not a simple third party editing tools, so in BCD can only use Bcdedit custom startup options. Bcdedit is a command line tool that edits BCD (starting configuration data). It has several functions, including creating new BCD, modifying existing BCD, and adding Startup menu options. The tool is included with the distribution in the%WINDIR%\System32 folder. You need administrator privileges to use Bcdedit. Note that Bcdedit is the default operating activities under the partition of \boot\BCD, even if no active partition drive or hidden partition, operations are still valid. To manipulate BCD for other paths, specify with the Bcdedit /store parameter. 3, create method: you must use Bcdboot.exe, the tools included in the%WINDIR%\System32 folder and distribution, it can be used from the Windows image (%WINDIR%\boot and%WINDIR%\System32) to create a startup environment file (the whole boot directory contains BCD, etc.) to the system partition, Windows7 installation disc in the "startup repair" is with this tool as the kernel, but due to the "startup repair" automatically, not according to regional settings, so by default the United States created automatically after the repair after the start menu is English. As for manual operation, It's too complicated to be mastered. (two) items and elements in BCD There are only two items in BCD, that is, the startup manager and startup loader entries. The startup manager entry must have one and only one. The startup loader entry can have several (each startup loader entry corresponds to an operating system). The boot manager tab commands all startup loader entries. The subkey of an item is the element, also known as the item option. (three) identifiers in BCD Each entry and key element in BCD has a globally unique identifier for identifying and managing them. The identifier uses the GUID format ({xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}), where the X is sixteen decimal. The GUID identifier can be viewed by the Bcdedit /v command. To facilitate memory, Microsoft uses abbreviated forms to represent GUID identifiers for several specific items and elements. Execute Bcdedit (without arguments). If the following characters are shown, the corresponding item or element is displaying the GUID identifier in an abbreviated form. {bootmgr} Windows startup manager entries {default} defaults to start loader items {ntldr} started the loader entry earlier than Vista's Windows {current} startup loader items currently running {globalsettings} verifies global settings (including verifying whether MBR has compatible BOOTMGR boot code) {memdiag} memory diagnostics {badmemory} RAM fault list {dbgsettings} verifies the debugger running environment {emssettings} verifies the running environment of emergency management services {ramdiskoptions} verifies the RAM environment in which the startup manager runs {bootloadersettings} verify boot loader runtime {resumeloadersettings} verifies sleep recovery environment {fwbootmgr} firmware startup manager entry (computer only for EFI specifications) Below is the double zone (active partition without letter) with executive mode Bcdedit /v display Win7 BCD. In figure, BCD has two entries, a startup manager entry and a startup loader entry, note that three identifiers are enclosed in a box, and all computers that have the same value are the same. Below is the double zone (active partition without letter) Win7 Bcdedit (with no parameters) for display mode BCD. The BCD in the diagram has two entries, a startup manager entry and a startup loader entry, note the three identifiers that are enclosed in a box, and all computers that have Win7 are the same value. (four) Bcdedit command parameter Routine parameter Parameter description / displays the BCDEdit command list. Running this command (without arguments) will display a summary of the available commands. To display detailed help for a specific command, run the Bcdedit / command, where the command is the name of the command that is searching for its details. For example, Bcdedit / createstore displays detailed help for the Createstore command. The parameters used for the file Parameter description /createstore creates an empty BCD. The created BCD is not system BCD. /export exports the contents of the system BCD to the file. This file can later be used to restore the status of the system BCD. This command is valid only for system BCD. /import uses the backup data file generated from the previous /export option to restore the status of the system BCD. This command will delete all existing items before the import of the system BCD occurs. This command is valid only for system BCD. /store this option can be used with most BCDedit commands to specify the BCD to use. If this option is not specified, BCDEdit will operate on the system BCD. Running the Bcdedit /store command yourself is equivalent to running the Bcdedit /enum active command. Such as: 1. create a BCD file named newstroe in the D disk Bcdedit /createstore d:\newstroe 2. backup system BCD to d:\bcdbake file Bcdedit /export d:\bcdbake Three Restore the d:\bcdbake file to system BCD Bcdedit /import d:\bcdbake Arguments for an item Parameter description /copy copies the startup loader entries specified in the same BCD. The boot manager entry cannot be copied. /create creates a new null entry in BCD. If you are specifying an identifier that is currently in use, you cannot specify the /application, /inherit, and /device options. If the identifier is not specified or the specified identifier is not used, then the /application, /inherit, and /device options must be specified. Syntax: Bcdedit /create [{}] /d [-application ppt
ype> /inherit []|/inherit DEVICE /device] | | The specifies the new item to be used to specify a new identifier to use the description of , /application must specify a new application, specifies the type of application, the value can be BOOTSECTOR, OSLOADER, RESUME, STARTUP. /delete deletes the specified item in BCD. Such as: 1. create a startup loader item based on NTLDR "Bcdedit /create {ntldr} /d" "Earlier Windows OS Loader"" 2. create a new startup loader item Bcdedit, /create, /d, Windows, Vista, /application, osloader 3. copy the boot loader entry for the current system "Bcdedit /copy {current} /d" "copy of osloader"" 4. remove the startup loader item with GUID as {9f62d3dc-3054-11dd-95a5-001e3d8b719b} Bcdedit /delete {9f62d3dc-3054-11dd-95a5-001e3d8b719b} Arguments for item options Parameter description /deletevalue removes an element from the specified item. Syntax: Bcdedit, [/store, ], /deletevalue, [], /set sets an item option value. Syntax: Bcdedit, [/store, ], /set, [{}], , Where filename is the name of the BCD, and is the identifier of the item (if not specified, defaults to {current}), is the name of the option, and value is the value to be set. Such as: 1. delete the resumeobject option in the {current} entry Bcdedit /deletevale {current} resumeobject 2. set the current system startup menu described as "32bit Vista"" Bcdedit /set {current} description "32bit Vista"" Parameters that control output Parameter description /enum lists items in BCD. The /enum option is the default value for BCDEdit, so running the Bcdedit command (without arguments) is equivalent to running the Bcdedit /enum active command. /v detailed mode. To facilitate memory, Microsoft uses abbreviations to represent identifiers for several specific items and elements. Specifying /v as the command line option will fully display all identifiers. Running the Bcdedit /v command itself is equivalent to running the Bcdedit /enum active /v command. Controls the parameters of the boot manager Parameter description /bootsequence specifies the one-time display order for the next boot. This command is similar to the /displayorder option, except that it is only used at the next computer startup. The computer will revert to the original display order. /default specifies the default option that the manager selects when the timeout expires. /displayorder specifies the display order used by the manager when the startup options are specified to the user. /timeout specifies the time to wait before the startup manager selects the default item, in seconds. /toolsdisplayorder specifies the display order of each maintenance tool at the tool menu interface. Such as: 1. set the default boot {cbd971bf-b7b8-4885-951a-fa03044f5d71} corresponding system loader cbd971bf-b7b8-4885-951a-fa03044f5d71 BCDEdit /默认{ } 2。设置两个操作系统在启动菜单中显示的顺序为:{ } { }当前NTLDR {现在} { BCDEdit /显示顺序NTLDR } 控制紧急管理服务的参数 参数描述 / bootems启用或禁用指定项的紧急管理服务(EMS)。 启用或禁用指定的操作系统启动项的/ EMS EMS。 / emssettings设置计算机的全局EMS设置。/ emssettings不启用或禁用任何特定启动项的EMS。 控制调试的参数 参数描述 / bootdebug启用或禁用指定启动项的启动调试程序尽管此命令可为任何启动项工作,但仅对启动应用程序有效。 / dbgsettings指定或显示系统的全局调试程序设置。此命令不启用或禁用内核调试程序;使用/调试选项完成此目的。若要设置单个全局调试程序设置,请使用BCDEdit / setdbgsettings型价值命令。 启用或禁用指定启动项的内核调试程序/调试。 四、手工解决0xc000000e错误 问题描述:Win7启动失败,Windows启动管理器给出0xc000000e错误(有时是英文的,有时是中文的),系统自带的”启动修复”和BOOTSECT命令都解决不了,如果按提示插入Windows7的安装光盘进行修复,一般能启动是没问题的,但Windows启动管理器会永远变成英文界面。 问题:Windows启动管理器已成功加载,但bootmgr找不到BCD中装置选项指定的分区。如果出错提示是英文,BCD中“Windows启动管理器”项的“现场”选项没被加载,bootmgr找不到BCD中“Windows启动管理器”项的装置选项指定的分区。如果出错提示是中文,说明BCD中“Windows启动管理器”项的“现场”选项已被加载了,但bootmgr找不到BCD中“Windows启动加载器”项的装置选项指定的分区。 常见起因:?将双分区win7调整为单分区win7;?对单分区win7所在硬盘执行了“FDISK/MBR”;?对双分区win7进行了与单分区有关的其他操作。 解决办法:WinPE下打开Windows命令行工具,转到win7的Windows\System32下目录,执行“BCDEdit / V”,显示当前BCD内容如下: 注意看图中的“未知”,它们就是错误。如果是单分区的win7,只要把这些“未知”的都改成分区= C”就能完美解决。如果是双分区的win7,请按活动分区的盘符酌情处理,总之不能都改成分区= C”。单分区的win7请执行以下三条命令:BCDEdit /套{ bootmgr }设备的分区= C: { } BCDEdit /套默认设备分区= C: BCDEdit /套{ } osdevice默认分区= C: 对单分区的win7,这三条命令还能实现在FDISK/MBR后免用bootsect / nt60 C:/ MBR,这个很奇怪,至今没弄懂什么原因。 五、Windows7和WindowsXP双系统引导修复 (一)用引导XP WIN7 1。C盘win7先装,D盘XP用安装盘后装,装完后XP可正常进入,win7无法进入。这样安装的XP其核心文件虽在D盘,但NTLDR、NTDETECT。COM、启动INI、bootfont。本这些引导文件都被放在了C盘,因为盘是硬盘上唯一的活动分区此时的修复方法如下C。 CMD下执行如下命令: bootsect / nt60 C:/ MBR或者bootsect / nt60系统/ MBR BCDEdit /创建{ NTLDR } / D“Windows XP专业版” NTLDR BCDEdit /套{ }设备分区= C:或者BCDEdit /套} { NTLDR开机装置 BCDEdit /套{意思}路径\文件 BCDEdit /显示顺序{ } / addlast NTLDR BCDEdit /超时5 2。C盘win7先装,D盘XP用鬼后装,装完后win7可正常进入,无法进入此时的修复方法如下XP。 ?把D盘根目录下的NTLDR、NTDETECT。COM、启动INI三个文件复制到C盘根目录下(bootfont。本不必复制,因为引导菜单字体用的win7的)。 ?修改启动INI文件的内容,将C:修改D:,为引导XP指定正确的路径。 ?CMD下执行如下命令(win7下CMD须以管理员身份运行): BCDEdit /创建{ NTLDR } / D“Windows XP专业版” NTLDR BCDEdit /套{ }设备分区= C:或者BCDEdit /套} { NTLDR开机装置 BCDEdit /套{意思}路径\文件 BCDEdit /显示顺序{ } / addlast NTLDR BCDEdit /超时5 三.C盘XP用安装盘先装,D盘win7用鬼后装,装完后XP可正常进入,win7无法进入。修复方法如下。 CMD下执行如下命令: BCDboot D: \ Windows / L / C:zh CN(在C盘根目录生成了\启动文件夹和bootmgr文件) bootsect / nt60 C:/ MBR或者bootsect / nt60系统/ MBR BCDEdit /创建{ NTLDR } / D“Windows XP专业版” NTLDR BCDEdit /套{ }设备分区= C:或者BCDEdit /套} { NTLDR开机装置 BCDEdit /套{意思}路径\文件 BCDEdit /显示顺序{ } / addlast NTLDR BCDEdit /超时5 (二)用XP WIN7问题分析引导 我现在安装的是XP+Win7双系统,XP先装在C盘(主分区、活动分 区),win7在非活动D盘(逻辑分区、非活动分区),用win7的启动器来引导XP,一切使用正常。由于想折腾一下用XP的启动器来引导win7,所以尝试用XP启动器+ GRUB4DOS来启动win7,启动顺序是:NTLDR -> GRLDR bootmgr。我的步骤如下:1、把C盘中的和win7启动有关的\ bootmgr文件和\启动\整个目录移到D盘,然后把D: \启动\ BCD码文件中的bootmgr } {项中的“C:”改成“D”;2、GRLDR放在C盘,修改C:\启动INI,增加通过NTLDR引导GRLDR的菜单项;3、修改GRLDR的菜单。1,增加引导D: \ bootmgr的菜单项这样C。盘就是纯净的XP + GRUB4DOS,D盘就是包括启动器的完整赢7了。按此设置后,成功引导win7,其它使用一切正常。只是存在一个问题,就是进入win7系统后,在”计算机”->属性->“高级系统设置”->“启动和故障恢复设置”中颜色是灰色的,也没有任何启动项,直接使用BCDEdit也提示找不到文件。很明显是win7和BCDEdit都没有找到BCD文件。据此,我分析:1、bootmgr寻找的是与其同一分区下的\启动\ BCD码,所以能够顺利启动win7;2、而进入win7后系统找不到BCD,原因是win7和BCDEdit只寻找活动分区下的\启动\ BCD码,而D盘不是活动分区,所以没找到。
/
本文档为【win7引导修复(Win7 boot repair)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索