{"id":3873,"date":"2016-05-09T03:46:53","date_gmt":"2016-05-09T08:46:53","guid":{"rendered":"http:\/\/neosmart.net\/wiki\/?page_id=3873"},"modified":"2016-05-18T09:08:54","modified_gmt":"2016-05-18T14:08:54","slug":"bootrec","status":"publish","type":"page","link":"https:\/\/neosmart.net\/wiki\/winman\/bootrec\/","title":{"rendered":"bootrec.exe"},"content":{"rendered":"<p><strong>bootrec.exe<\/strong> is the utility that is used to update the master boot record code, partition bootsector code, and the BCD (boot configuration data). It&#8217;s most-commonly used to correct\u00a0boot problems on Windows Vista and later versions of Windows.<\/p>\n<h2><span id=\"Synopsis\">Synopsis<\/span><\/h2>\n<p>Arguments enclosed with braces\u00a0<strong>{ \u00a0}<\/strong>\u00a0are necessary and | stands for &#8220;<strong>or<\/strong>&#8220;.<\/p>\n<pre><strong>bootrec.exe<\/strong> {\/<strong>fixmbr<\/strong> | \/<strong>fixboot<\/strong> | \/<strong>scanos<\/strong> | \/<strong>rebuildbcd<\/strong>}<\/pre>\n<h2><span id=\"Description\">Description<\/span><\/h2>\n<p>The <strong>bootrec.exe<\/strong> utility takes\u00a0only one of several valid argument,\u00a0depending on the desired correction behavior. It can be used to update\u00a0a\u00a0disk&#8217;s master boot record (<strong>MBR<\/strong>) code, a partition&#8217;s bootsector\u00a0code, or to\u00a0rebuild the boot configuration data (<strong>BCD<\/strong>).<\/p>\n<p>The options are as follows:<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/?<\/strong><br \/>\nLists the existing arguments<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/fixmbr<\/strong><br \/>\nUpdates the master boot record (<strong>MBR<\/strong>) code with the code compatible with Windows Vista, 7, 8, 10. It doesn&#8217;t edit the existing partition table.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/fixboot<\/strong><br \/>\nUpdates the boot sector code\u00a0of the partition used to boot the system\u00a0with the code that loads and runs the\u00a0<strong>BOOTMGR<\/strong> bootloader i.e. it works on Windows Vista, 7, 8, 10.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/scanos<\/strong><br \/>\nScans all disks for Windows installations that are Windows Vista or of a newer version and returns the number of installations that are not listed in the boot configuration data (<strong>BCD<\/strong>\u00a0i.e. can&#8217;t be booted into.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/rebuildbcd<\/strong><br \/>\nRebuilds the boot configuration data (<strong>BCD<\/strong>) by updating it with a choice to boot into versions of Windows installed on the disk that were previously unbootable i.e. adding them to the boot configuration data.<\/p>\n<h2><span id=\"Exit_Status\">Exit Status<\/span><\/h2>\n<p>The bootrec utility exits <strong>0<\/strong> on success and <strong>1<\/strong> if an error occurs.<\/p>\n<h2><span id=\"Examples\">Examples<\/span><\/h2>\n<p>To update the master boot record (<strong>MBR<\/strong>) code of the disk in the case it got corrupt or rewritten, resulting in the inability to boot the system:<\/p>\n<p><strong><code>bootrec \/fixmbr<\/code><\/strong><\/p>\n<p>To update the boot sector code of the partition used to boot the system with the code that loads and runs the BOOTMGR bootloader:<\/p>\n<p><strong><code>bootrec \/fixboot<\/code><\/strong><\/p>\n<p>To scan all the Windows installations on the disk that are not included in the BCD:<\/p>\n<p><strong><code>bootrec \/scanos<\/code><\/strong><\/p>\n<p>To update the BCD with the ability to boot into Windows versions installed on the hard disk that were previously unbootable:<\/p>\n<p><strong><code>bootrec \/rebuildbcd<\/code><\/strong><\/p>\n<h2><span id=\"Compatibility\">Compatibility<\/span><\/h2>\n<p>The<strong> bootrec.exe<\/strong> utility is compatible with Windows Vista, Windows 7, Windows 8, Windows 10.<\/p>\n<h2><span id=\"History\">History<\/span><\/h2>\n<p>Before the <a href=\"https:\/\/neosmart.net\/wiki\/winman\/bootsect\/\">bootsect<\/a>\u00a0utility introduced the<code><strong> \/mbr<\/strong><\/code> argument, <code><strong>bootrec \/fixmbr<\/strong><\/code> was the only way of updating the disk&#8217;s <strong>MBR<\/strong>.<\/p>\n<h2><span id=\"See_Also\">See Also<\/span><\/h2>\n<p><strong>bootsect\u00a0\u00a0<\/strong>&#8211;\u00a0command-line utility that\u00a0is\u00a0used to update the partition bootsector code and\u00a0the master boot record code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>bootrec.exe is the utility that is used to update the master boot record code, partition bootsector code, and the BCD (boot configuration data). It&#8217;s most-commonly used to correct\u00a0boot problems on Windows Vista and later versions of Windows. Synopsis Arguments enclosed with braces\u00a0{ \u00a0}\u00a0are necessary and | stands for &#8220;or&#8220;. bootrec.exe {\/fixmbr | \/fixboot | \/scanos [&hellip;]<\/p>\n","protected":false},"author":516,"featured_media":0,"parent":3793,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3873","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_shortlink":"https:\/\/wp.me\/P3SlTq-10t","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages\/3873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/users\/516"}],"replies":[{"embeddable":true,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/comments?post=3873"}],"version-history":[{"count":25,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages\/3873\/revisions"}],"predecessor-version":[{"id":4161,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages\/3873\/revisions\/4161"}],"up":[{"embeddable":true,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages\/3793"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/media?parent=3873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}