$ sudo update-grub; echo $?
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-309-ec2
Found initrd image: /boot/initrd.img-2.6.32-309-ec2
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
done
0
## Note above that there are '-ec2' kernels listed. Also, note that the
## errors can be ignored. This was fixed in maverick under bug 623609
## (1.98+20100804-4ubuntu6), but there, the 'update-grub' would exit with
## non-zero, which would cause problems with kernel installation. Because
## kernel it exits zero, we dont care.
## Now, install the new version from proposed:
##
$ sudo apt-get install grub-pc
...
$ dpkg-query --show grub-pc
grub-pc 1.98-1ubuntu9
$ sudo update-grub
Generating grub.cfg ...
Skipping linux image [linux-ec2]: /boot/vmlinuz-2.6.32-309-ec2
Found linux image: /boot/vmlinuz-2.6.32-25-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-25-generic-pae
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Found memtest86+ image: /boot/memtest86+.bin
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
done
I can verify this fix:
$ apt-cache policy grub-pc us.archive. ubuntu. com/ubuntu/ lucid-proposed/main Packages us-west- 1.ec2.archive. ubuntu. com/ubuntu/ lucid-updates/main Packages dpkg/status us-west- 1.ec2.archive. ubuntu. com/ubuntu/ lucid/main Packages
grub-pc:
Installed: 1.98-1ubuntu7
Candidate: 1.98-1ubuntu9
Version table:
1.98-1ubuntu9 0
500 http://
*** 1.98-1ubuntu7 0
500 http://
100 /var/lib/
1.98-1ubuntu5 0
500 http://
$ sudo update-grub; echo $? 2.6.32- 309-ec2 img-2.6. 32-309- ec2 grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. 2.6.32- 25-generic- pae img-2.6. 32-25-generic- pae +.bin grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
/usr/sbin/
/usr/sbin/
/usr/sbin/
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
/usr/sbin/
/usr/sbin/
/usr/sbin/
done
0
## Note above that there are '-ec2' kernels listed. Also, note that the 4ubuntu6) , but there, the 'update-grub' would exit with
## errors can be ignored. This was fixed in maverick under bug 623609
## (1.98+20100804-
## non-zero, which would cause problems with kernel installation. Because
## kernel it exits zero, we dont care.
## Now, install the new version from proposed:
##
$ sudo apt-get install grub-pc 2.6.32- 309-ec2 2.6.32- 25-generic- pae img-2.6. 32-25-generic- pae grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. +.bin grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map. grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
...
$ dpkg-query --show grub-pc
grub-pc 1.98-1ubuntu9
$ sudo update-grub
Generating grub.cfg ...
Skipping linux image [linux-ec2]: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
/usr/sbin/
/usr/sbin/
/usr/sbin/
Found memtest86+ image: /boot/memtest86
/usr/sbin/
/usr/sbin/
/usr/sbin/
done