Bug#567582: boot failure: "the symbol 'grub_env_find' not found"

Harald Dunkel harald.dunkel at t-online.de
Sat Jan 30 12:22:22 UTC 2010


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100130/036446df/attachment.pgp>


More information about the Pkg-grub-devel mailing list