Bug#530357: grub-pc: grub-probe seems to fail to find the right uuid with 64bits kernel?
Joel Soete
soete.joel at scarlet.be
Sun Dec 20 20:29:30 UTC 2009
Package: grub-pc
Version: 1.98~20091210-1
Severity: normal
*** Please type your report below this line ***
Hello dear grub2 maintainers,
I just buy a week ago a new home PC with help to a kind supplier.
This box is equipped with an quad-core Intel i7:
# cat /proc/cpuinfo | more
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
stepping : 5
cpu MHz : 1596.000
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2
ss ht t
m pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc aperfmperf pni
dtes64 moni
tor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips : 6129.34
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
[snip]
So as far I understand some of my reading, debian image for this type of cpu is the -amd64, thought?
# uname -a
Linux sidh2 2.6.32-trunk-amd64 #1 SMP Thu Dec 17 01:50:34 UTC 2009 x86_64 GNU/Linux
After the reboot with this image all seems to works fine, and so I remove some old linux-image dpkg which in terms rebuild
the grub.cfg file.
Unfortuantely at next reboot, I got following error:
Error: you need to load the kernel first.
I then figure out that grub-probe failed to find out the good uuid;
I just reproduce manualy what grub-mkconfig is doing:
# grub-probe --target=device /boot
/dev/md0
# grub-probe --device /dev/md0 --target=fs_uuid
48dc8603-6702-4644-b1e5-e3c8e235ca48
I just compare with tune2fs -l:
# tune2fs -l /dev/md0
tune2fs 1.41.9 (22-Aug-2009)
Filesystem volume name: boot
Last mounted on: <not available>
Filesystem UUID: 6c2de8c0-40d0-470d-a040-1c2427f9ebb7
[snip]
And restoring this last value in grub.cfg (eventhought it's not supposed to be edited manually), system boot fine again.
Otoh, there isn't any pb with 32bit kernel:
# uname -a
Linux sidh2 2.6.32-trunk-686-bigmem #1 SMP Thu Dec 17 01:08:50 UTC 2009 i686 GNU/Linux
(note that this is the same kernel revision)
# grub-probe --target=device /boot
/dev/md0
root at sidh2:~# grub-probe --device /dev/md0 --target=fs_uuid
6c2de8c0-40d0-470d-a040-1c2427f9ebb7
Cheers,
J.
PS1: it should be related to kernel but tune2fs doen't seems to have this issue;
and personnaly I don't experiment same issue with other 64bit arch (IBM ppc64 LPAR)?
PS2: the entry I manualy change is 'menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64" {'
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/rootvg-root / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/rootvg-DebApt /DebApt ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rootvg-VCTree2 /Extra/CVS ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rootvg-Develop /Extra/Develop ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rootvg-Sources /Extra/Sources ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/md0 /boot ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rootvg-home /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rootvg-tmp /tmp ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rootvg-UsrSrc /usr/src ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/rootvg-var /var ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/hdb
(hd1) /dev/sda
(hd2) /dev/sdb
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
insmod raid
insmod mdraid
insmod lvm
insmod ext2
set root=(rootvg-root)
search --no-floppy --fs-uuid --set 282e7a4c-7dab-4876-91da-dd82c4b2c3af
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
set locale_dir=/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
insmod png
if background_image /grub/moreblue-orbit-grub.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686-bigmem" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.32-trunk-686-bigmem root=/dev/mapper/rootvg-root ro quiet
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686-bigmem (recovery mode)" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.32-trunk-686-bigmem root=/dev/mapper/rootvg-root ro single
initrd //initrd.img-2.6.32-trunk-686-bigmem
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 6c2de8c0-40d0-470d-a040-1c2427f9ebb7
linux //vmlinuz-2.6.32-trunk-amd64 root=/dev/mapper/rootvg-root ro quiet
initrd //initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-amd64 (recovery mode)" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.32-trunk-amd64 root=/dev/mapper/rootvg-root ro single
initrd //initrd.img-2.6.32-trunk-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.32-trunk-686 root=/dev/mapper/rootvg-root ro quiet
initrd //initrd.img-2.6.32-trunk-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686 (recovery mode)" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.32-trunk-686 root=/dev/mapper/rootvg-root ro single
initrd //initrd.img-2.6.32-trunk-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.31-1-686-bigmem" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.31-1-686-bigmem root=/dev/mapper/rootvg-root ro quiet
initrd //initrd.img-2.6.31-1-686-bigmem
}
menuentry "Debian GNU/Linux, with Linux 2.6.31-1-686-bigmem (recovery mode)" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.31-1-686-bigmem root=/dev/mapper/rootvg-root ro single
initrd //initrd.img-2.6.31-1-686-bigmem
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.26-2-686 root=/dev/mapper/rootvg-root ro quiet
initrd //initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)" {
insmod raid
insmod mdraid
insmod ext2
set root=(md0)
search --no-floppy --fs-uuid --set 48dc8603-6702-4644-b1e5-e3c8e235ca48
linux //vmlinuz-2.6.26-2-686 root=/dev/mapper/rootvg-root ro single
initrd //initrd.img-2.6.26-2-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii grub-common 1.98~20091210-1 GRand Unified Bootloader, version
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii ucf 3.0025 Update Configuration File: preserv
grub-pc recommends no packages.
Versions of packages grub-pc suggests:
ii desktop-base 5.0.5 common files for the Debian Deskto
-- debconf information:
grub2/kfreebsd_cmdline:
* grub2/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
grub-pc/kopt_extracted: true
* grub-pc/install_devices: /dev/sdb
grub-pc/postrm_purge_boot_grub: false
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
More information about the Pkg-grub-devel
mailing list