In order to run apt-get upgrade you must first do the following:
#mknod /dev/xvda b 202 0
Edit /boot/grub/device.map:
Replace '(hd0) /dev/sda' with '(hd0) /dev/xvda'
Edit /usr/sbin/update-grub
Replace:
find_device ()
{
if ! test -e ${device_map} ; then
echo quit | grub --batch --no-floppy --device-map=${device_map} > /dev/null
fi
grub-probe --device-map=${device_map} -t device $1 2> /dev/null
}
With:
find_device ()
{
if ! test -e ${device_map} ; then
echo quit | grub --batch --no-floppy --device-map=${device_map} > /dev/null
fi
#grub-probe --device-map=${device_map} -t device $1 2> /dev/null
echo /dev/xvda
}
#update-grub 0
#sed -i "s/xvda/xvda1/g" /boot/grub/menu.lst
Now run apt-get upgrade
Tested on debian 6, if you are unsre about doing this please open a support ticket and it will be done for
you.
This Article was submitted by Inception Hosting Limited - If you found it useful, please consider them as your host