{"id":826,"date":"2025-06-19T11:50:06","date_gmt":"2025-06-19T09:50:06","guid":{"rendered":"https:\/\/ilmarkerm.eu\/blog\/?p=826"},"modified":"2025-06-19T11:50:06","modified_gmt":"2025-06-19T09:50:06","slug":"oracle-linux-stuck-in-grub-prompt","status":"publish","type":"post","link":"https:\/\/ilmarkerm.eu\/blog\/2025\/06\/oracle-linux-stuck-in-grub-prompt\/","title":{"rendered":"Oracle Linux stuck in GRUB prompt"},"content":{"rendered":"\n<p>If you are using Oracle Linux cloud images available from <a href=\"https:\/\/yum.oracle.com\/oracle-linux-templates.html\" data-type=\"link\" data-id=\"https:\/\/yum.oracle.com\/oracle-linux-templates.html\">https:\/\/yum.oracle.com\/oracle-linux-templates.html<\/a> and at some point it does not boot up again and you see it is stuck in the bootloader (grub> prompt), then here are some steps to help you boot it up again. I have used them to rescue OL8 systems.<\/p>\n\n\n\n<p>Oracle Support has a note &#8220;<strong>Oracle Linux: How to Recover a Non-Booting GRUB2 After Kernel Update (Doc ID 2898390.1)<\/strong>&#8221; but these steps do not perfectly work for the provided cloud image.<\/p>\n\n\n\n<p>First check what disk devices are available, for the cloud image you should see this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grub> ls\n(hd0) (hd0,msdos1) (hd0,msdos2)<\/code><\/pre>\n\n\n\n<p>Then check what Linux kernels you have available on this system. You should see vmlinuz ja initramfs file (files) with the matching version number.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grub> ls (hd0,msdos1)\/\nvmlinux-5.4.17-2136.342.5.el8uek.x86_64 initramfs-5.4.17-2136.342.5.el8uek.x86_64.img<\/code><\/pre>\n\n\n\n<p>Now boot it up<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>insmod lvm\ninsmod normal\ninsmod gzio\ninsmod part_gpt\ninsmod xfs\nset root=(hd0,msdos1)\nlinux \/vmlinux-5.4.17-2136.342.5.el8uek.x86_64 root=\/dev\/mapper\/vg_main-lv_root\ninitrd \/initramfs-5.4.17-2136.342.5.el8uek.x86_64.img\nboot<\/code><\/pre>\n\n\n\n<p>After that the system should boot up as normal.<\/p>\n\n\n\n<p>The Oracle Support note claims this can happen due to broken grub.cfg file, but at least the cases I&#8217;ve seen grub.cfg has been fine and regenerating it, as the support note recommends, had no help. But at least can temporarily boot up the system again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using Oracle Linux cloud images available from https:\/\/yum.oracle.com\/oracle-linux-templates.html and at some point it does not boot up again and you see it is stuck in the bootloader (grub> prompt), then here are some steps to help you boot it up again. I have used them to rescue OL8 systems. Oracle Support has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5],"class_list":["post-826","post","type-post","status-publish","format-standard","hentry","category-blog-entry","tag-linux"],"_links":{"self":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/posts\/826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/comments?post=826"}],"version-history":[{"count":1,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/posts\/826\/revisions"}],"predecessor-version":[{"id":827,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/posts\/826\/revisions\/827"}],"wp:attachment":[{"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/media?parent=826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/categories?post=826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ilmarkerm.eu\/blog\/wp-json\/wp\/v2\/tags?post=826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}