Debian Bug report logs -
#567582
boot failure: "the symbol 'grub_env_find' not found"
Reported by: Harald Dunkel <harald.dunkel@t-online.de>
Date: Fri, 29 Jan 2010 22:18:06 UTC
Severity: grave
Merged with 554790,
558312,
558748,
561766,
564928,
565210,
567230,
574350,
586458
Found in versions grub2/1.97+20091125-1, grub2/1.97~beta3-1, grub2/1.98+20100617-1, grub2/1.98-1, grub2/1.98~20091229-1, grub2/1.98~20100110-1, grub2/1.98~20100115-1, grub2/1.98~20100128-1
Fixed in version grub2/1.98+20100702-1
Done: Colin Watson <cjwatson@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Fri, 29 Jan 2010 22:18:09 GMT) (full text, mbox, link).
Acknowledgement sent
to Harald Dunkel <harald.dunkel@t-online.de>:
New Bug report received and forwarded. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Fri, 29 Jan 2010 22:18:09 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: grub-pc
Version: 1.98~20100128-1
Severity: grave
After the upgrade I get the message
GRUB loading.
Welcome to GRUB!
error: the symbol 'grub_env_find' not found.
Entering rescue mode...
on the next reboot. The boot menu is not shown.
Moving back to version 20100126 makes the problem go away.
Regards
Harri
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Sat, 30 Jan 2010 10:03:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Felix Zielcke <fzielcke@z-51.de>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Sat, 30 Jan 2010 10:03:04 GMT) (full text, mbox, link).
Message #10 received at 567582@bugs.debian.org (full text, mbox, reply):
forcemerge 567582 554790
thanks
Am Freitag, den 29.01.2010, 20:12 +0100 schrieb Harald Dunkel:
> Package: grub-pc
> Version: 1.98~20100128-1
> Severity: grave
>
> After the upgrade I get the message
>
> GRUB loading.
> Welcome to GRUB!
>
> error: the symbol 'grub_env_find' not found.
> Entering rescue mode...
>
> on the next reboot. The boot menu is not shown.
>
> Moving back to version 20100126 makes the problem go away.
>
Please check with `echo GET grub-pc/install_devices |
debconf-communicate' what device is stored in there.
Probable it's not the one where your BIOS boots from. Or the kernel/udev
decided to name it different when grub-pc got upgraded.
Run `sudo dpkg-reconfigure grub-pc' to get prompted for the device
stored in there.
You can also decide to not choose anyone so grub-install doestn't get
run at all during package upgrades, but then it can still happen that
update-grub generates a config with which you can't boot.
And at least you have to think about running grub-install before
reporting bugs. Because then grub2 won't get upgraded at all.
--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Sat, 30 Jan 2010 12:27:14 GMT) (full text, mbox, link).
Acknowledgement sent
to Harald Dunkel <harald.dunkel@t-online.de>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Sat, 30 Jan 2010 12:27:14 GMT) (full text, mbox, link).
Message #17 received at 567582@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi Felix,
On 01/30/10 11:01, Felix Zielcke wrote:
>
> Please check with `echo GET grub-pc/install_devices |
> debconf-communicate' what device is stored in there.
Stored in _where_?
> Probable it's not the one where your BIOS boots from. Or the kernel/udev
> decided to name it different when grub-pc got upgraded.
>
# echo GET grub-pc/install_devices | debconf-communicate
0 /dev/sda, /dev/sdb
# cat /proc/partitions
major minor #blocks name
8 0 976762584 sda
8 1 33559753 sda1
8 2 943200247 sda2
8 16 976762584 sdb
8 17 33559753 sdb1
8 18 943200247 sdb2
8 32 1465138584 sdc
8 33 1465138550 sdc1
8 48 976762584 sdd
8 49 976762550 sdd1
9 0 1886400256 md0
259 0 33554434 md0p1
259 1 16777220 md0p2
259 2 33554436 md0p3
259 3 1802514164 md0p4
/dev/sda2 and /dev/sdb2 provide a software RAID0 (/dev/md0).
The PC is supposed to boot from /dev/md0p3. /dev/sda1 and
/dev/sdb1 were the /boot partitions I had used for the old
grub. /dev/sdc and /dev/sdd do not provide a boot filesystem.
On the next reboot the list of partitions might look completely
different, while the "GET" command shown above still says
"0 /dev/sda, /dev/sdb". Is this correct?
Would you suggest to move to GPT? AFAIK is supports UUIDs on
partition level, but I do not know if grub2 makes use of it.
Looking closely I found a problem with grub-probe at install
time of 20100128:
# dpkg -i grub-common_1.98~20100128-1_amd64.deb grub-pc_1.98~20100128-1_amd64.deb
(Reading database ... 156414 files and directories currently installed.)
Preparing to replace grub-common 1.98~20100115-1 (using grub-common_1.98~20100128-1_amd64.deb) ...
Unpacking replacement grub-common ...
Preparing to replace grub-pc 1.98~20100115-1 (using grub-pc_1.98~20100128-1_amd64.deb) ...
Unpacking replacement grub-pc ...
Setting up grub-common (1.98~20100128-1) ...
Installing new version of config file /etc/grub.d/10_linux ...
Installing new version of config file /etc/grub.d/00_header ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up grub-pc (1.98~20100128-1) ...
/usr/sbin/grub-probe: error: no such partition.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
/usr/sbin/grub-probe: error: no such partition.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32.7
Found initrd image: /boot/initrd.img-2.6.32.7
/usr/sbin/grub-probe: error: no such partition.
/usr/sbin/grub-probe: error: no such partition.
Found linux image: /boot/vmlinuz-2.6.32.6
Found initrd image: /boot/initrd.img-2.6.32.6
Found linux image: /boot/vmlinuz-2.6.32-trunk-amd64
Found initrd image: /boot/initrd.img-2.6.32-trunk-amd64
Found memtest86 image: /boot/memtest86.bin
Found Debian GNU/Linux (squeeze/sid) on /dev/md0p1
/usr/sbin/grub-probe: error: no such partition.
/usr/sbin/grub-probe: error: no such partition.
done
If I move back to the testing version, then I get
# dpkg -i grub-common_1.98~20100115-1_amd64.deb grub-pc_1.98~20100115-1_amd64.deb
(Reading database ... 156414 files and directories currently installed.)
Preparing to replace grub-common 1.98~20100115-1 (using grub-common_1.98~20100115-1_amd64.deb) ...
Unpacking replacement grub-common ...
Preparing to replace grub-pc 1.98~20100115-1 (using grub-pc_1.98~20100115-1_amd64.deb) ...
Unpacking replacement grub-pc ...
Setting up grub-common (1.98~20100115-1) ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up grub-pc (1.98~20100115-1) ...
Installation finished. No error reported.
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32.7
Found initrd image: /boot/initrd.img-2.6.32.7
Found linux image: /boot/vmlinuz-2.6.32.6
Found initrd image: /boot/initrd.img-2.6.32.6
Found linux image: /boot/vmlinuz-2.6.32-trunk-amd64
Found initrd image: /boot/initrd.img-2.6.32-trunk-amd64
Found memtest86 image: /boot/memtest86.bin
Found Debian GNU/Linux (squeeze/sid) on /dev/md0p1
done
This is _without_ reboot, i.e. the partition list is the same
as shown above. /boot/grub/device.map says after installing
20100115:
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd
Hope this helps. Regards
Harri
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Sat, 20 Mar 2010 12:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Andrey Nikitin <andrey.d.nikitin@gmail.com>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Sat, 20 Mar 2010 12:39:03 GMT) (full text, mbox, link).
Message #24 received at 567582@bugs.debian.org (full text, mbox, reply):
Hi, I confirm this problem.
I have received precisely same error after upgrade to version 1.98-1 (I
do not remember from what version).
At grub-pc configure there were errors (grub-probe).
Then I (by grup-pc recommendation) have executed update-grub and
rebooted the system.
I have restored system booting only by downgrade to version
1.98~20100115-1
/boot mount
md0 : active raid1 sdb1[1] sda1[0]
96256 blocks [2/2] [UU]
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Sun, 21 Mar 2010 10:03:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Harald Dunkel <harri@darkharri.de>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Sun, 21 Mar 2010 10:03:13 GMT) (full text, mbox, link).
Message #29 received at 567582@bugs.debian.org (full text, mbox, reply):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Using 1.98-1 I haven't got this problem anymore.
Is it possible that this message come up when MBR and the grub
version do not match? My PC changes the disk sequence on almost
every reboot. What happens if there is an old grub boot sector
on hd0, and a new (different) grub version on the boot disk, e.g.
a software RAID?
Is there some tool to obtain information from the grub MBR for
verification?
Regards
Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkul6owACgkQUTlbRTxpHjfLpQCeMTzqs3DdgHjD8mzn2UToPkHg
xN0AmwVbIr2MGyImKFbAEUpltKmxn6e0
=lPEr
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Tue, 23 Mar 2010 19:54:03 GMT) (full text, mbox, link).
Acknowledgement sent
to A Mennucc <debdev@mennucci.sns.it>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Tue, 23 Mar 2010 19:54:03 GMT) (full text, mbox, link).
Message #34 received at 567582@bugs.debian.org (full text, mbox, reply):
hi,
I was biten by this bug
here are some info, hoping they help
I have two hard disks /dev/sda /dev/sdb,
each 500GB , each with 4 primary partitions
(I created an identical layout in them two),
the first partition /dev/sda1 is a standard ext3 containing /boot ;
the last one is a RAID1 partition, so that
/dev/sda4 /dev/sdb4 -> /dev/md0
and inside /dev/md0 I have LVM2, and
inside LVM2 I have all other partitions,
including /
After I update
grub-pc 1.98~20100115-1 -> 1.98-1
the bug appeared
debconf info
# debconf-show grub-pc
grub2/kfreebsd_cmdline:
grub-pc/linux_cmdline: fillme
* grub2/linux_cmdline:
* grub-pc/chainload_from_menu.lst: false
grub-pc/kopt_extracted: true
* grub-pc/install_devices: /dev/sda
grub-pc/postrm_purge_boot_grub: false
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
----------------------------
Let me also report how I solved the problem, so as to help
people who may be Googling around
I booted with an Ubuntu-live CD 9.10, I
opened a terminal, I became root using
$ sudo bash -l
then
$ apt-get install mdadm
then
$ mdadm --assemble --scan
at this point Ubuntu finds out about the new device and automatically scans it using LVM
(all new devices LVM magically appear in the "My Computer" window)
then I mounted my root and boot in right order under /mnt
$ mount /dev/myraidlvm/root /mnt/
$ mount /dev/sda1 /mnt/boot/
then
$ grub-install --root-directory=/mnt /dev/sda
then shutdown,
and now it is booting again.
a.
--
Andrea Mennucc
"E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Sat, 27 Mar 2010 00:09:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Westvik <andreas@usikret.net>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Sat, 27 Mar 2010 00:09:03 GMT) (full text, mbox, link).
Message #39 received at 567582@bugs.debian.org (full text, mbox, reply):
I just updated my Debian squeeze i386 on Thursday 25 of March and got this error as well.
So now Im stuck in grub rescue. This is the third time in 2010 grub2 rage havoc on my setup.
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Mon, 29 Mar 2010 13:48:03 GMT) (full text, mbox, link).
Acknowledgement sent
to bdl@fwr.on.ca:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Mon, 29 Mar 2010 13:48:03 GMT) (full text, mbox, link).
Message #44 received at 567582@bugs.debian.org (full text, mbox, reply):
Same problem.
To fix:
Boot with Ubuntu-live 9.10
Become root, mount partition somewhere
"chroot mount/point grub-install /dev/sda"
(assuming /dev/sda/ is the drive as seen by Ubuntu)
reboot
It's an old Compaq portable, debian kernels still use hda, Ubuntu uses
sda, and I've got grub2 to use the UUID for drive id.
Information forwarded
to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#567582; Package grub-pc.
(Tue, 30 Mar 2010 04:51:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Robert McAuley <rmcauley@rainwave.cc>:
Extra info received and forwarded to list. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>.
(Tue, 30 Mar 2010 04:51:03 GMT) (full text, mbox, link).
Message #49 received at 567582@bugs.debian.org (full text, mbox, reply):
Running on a HP DL360 G6, using a HP SmartArray i450 on hardware RAID
mode, got the grub_env_find failure after a grub2 update recently.
(grub install device is /dev/cciss/c0d0) Was highly unexpected and
glad the server was in staging, so as to not affect downtime. I'm
likely going to fall back to grub 1 once I can get my machine booted
again. Booting works after using the Debian Squeeze Live Rescue CD
and using grub-install from there.
Added tag(s) pending.
Request was from Colin Watson <cjwatson@debian.org>
to control@bugs.debian.org.
(Fri, 02 Jul 2010 10:36:09 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 18 Aug 2010 07:32:12 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 7 09:54:48 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.