{"id":213,"date":"2013-02-07T21:06:16","date_gmt":"2013-02-07T21:06:16","guid":{"rendered":"http:\/\/francisfisher.me.uk\/problem\/?p=213"},"modified":"2013-02-07T21:06:16","modified_gmt":"2013-02-07T21:06:16","slug":"grub-probe-error-not-a-directory-grub-1-99-in-ubuntu-linux-12-04","status":"publish","type":"post","link":"https:\/\/francisfisher.me.uk\/problem\/2013\/grub-probe-error-not-a-directory-grub-1-99-in-ubuntu-linux-12-04\/","title":{"rendered":"grub-probe: error: not a directory. (grub 1.99 in Ubuntu Linux 12.04)"},"content":{"rendered":"<p>I upgraded some packages earlier (including a kernel) and received an odd error from grub (version\u00a01.99-21ubuntu3.9)<\/p>\n<pre>$ sudo grub-install --recheck \/dev\/sda\r\n \/usr\/sbin\/grub-probe: error: not a directory.\r\n Auto-detection of a filesystem of \/dev\/sdb1 failed.\r\n Try with --recheck.\r\n If the problem persists please report this together with the output of \"\/usr\/sbin\/grub-probe --device-map=\"\/boot\/grub\/device.map\" --target=fs -v \/boot\/grub\" to &lt;bug-grub@gnu.org&gt;<\/pre>\n<p>I couldn't complete the configuration of the updates that I had downloaded, and worse the machine was probably now unbootable. Poking around a bit, I find that the error reported by grub-probe could be reproduced with:<\/p>\n<pre>$ sudo grub-probe -d \/dev\/sdb1 --target=fs_uuid\r\ngrub-probe: error: not a directory.<\/pre>\n<p>I didn't know where to go from here so the first thing I tried was to purge grub and reinstall it.<\/p>\n<pre>sudo apt-get purge grub*\r\n\r\nsudo apt-get install grub-pc<\/pre>\n<p>Didn't make any difference, so the next thing I tried was to downgrade to an earlier version of grub (1.99-21ubuntu3).<\/p>\n<pre>sudo apt-get purge grub*\r\n\r\nsudo apt-get install grub-pc=1.99-21ubuntu3 grub2-common=1.99-21ubuntu3 grub-pc-bin=1.99-21ubuntu3 grub-common=1.99-21ubuntu3<\/pre>\n<p>Unfortunately this made no difference either. So the next thing I tried was to install the version of grub from Ubuntu 12.10. There were some dependency conflicts which I had to manually fix as you can see here:<\/p>\n<pre>sudo apt-get remove apport-hooks-medibuntu apport-gtk apport\r\n\r\nsudo dpkg -i liblzma5_5.1.1alpha+20120614-1_amd64.deb\u00a0grub2-common_2.00-7ubuntu11_amd64.deb \u00a0grub-common_2.00-7ubuntu11_amd64.deb \u00a0grub-gfxpayload-lists_0.6_amd64.deb \u00a0grub-pc_2.00-7ubuntu11_amd64.deb \u00a0grub-pc-bin_2.00-7ubuntu11_amd64.deb<\/pre>\n<p>Finally, grub installed ok! Crisis averted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I upgraded some packages earlier (including a kernel) and received an odd error from grub (version\u00a01.99-21ubuntu3.9) $ sudo grub-install --recheck \/dev\/sda \/usr\/sbin\/grub-probe: error: not a directory. Auto-detection of a filesystem of \/dev\/sdb1 failed. Try with --recheck. If the problem persists please report this together with the output of \"\/usr\/sbin\/grub-probe --device-map=\"\/boot\/grub\/device.map\" --target=fs -v \/boot\/grub\" to &lt;bug-grub@gnu.org&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts\/213"}],"collection":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":1,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":214,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/posts\/213\/revisions\/214"}],"wp:attachment":[{"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/francisfisher.me.uk\/problem\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}