{"id":2095,"date":"2013-11-01T11:43:24","date_gmt":"2013-11-01T11:43:24","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=2095"},"modified":"2013-11-01T11:43:24","modified_gmt":"2013-11-01T11:43:24","slug":"reinstall-grub-ubuntu-wont-boot","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2013\/11\/reinstall-grub-ubuntu-wont-boot\/","title":{"rendered":"How to Reinstall Grub When Ubuntu or Linux Mint Won&#8217;t Boot"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo.jpg\" alt=\"repair, reinstall, restore grub\" width=\"170\" height=\"170\" class=\"aligncenter size-full wp-image-2015\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo.jpg 170w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/10\/ubuntu-logo-150x150.jpg 150w\" sizes=\"auto, (max-width: 170px) 100vw, 170px\" \/><\/a><\/p>\n<p><b>Grub 2<\/b>, the Ubuntu and Linux Mint&#8217;s default bootloader typically gets overridden when you install Windows as a dual-boot OS. To make Ubuntu and its derivatives boot again, you need to reinstall (repair\/restore) Grub using a <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2013\/07\/how-to-create-bootable-ubuntu-live-usb-with-unetbootin\/\" title=\"How to create bootable Ubuntu USB\" target=\"_blank\">bootable Ubuntu\/LinuxMint CD or USB<\/a>.<\/p>\n<p>Typically you&#8217;ll get the following error boot screen:<\/p>\n<pre style=\"background:#000000; color:#FFFFFF\">error: no such partition.\n\ngrub rescue> _<\/pre>\n<p><b>Tutorial Objectives:<\/b><\/p>\n<ul>\n<li>Reinstall Grub 2 when Ubuntu or Linux Mint won&#8217;t boot<\/li>\n<li>Enjoy!<\/li>\n<\/ul>\n<p><b>To get started<\/b>, insert your Ubuntu USB into computer and boot up. When you&#8217;re in, follow the steps below to <i>reinstall grub 2<\/i>:<\/p>\n<p>1. Open <u>Gparted Partition Editor<\/u> from Unity Dash to check out which partition your Ubuntu\/Linux Mint system installed. It is usually a <b>EXT4<\/b> Partition.<\/p>\n<p>In my case, there&#8217;re 3 <b>Ext4<\/b> partitions. We can check the user names on each partition after step 2 by command <code>cd \/mnt\/ && ls home\/<\/code><\/p>\n<div id=\"attachment_2097\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/gparted-ubuntu1310.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2097\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/gparted-ubuntu1310.jpg\" alt=\"gparted partition editor\" width=\"540\" height=\"305\" class=\"size-full wp-image-2097\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/gparted-ubuntu1310.jpg 540w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/11\/gparted-ubuntu1310-300x169.jpg 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><p id=\"caption-attachment-2097\" class=\"wp-caption-text\">gparted partition editor<\/p><\/div>\n<p>2. Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command below to mount the partition:<\/p>\n<pre>sudo mount \/dev\/sda7 \/mnt<\/pre>\n<p>3. Now reinstall Grub2 via command below:<\/p>\n<pre>grub-install --root-directory=\/mnt \/dev\/sda<\/pre>\n<p>If the installation is successful, you will get the similar output:<\/p>\n<pre style=\"color:#FFFFFF; background:#000000\">Installation finished. No error reported.<\/pre>\n<p>4. Finally update grub boot loader and done!<\/p>\n<pre>sudo update-grub<\/pre>","protected":false},"excerpt":{"rendered":"<p>Grub 2, the Ubuntu and Linux Mint&#8217;s default bootloader typically gets overridden when you install Windows as a dual-boot OS. To make Ubuntu and its derivatives boot again, you need to reinstall (repair\/restore) Grub using a bootable Ubuntu\/LinuxMint CD or USB. Typically you&#8217;ll get the following error boot screen: error: no such partition. grub rescue> [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[755,756,757,37],"class_list":["post-2095","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-reinstall-grub","tag-repair-grub","tag-restore-grub","tag-ubuntu-13-10"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/2095","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=2095"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/2095\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=2095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=2095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=2095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}