Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GRUB2 error

8 views
Skip to first unread message

Gary Roach

unread,
May 21, 2013, 8:30:01 PM5/21/13
to
Hi

My wife let her Debian machine get over 450 packages behind before I caught it. What a mess. The last problem is that when booting up the Welcome to Grub notice appears and then:
        error:file not found
        Entering rescue mode
        grubrescue>

If I run "ls" I find that the root directory should be (hd0,msdos1) and that grub is under the /boot directory. Therefore I run:
        set prefix="(hd0,msdos1)/boot/grub"  <enter>
        set root="(hd0,msdos1)"  <enter>
        insmod normal  <enter>
        normal   <enter>
and the system boots up and runs fine; until I reboot and then the mess starts all over again. How do I fix this. I suspect that I need to somehow reset the grub file but that's just a SWAG. Help!!!!!

Oh yes, we are running Debian Wheezy (stable) and KDE desktop and fdisk gives the following:

root@supercrunch:/media# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b79ef

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   960036863   480017408   83  Linux
/dev/sda2       960038910   976771071     8366081    5  Extended
/dev/sda5       960038912   976771071     8366080   82  Linux swap / Solaris


Gary R.

staticsafe

unread,
May 21, 2013, 8:40:01 PM5/21/13
to
Hi,

Can you share with us the output of `grub-mkconfig`?

For reference I link the Debian wiki page on GRUB:
http://wiki.debian.org/Grub

--
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130522002...@uriel.asininetech.com

Frank McCormick

unread,
May 21, 2013, 8:40:02 PM5/21/13
to
I am no GRUB expert...but it seems to me you should boot the
machine..get into a root terminal and run update-grub.
Or you can boot into rescue mode and do the same thing.



--
Cheers
Frank


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/519C11F0...@videotron.ca

Jochen Spieker

unread,
May 22, 2013, 4:50:02 AM5/22/13
to
Sorry, I cannot help with your original question, but this doesn't fit:

Gary Roach:
>
> My wife let her Debian machine get over 450 packages behind before I
> caught it. […] Oh yes, we are running Debian Wheezy (stable) and KDE
> desktop […]

Are you sure you are running wheezy? It has only been stable for a few
weeks and there haven't been that many updates to wheezy.

I suggest you look into your sources.list to make sure you are running
the Debian version you intend to use.

J.
--
I have never been happier than I am now; a fact which depresses me
immensely.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
signature.asc

Gary Roach

unread,
May 22, 2013, 3:20:01 PM5/22/13
to
To all the questions.

I reinstalled grub2. The same problem persists.
I have run update-grub2 (a stub that runs grub-mkconfig for grub2)  several times with no improvement. i also ran grub-mkconfig directly. Same results. See listing below.
I've had Wheezy on these systems for a long time. I didn't check the wifes system for a long time and there was a flurry of changes shortly before Wheezy went stable. I think that is why there where so many updates. I have also checked /etc/apt/source.list to make sure. Everything is set to stable at this point.

root@xxxxxx:/etc/apt# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
done
I hope this answers everyone's questions.

Gary R.




Shane Johnson

unread,
May 22, 2013, 5:10:02 PM5/22/13
to
On Wed, May 22, 2013 at 12:20 PM, Gary Roach <gary71...@verizon.net> wrote:
> On 05/21/2013 04:24 PM, Gary Roach wrote:
>
> Hi
>
> My wife let her Debian machine get over 450 packages behind before I caught
> it. What a mess. The last problem is that when booting up the Welcome to
> Grub notice appears and then:
> error:file not found
> Entering rescue mode
> grubrescue>
>
> If I run "ls" I find that the root directory should be (hd0,msdos1) and that
> grub is under the /boot directory. Therefore I run:
> set prefix="(hd0,msdos1)/boot/grub" <enter>
> set root="(hd0,msdos1)" <enter>
> insmod normal <enter>
> normal <enter>
<Snip>

Gary,
I don't know if this matters or not but some of the output above made
me curious. What file system are you using? Is your /etc/fstab
defined correctly?


--
Shane D. Johnson
IT Administrator
Rasmussen Equipment


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/CAPLO1L54GouThyhf_j4TGP6S...@mail.gmail.com

Brian

unread,
May 22, 2013, 6:20:03 PM5/22/13
to
On Wed 22 May 2013 at 11:20:38 -0700, Gary Roach wrote:

> On 05/21/2013 04:24 PM, Gary Roach wrote:
>
> I reinstalled grub2. The same problem persists.

Does this refer to reinstalling the grub packages or to the command

grub-install /dev/sdX ?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130522221423.GC3596@desktop

Gary Roach

unread,
May 22, 2013, 8:40:02 PM5/22/13
to
On 05/22/2013 11:20 AM, Gary Roach wrote:
To all the questions.

I reinstalled grub2. The same problem persists.
I have run update-grub2 (a stub that runs grub-mkconfig for grub2)  several times with no improvement. i also ran grub-mkconfig directly. Same results. See listing below.
I've had Wheezy on these systems for a long time. I didn't check the wifes system for a long time and there was a flurry of changes shortly before Wheezy went stable. I think that is why there where so many updates. I have also checked /etc/apt/source.list to make sure. Everything is set to stable at this point.

root@xxxxxx:/etc/apt# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.2.0-4-686-pae
Found initrd image: /boot/initrd.img-3.2.0-4-686-pae
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
done
I hope this answers everyone's questions.

Gary R.




To all,

I reinstalled grub2 with "Aptitude reinstall grub2". The installation seemed to work fine. I updated grub afterward.

I use ext4 with the usual - MBR, extended, swap - structure on a single 500 GB disk. The fstab is the same as I have been using since I built the systems and is right out of the man page. I also have 2 identical systems. The other works fine. I have checked the grub.cnf and other files against the good system and have not been able to find any differences.

I'm really up against it at this point. If someone doesn't come up with a fix soon I am going to start putting "echo" statements into the grub files to see if I can find the error. A very messy process.

Gary R.

Goh Lip

unread,
May 23, 2013, 2:30:01 AM5/23/13
to
On Thu, 23 May 2013 07:34:45 +0800, Gary Roach <gary71...@verizon.net>
wrote:

> To all,
>
> I reinstalled grub2 with "Aptitude reinstall grub2". The installation
> seemed to work fine. I updated grub afterward.
>

Brian asked
>> grub-install /dev/sdX ?

So..
# grub-install --recheck /dev/sdX
# update-grub


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/op.wxixb...@localhost.localdomain

Gary Roach

unread,
May 23, 2013, 7:10:01 PM5/23/13
to
On 05/21/2013 04:24 PM, Gary Roach wrote:
Hi all,

Well the easy way to fix this problem is to go to www.sourceforge.net/p/boot-repair/home/Home/ and download the .iso file of thelr boot loader repair disk. Burn a disk, stuff it in your CD/DVD player, reboot your system and sit back and watch the wheels turn. Punch the Repair button when presented. Remove the disk and reboot. Your done. Great package.

Gary R.
0 new messages