Bug#566735: grub-pc: Unable to boot from LVM, "error: no such disk".

David L. Anselmi anselmi at anselmi.us
Sun Jan 24 20:37:29 UTC 2010


Package: grub-pc
Version: 1.98~20100101-1
Severity: important

Hi,

I'm unable to get grub-pc to boot.  When installed it says this on boot:

error: no such disk
Entering rescue mode
error: no such disk

and gives me a rescue prompt.  By running grub-install --modules=minicmd I could
see this:

lsmod:
lvm
part_msdos
ext2
fshelp
biosdisk
minicmd

ls:
(hd0) (hd0,2) (hd0,1) (fd0)

So it looks like grub can't see the LVM partitions.

I have a similar system that works fine with grub2.  What can I do to figure out
why LVM doesn't show up?

Thanks!
Dave

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vg0-root / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mapper/vg0-home /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg0-tmp /tmp ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg0-usr /usr ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/mapper/vg0-var /var ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(fd0)	/dev/fd0
(hd0)	/dev/hda
(hd1)	/dev/sda
*********************** 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 lvm
insmod ext2
set root=(vg0-usr)
search --no-floppy --fs-uuid --set 0f91c483-e04d-4e47-94a3-f355ed87e822
if loadfont /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=
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod lvm
insmod ext2
set root=(vg0-usr)
search --no-floppy --fs-uuid --set 0f91c483-e04d-4e47-94a3-f355ed87e822
insmod png
if background_image /share/images/desktop-base/nightly-wallpaper.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" {
	insmod lvm
	insmod ext2
	set root=(vg0-root)
	search --no-floppy --fs-uuid --set 538ef660-a731-49b9-a15b-e6e82e7e09b1
	linux	/boot/vmlinuz-2.6.32-trunk-686 root=/dev/mapper/vg0-root ro  quiet
	initrd	/boot/initrd.img-2.6.32-trunk-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686 (recovery mode)" {
	insmod lvm
	insmod ext2
	set root=(vg0-root)
	search --no-floppy --fs-uuid --set 538ef660-a731-49b9-a15b-e6e82e7e09b1
	linux	/boot/vmlinuz-2.6.32-trunk-686 root=/dev/mapper/vg0-root ro single 
	initrd	/boot/initrd.img-2.6.32-trunk-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows 2000 Professional (on /dev/hda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 9c68a0da68a0b484
	drivemap -s (hd0) ${root}
	chainloader +1
}
### 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 testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.28          Debian configuration management sy
ii  grub-common              1.98~20100101-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: false
* grub-pc/install_devices: /dev/hda
  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