Bug#704932: grub-pc: Grub fails installation when installing vm

Giuseppe Paterno' gpaterno at gpaterno.com
Sun Apr 7 20:44:21 UTC 2013


Package: grub-pc
Version: 1.98+20100804-14+squeeze1
Severity: normal


Hi! I'm trying to install a virtual machine using KVM.
I run debootstrap by mounting the disk in the host filesystem, say /mnt
Then I chroot to the /mnt, mount proc and sys and try to run grub.
However, I got the following:

# /usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=fs -v
/boot/grub
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
Device /dev/sda1 not found
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
Device /dev/sda1 not found
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: changing current directory to /dev.
/usr/sbin/grub-probe: info: changing current directory to pts.
/usr/sbin/grub-probe: info: changing current directory to mapper.
/usr/sbin/grub-probe: info: changing current directory to shm.
/usr/sbin/grub-probe: info: changing current directory to network.
Device /dev/sda1 not found
/usr/sbin/grub-probe: info: /dev/sda1 starts from 0.
/usr/sbin/grub-probe: info: opening the device hd0.
/usr/sbin/grub-probe: info: the size of hd0 is 2097152.
/usr/sbin/grub-probe: info: Partition 0 starts from 2048.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. 
Check your device.map.

Can you please help me?
Thanks!
Cheers,
    Giuseppe


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/iss-root / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0
/dev/mapper/virtvg-a1335dfe--196c--49a2--ba41--28379bbe8d94.disk0-1 / ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
*********************** END /boot/grub/device.map

-- System Information:
Debian Release: 6.0.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debco 1.5.36.1                  Debian configuration management sy
ii  grub-common    1.98+20100804-14+squeeze1 GRand Unified Bootloader, version 
ii  libc6          2.11.3-4                  Embedded GNU C Library: Shared lib
ii  libdevmapper1. 2:1.02.48-5               The Linux Kernel Device Mapper use
ii  ucf            3.0025+nmu1               Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
* grub-pc/install_devices_failed: true
* grub-pc/install_devices: /dev/sda
  grub-pc/postrm_purge_boot_grub: false
  grub2/linux_cmdline_default: quiet
  grub-pc/install_devices_disks_changed:
  grub-pc/chainload_from_menu.lst: true
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/disk_description:
* grub2/linux_cmdline:
  grub-pc/mixed_legacy_and_grub2: true
  grub-pc/install_devices_empty: false



More information about the Pkg-grub-devel mailing list