{"id":467,"date":"2007-08-06T19:28:32","date_gmt":"2007-08-06T19:28:32","guid":{"rendered":"http:\/\/neosmart.net\/blog\/2007\/bootsectexe-modifies-the-bootsector-not-the-mbr\/"},"modified":"2013-08-26T18:16:31","modified_gmt":"2013-08-26T23:16:31","slug":"bootsectexe-modifies-the-bootsector-not-the-mbr","status":"publish","type":"post","link":"https:\/\/neosmart.net\/blog\/bootsectexe-modifies-the-bootsector-not-the-mbr\/","title":{"rendered":"Bootsect.exe Modifies the Bootsector Not the MBR!!"},"content":{"rendered":"<p>We&#8217;ve noticed a lot of people posting questions both in <a href=\"http:\/\/neosmart.net\/forums\/\" rel=\"follow\">our support forums<\/a> and in the <a href=\"https:\/\/groups.google.com\/forum\/#!forum\/microsoft.public.windows.vista.general\" rel=\"follow\">Windows Vista newsgroups<\/a>&nbsp;having issues getting bootsect.exe to do their bidding. Bootsect.exe is a command-line utility that ships&nbsp;on the&nbsp;Windows Vista DVD intended to repair&nbsp;a non-booting Windows Vista install &#8211; except it doesn&#8217;t always seem to work. <\/p>\n<p>The problem that most&nbsp;people seem to&nbsp;be having can be traced back to single, simple fact:<strong> bootsect.exe does not modify the MBR: it only&nbsp;fixes\/repairs the bootsector&nbsp;of your Windows Vista partition<\/strong>. The MBR is&nbsp;like a &#8220;global bootsector&#8221; that tells the BIOS where in the hard-drive it should look for&nbsp;a bootloader. The&nbsp;<em>bootsector,<\/em> on the other hand,&nbsp;is like a partition-dependant MBR &#8211; each operating system can have its own bootsector to tell your system how to boot it. <\/p>\n<p>The source of all this confusion is that during the Longhorn\/Vista beta program, quite a number of builds were shipped with a version of bootsect.exe (originally dubbed `fixntfs.exe`) that modified <em>both<\/em> the MBR <em>and<\/em> the bootsector. <\/p>\n<p>However, in the Windows Vista RTM build and Longhorn Server builds following that, bootsect.exe is a command-line utility used to repair the bootsector and only the bootsector &#8211; it won&#8217;t get your MBR to use the Vista BCD\/Bootmgr. In order to do that, you&#8217;ll have to boot from the Vista DVD | Repair Options | Command Prompt. <\/p>\n<p><!--more--><\/p>\n<p><code class=\"terminal\">bootrec.exe \/fixmbr <br \/>bootrec.exe \/fixboot <br \/>bootrec.exe \/rebuildbcd <\/code><\/p>\n<p>Bootrec.exe is an &#8220;all-in-one&#8221; boot-repair tool that can only be accessed and run from the Vista recovery console.&nbsp; The first command rebuilds the MBR to use the Vista boot manager. The second does the same thing as bootsect.exe and tells the bootsector where to find the BCD bootloader (\\bootmgr). The final command rebuilds the BCD data from scratch and is highly useful when recovering a borked Vista partition. <\/p>\n<p><a href=\"http:\/\/neosmart.net\/EasyBCD\/\" rel=\"follow\">EasyBCD<\/a>&nbsp;also has options to perform each of these steps from within Windows. After installing EasyBCD, you can rewrite the MBR and the bootsector simultaneously by using the &#8220;Manage Bootloader&nbsp;| Reinstall Vista Bootloader&#8221; option. EasyBCD can also rebuild the BCD store and the entries in it (while EasyBCD is running from within both Windows Vista and other versions of Windows) from the &#8220;Diagnostics | Reset BCD Data&#8221; setting. <\/p>\n<p>The moral of the story is simple: when attempting to use a utility, make sure to research the <em>latest<\/em> version before doing anything mission-critical. And the next time you&#8217;re developing an operating system and decide to switch the core functionality of a certain tool, be sure to document what you just did so this kind of thing doesn&#8217;t happen! =) <\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve noticed a lot of people posting questions both in our support forums and in the Windows Vista newsgroups&nbsp;having issues getting bootsect.exe to do their bidding. Bootsect.exe is a command-line utility that ships&nbsp;on the&nbsp;Windows Vista DVD intended to repair&nbsp;a non-booting &hellip; <a href=\"https:\/\/neosmart.net\/blog\/bootsectexe-modifies-the-bootsector-not-the-mbr\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[500,121,541,503,504,119,120,53,4],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-software","tag-bcd","tag-bootloader","tag-bootrec","tag-bootsect","tag-bootsector","tag-easybcd","tag-mbr","tag-vista","tag-windows"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4xDa-7x","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/comments?post=467"}],"version-history":[{"count":2,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":2411,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/posts\/467\/revisions\/2411"}],"wp:attachment":[{"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/media?parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neosmart.net\/blog\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}