Graham Bleach wrote:
2009/5/10 John Constable <john(a)kript.net>et>:
Googling, I found a post on this very list with
the exact error and
recommended fix;
http://lists.bitfolk.com/lurker/message/20080529.142153.954fedf4.el.html
I'd implement it right away apart from the bit where Andy says 'images
installed after today will be setup like this from the start', and as my
VPS is only a few weeks old, I thought I'd ask around to see if there
are any known issues, or a newer, more recommended fix..
I would start by looking in /boot/grub/device.map to see if the
recommended config is in there.
I've just run into the same error, when trying to bring my Debian
Lenny-based VM up to date, i.e. just applying the updates via aptitude,
which wanted to install linux-image-2.6.26-2-xen-686 (2.6.26-15lenny2).
In my case, the error message is
/boot/grub$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
warning: grub-probe can't find drive for /dev/sda1.
grub-probe: error: Cannot find a GRUB drive for /dev/sda1. Check your
device.map.
/boot/grub/device.map was initially empty. I tried changing it to
(hd0) /dev/sda
and also
(hd0,0) /dev/sda1
but neither made any difference.
'mount' says:
$ mount
/dev/sda1 on / type ext3 (rw,noatime,nodiratime)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
Can anyone suggest what should be in device.map?
cheers
Chris