{"id":1178,"date":"2013-08-01T13:44:06","date_gmt":"2013-08-01T13:44:06","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=1178"},"modified":"2016-06-01T14:27:11","modified_gmt":"2016-06-01T14:27:11","slug":"repair-windows-mbr-from-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2013\/08\/repair-windows-mbr-from-ubuntu\/","title":{"rendered":"How to Repair MBR (Windows Boot Loader) From Ubuntu"},"content":{"rendered":"<p>This simple tutorial shows you how to repair your Windows 7 boot loader (MBR) from Ubuntu dual boot or Ubuntu Live CD \/ USB. This can be useful if you don&#8217;t have a Windows CD or DVD on hand.<\/p>\n<p>To do so, first boot into your Ubuntu system. When you&#8217;re in Ubuntu, press <b>Ctrl+Alt+T<\/b> on your keyboard to open terminal and follow below steps:<\/p>\n<p>1.) First run below command to check your disk:<\/p>\n<pre>sudo fdisk -l<\/pre>\n<p>The output tells you the disk information:<\/p>\n<blockquote><p>Disk <b>\/dev\/sda<\/b>: 320.1 GB, 320072933376 bytes<br \/>\n255 heads, 63 sectors\/track, 38913 cylinders, total 625142448 sectors<br \/>\nUnits = sectors of 1 * 512 = 512 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 4096 bytes<br \/>\nI\/O size (minimum\/optimal): 4096 bytes \/ 4096 bytes<br \/>\nDisk identifier: 0x016c8108<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sda1   *          63    39054014    19526976    7  HPFS\/NTFS\/exFAT<\/p><\/blockquote>\n<p>2.) Now run commnad to install <b>syslinux<\/b>, which is a suite of lightweight IBM PC MBR bootloaders for starting up computers with the Linux kernel.<\/p>\n<pre>sudo apt-get update; sudo apt-get install syslinux<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/install-syslinux.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/install-syslinux.jpg\" alt=\"install syslinux to fix mbr\" width=\"468\" height=\"51\" class=\"aligncenter size-full wp-image-1179\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/install-syslinux.jpg 468w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/install-syslinux-300x32.jpg 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/a><\/p>\n<p>3.) Once installed, you can fix your Windows bootloader by running below command in terminal:<\/p>\n<pre>sudo dd if=\/usr\/lib\/syslinux\/mbr.bin of=<b>\/dev\/sda<\/b><\/pre>\n<p>Replace the startup disk name <code>\/dev\/sda<\/code> in the above command according to the output in step 1.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/repair-mbr.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/repair-mbr.jpg\" alt=\"repair-mbr\" width=\"468\" height=\"51\" class=\"aligncenter size-full wp-image-1180\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/repair-mbr.jpg 468w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/repair-mbr-300x32.jpg 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/a><\/p>\n<p>Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows you how to repair your Windows 7 boot loader (MBR) from Ubuntu dual boot or Ubuntu Live CD \/ USB. This can be useful if you don&#8217;t have a Windows CD or DVD on hand. To do so, first boot into your Ubuntu system. When you&#8217;re in Ubuntu, press Ctrl+Alt+T on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[375,376],"class_list":["post-1178","post","type-post","status-publish","format-standard","hentry","category-command-skills","tag-repair-mbr","tag-repair-mbr-in-ubuntu"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/1178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=1178"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/1178\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=1178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=1178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=1178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}