what you need to do is find your ubuntu grub.conf and find the line that actually boots your ubuntu,
copy the full entry to kwrite
then, in mandriva, open a terminal and su to root and type
grub
press enter
type
find /grub.conf
press enter, if it says file not found, type
find /boot/grub/grub.conf
(i think that grub.conf is located there but i'm not 100% sure - so you will have to type the correct path if mine is wrong)
you should be presented with something like hd0,3
type
quit
press enter
now change the entry in your kwrite file to reflect this, all the entries -
for example - from kernel (hd0,4)/boot/vmlinuz-2.6.31.13-desktop586-1mnb + initrd (hd0,4)/boot/initrd-2.6.31.13
to kernel (hd0,3)/boot/vmlinuz-2.6.31.13-desktop586-1mnb + initrd (hd0,3)/boot/initrd-2.6.31.13
save the changes
now in your terminal, type
kwrite /boot/grub/menu.lst
(lst = list NOT 1st)
copy the entries in your kwrite file to the end of menu.lst, leave a space like in my example
example -
title windows
root (hd0,0)
makeactive
chainloader +1
title mandriva 2010.1
kernel (hd1,4)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=66ad03d1-f7c1-40ec-9c3a-89b50fb36dcb resume=UUID=70bdc49d-fac7-47dc-a0cc-d61259b3d545 splash=silent vga=788
initrd (hd1,4)/boot/initrd.img
save changes and exit,
type
reboot
press enter
you should have your ubuntu entry at your grub screen, choose it and if all goes well you should boot into ubuntu