On 06/02/2011 15:01, Joseph Heenan wrote:
One issue I ran into (will only affect older VPSes I
believe) was:
# update-grub
Searching for GRUB installation directory ... found: /boot/grub
warning: grub-probe can't find drive for /dev/xvda1.
grub-probe: error: Cannot find a GRUB drive for /dev/xvda1. Check
your device.map.
the solution to which was posted by Andy here:
http://lists.bitfolk.com/lurker/message/20080529.142153.954fedf4.el.html
namely:
sudo sh -c "echo '(hd0) /dev/xvda' > /boot/grub/device.map && cd
/dev
&& mknod xvda b 202 0"
which did initially sort things out, but since the reboot after
installing the kernel and upgrading udev that no longer seems to fix
things - any suggestions would be great!
I've not found a solution for this
yet, but running
strace -- grub-probe -vvvv --device-map=/boot/grub/device.map -t device
/ 2>&1 | less
and browsing the output I noticed this line, which I presume is the issue:
open("/dev/xvda", O_RDONLY|O_LARGEFILE) = -1 ENXIO (No such device or
address)
I presume the older version of grub-probe was less fussy.
Joseph