« Setting up a HTTP Gateway on Ubuntu 10.04 | Home | Connecting to a network Samba PDF converter »
Solving the infinite GRUB loop (GRUB GRUB GRUB GRUB GRUB) problem
By admin | August 30, 2010
Sometimes, especially after changes to the hard drive or changes to partitioning, you will find that your Linux computer would no longer boot, but instead fill the screen up with GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB, etc infinitely without giving the boot menu, and the only way to exit out would have been to press Ctrl-Alt-Delete and reset the machine.
Apparently the problem is caused when GRUB tries to load the next stage of the bootloader, but fails to load it and instead hangs in an infinite loop because it can’t read out of the next stage. However in our case the BIOS settings were perfectly fine and there was nothing wrong with that. It turns out that the actual problem lying below the infinite loop was that the GRUB bootloader was corrupted and had to be reinstalled.
Prerequisites
- Floppy drive & real 3.5 inch floppy
- Download the grub boot floppy (1.44 MB)
- Write the floppy image to a real floppy, if you are on Linux you can simply dd if=bootgrub.img of=/dev/fd0 whereas if you are on windows you can use something like rawrite to write out the image.
Steps
- Boot your computer from floppy.
- Once the floppy has fully loaded with the menu, press “c” on your keyboard to enter the command prompt.
- Type in the following commands:
find /boot/grub/stage1
Skip the (fd0) entry that it produces and note down the one that matches your /boot partition. If it does not find it, then note down your /boot partition in the form of (hdx,y) where x is the hard disk number and y is the partition number. For example, (hd0,0) is equivalent to /dev/sda1 in Linux.
- Type in the following:
root (hd<strong>x</strong>, <strong>y</strong>)
where thew (hdx,y) is the location of /boot (from above command).
- Set up grub and reboot:
setup (hd0) reboot
If you wish to install grub to different drive, you can do so by changing hd0 to hd + your hd number.
- Remove floppy.
Errors
If you receive “Read Error” while starting the floppy you should double check your floppy and floppy drive for errors.
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Linux | 21 Comments »
March 6th, 2022 at 13:38
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
April 21st, 2022 at 09:47
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
April 30th, 2022 at 18:57
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
May 19th, 2022 at 21:59
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
June 20th, 2022 at 00:47
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
June 26th, 2022 at 13:20
… [Trackback]
[…] Find More here on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
June 27th, 2022 at 17:45
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
July 3rd, 2022 at 20:44
… [Trackback]
[…] Here you will find 12192 additional Info to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
August 24th, 2022 at 20:03
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
September 8th, 2022 at 13:39
… [Trackback]
[…] There you can find 16574 additional Information to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
October 21st, 2022 at 12:01
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
October 25th, 2022 at 16:21
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
October 29th, 2022 at 09:33
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
November 6th, 2022 at 22:12
… [Trackback]
[…] Here you will find 92436 more Info on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
November 11th, 2022 at 03:04
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
January 4th, 2023 at 18:35
… [Trackback]
[…] There you will find 7810 more Info to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
January 7th, 2023 at 09:06
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
February 3rd, 2023 at 18:49
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
March 1st, 2023 at 02:43
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
March 8th, 2023 at 18:57
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]
March 15th, 2023 at 17:42
… [Trackback]
[…] Here you can find 27898 more Information to that Topic: compdigitec.com/labs/2010/08/30/solving-the-infinite-grub-loop-grub-grub-grub-grub-grub-problem/ […]