Bug#477069: grub-common: grub-probe Cannot find a GRUB drive for /dev/loop/0

Federico Grau donfede at casagrau.org
Sun Apr 20 18:59:14 UTC 2008


Package: grub-common
Version: 1.96+20080413-1
Severity: normal

I am using loop-aes (via loop-aes-modules-2.6.24-1-686 and
loop-aes-utils) for an encrypted root filesystem.

However, I can not update to a new kernel (automatically) because grub
cannot figure out which drive my encrypted partition is on.

donfede

##########
#
# relevant command output
#
bwing:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              73G  2.6G   67G   4% /
tmpfs                 494M     0  494M   0% /lib/init/rw
udev                   10M  108K  9.9M   2% /dev
tmpfs                 494M     0  494M   0% /dev/shm
bwing:~# mount
/dev/sda2 on / type ext3
(rw,loop=/dev/loop0,gpgkey=/boot/kf_root_bwing_2008-04-20.gpg,encryption=AES256)

bwing:~# grep sda2 /etc/fstab
/dev/sda2       /               ext3
loop=/dev/loop0,encryption=AES256,gpgkey=/boot/kf_root_bwing_2008-04-20.gpg
0       0

bwing:~# losetup -a
/dev/loop/0: [000d]:2180 (/dev/sda2) encryption=AES256 multi-key-v3



################
#
# aptitude install -f errors
#

bwing:~# aptitude install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following partially installed packages will be configured:
  linux-image-2.6.24-1-686
0 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up linux-image-2.6.24-1-686 (2.6.24-6) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Not updating initrd symbolic links since we are being
updated/reinstalled
(2.6.24-5 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.24-5 was configured last, according to dpkg)
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
grub-probe: error: Cannot find a GRUB drive for /dev/loop/0.  Check your
device.map.

User postinst hook script [update-grub] exited with value 1
dpkg: error processing linux-image-2.6.24-1-686 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.24-1-686
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up linux-image-2.6.24-1-686 (2.6.24-6) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Not updating initrd symbolic links since we are being
updated/reinstalled
(2.6.24-5 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.24-5 was configured last, according to dpkg)
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
grub-probe: error: Cannot find a GRUB drive for /dev/loop/0.  Check your
device.map.

User postinst hook script [update-grub] exited with value 1
dpkg: error processing linux-image-2.6.24-1-686 (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.24-1-686
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done






-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 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-common depends on:
ii  base-files                    4.0.3      Debian base system miscellaneous f
ii  libc6                         2.7-10     GNU C Library: Shared libraries

grub-common recommends no packages.

-- no debconf information





More information about the Pkg-grub-devel mailing list