{"id":3783,"date":"2016-05-02T20:52:43","date_gmt":"2016-05-03T01:52:43","guid":{"rendered":"http:\/\/neosmart.net\/wiki\/?page_id=3783"},"modified":"2016-05-18T09:10:40","modified_gmt":"2016-05-18T14:10:40","slug":"bootsect","status":"publish","type":"page","link":"https:\/\/neosmart.net\/wiki\/winman\/bootsect\/","title":{"rendered":"bootsect.exe"},"content":{"rendered":"<p><strong>bootsect.exe<\/strong> &#8211; is a command-line utility that\u00a0is\u00a0used to update the partition bootsector code and\u00a0the master boot record code if desired.<\/p>\n<h2>Synopsis<\/h2>\n<p>Arguments enclosed with bracers\u00a0<strong>{ \u00a0}<\/strong> are necessary, arguments enclosed with\u00a0bracekts <strong>[ \u00a0]<\/strong> are optional, | stands for &#8220;<strong>or<\/strong>&#8220;.<strong>\u00a0<\/strong><\/p>\n<pre><strong>bootsect.exe<\/strong> {<strong>\/help<\/strong> | <strong>\/nt52<\/strong> | <strong>\/nt60<\/strong>} {<strong>sys<\/strong> | <strong>all<\/strong> | <strong>&lt;driveLetter:&gt;<\/strong>} [<strong>\/force<\/strong>] [<strong>\/mbr<\/strong>]<\/pre>\n<h2>Description<\/h2>\n<p>The <strong>bootsect.exe<\/strong> utility updates the partition bootsector\u00a0code\u00a0which\u00a0is responsible for loading and running a\u00a0bootloader. It can also update the master boot record\u00a0code of the hard disk containing that partition without editing\u00a0the partition table.<\/p>\n<p>The options are as follows:<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/help<\/strong><br \/>\nLists the existing arguments<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/nt52<\/strong><br \/>\nUpdates the boot sector code of a targeted partition (\u00a0<code><strong>sys<\/strong><\/code>, <code><strong>all<\/strong><\/code>\u00a0or <code><strong>&lt;driveLetter:&gt;<\/strong><\/code>) with the code that loads and runs the <strong>NTLDR<\/strong> bootloader. Used on Windows XP and other versions on Windows that use the bootloader mentioned above.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/nt60<\/strong><br \/>\nUpdates the boot sector code of a targeted partition (<code><strong>sys<\/strong><\/code>, <code><strong>all<\/strong><\/code>\u00a0or <code><strong>&lt;driveLetter:&gt;<\/strong><\/code>)\u00a0with the code that loads and runs the <strong>BOOTMGR<\/strong> bootloader. Used on Windows Vista\u00a0and other versions on Windows that use the bootloader mentioned above.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/sys<\/strong><br \/>\nTargets\u00a0the partition used to boot the operating system and updates the boot sector code on it.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/all<\/strong><br \/>\nTargets all partitions that can be used to boot an operating system and updates the bootsector code on them. It doesn&#8217;t work\u00a0on the volumes that are dynamic i.e. not connected with a primary disk partition.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>&lt;\/driveLetter:&gt;<\/strong><br \/>\nTargets\u00a0the volume associated with a specified drive letter and updates the bootsector code on it. It doesn&#8217;t update the boot sector code if volume with a specified letter doesn&#8217;t exist or if a volume with a specified letter isn&#8217;t connected to a primary disk partition.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/force<\/strong><br \/>\nUpdates the bootsector code on a targeted partition that would otherwise be inaccessible, e.g. the files on it are currently being used by other programs. Use it with caution because it can result in unexpected behaviors from these programs.<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/mbr<\/strong><br \/>\nUpdates the master boot record code of the hard disk that contains a partition specified by the\u00a0(<code><strong>sys<\/strong><\/code>, <code><strong>all<\/strong><\/code>\u00a0or <code><strong>&lt;driveLetter:&gt;<\/strong><\/code>). It doesn&#8217;t edit\u00a0the partition table whatsoever. Before this command was introduced the only way to repair the MBR was trough the <a href=\"https:\/\/neosmart.net\/wiki\/winman\/bootrec\">bootrec<\/a> utility.<\/p>\n<h2>Exit Status<\/h2>\n<p>The <strong>bootsect<\/strong> utility exits <strong>0<\/strong> on success and <strong>1<\/strong> if an error occurs.<\/p>\n<h2>Examples<\/h2>\n<p>Update the boot sector code on a volume labeled D: that has\u00a0Windows XP installed (NTLDR bootloader):<\/p>\n<p><strong><code>bootsect.exe \/nt52 \/D:<\/code><\/strong><\/p>\n<p>Update the boot sector code on a volume labeled C: that has Windows 7 installed (NTLDR bootloader):<\/p>\n<p><strong><code>bootsect.exe \/nt60 \/C:<\/code><\/strong><\/p>\n<p>Update the boot sector code on a volume labeled E: that has Windows 10\u00a0installed (NTLDR bootloader) and update the master boot record (MBR) code of the hard disk the volume E: belongs to:<\/p>\n<p><strong><code>bootsect.exe \/nt60 E: \/mbr<\/code><\/strong><\/p>\n<h2>Compatibility<\/h2>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/nt52<\/strong><br \/>\nWindows 2000, Windows 2003, Windows XP<\/p>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/nt60<\/strong><br \/>\nWindows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10<\/p>\n<h2>History<\/h2>\n<p style=\"margin-left: .5in;text-indent: -.5in\"><strong>\/mbr <\/strong>&#8211;<strong>\u00a0<\/strong>This flag was introduced in Windows 7. The only way to fix the MBR before it was using the <a href=\"https:\/\/neosmart.net\/wiki\/winman\/bootrec\">bootrec.exe<\/a> utility.<\/p>\n<h2 style=\"margin-left: .5in;text-indent: -.5in\">See Also<\/h2>\n<p><a href=\"https:\/\/neosmart.net\/wiki\/winman\/bootrec\">bootrec <\/a>&#8211; \u00a0the utility that is uwsed to update the master boot record code, partition boot sectorcode and the boot configuration data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>bootsect.exe &#8211; is a command-line utility that\u00a0is\u00a0used to update the partition bootsector code and\u00a0the master boot record code if desired. Synopsis Arguments enclosed with bracers\u00a0{ \u00a0} are necessary, arguments enclosed with\u00a0bracekts [ \u00a0] are optional, | stands for &#8220;or&#8220;.\u00a0 bootsect.exe {\/help | \/nt52 | \/nt60} {sys | all | &lt;driveLetter:&gt;} [\/force] [\/mbr] Description The bootsect.exe [&hellip;]<\/p>\n","protected":false},"author":505,"featured_media":0,"parent":3793,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3783","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_shortlink":"https:\/\/wp.me\/P3SlTq-Z1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages\/3783","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\/505"}],"replies":[{"embeddable":true,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/comments?post=3783"}],"version-history":[{"count":49,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages\/3783\/revisions"}],"predecessor-version":[{"id":4163,"href":"https:\/\/neosmart.net\/wiki\/wp-json\/wp\/v2\/pages\/3783\/revisions\/4163"}],"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=3783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}