I used Ubuntu 8.04 which I installed normally on a 40Gb partition of a 160Gb hard drive , then I installed XP on another partition . consequently no grub loader at startup .I tried to reinstall it manually using a live cd :"
grub> root (hd0,5)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,5)/boot/grub/stage2 /boot/grub/menu.lst"... failed
Error 12: Invalid device requested" as you can see it doesn't work

so I decided to install kubuntu 9.04 via the live cd . but it doesn't detect the partitions , it suggests to use the entire disk , I tried the manual partitioning but the problem persists . (I attached a screen shot)
here are the partitions : "
ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~# fdisk -l
omitting empty partition (5)
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x84aa84aa
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4972 39937558+ 7 HPFS/NTFS
/dev/sda2 4973 10199 41985877+ 7 HPFS/NTFS
/dev/sda3 10200 19457 74364885 f W95 Ext'd (LBA)
/dev/sda4 15436 17135 13655218+ b W95 FAT32
/dev/sda5 10200 15435 42058107 83 Linux
/dev/sda6 17136 18974 14771736 b W95 FAT32
/dev/sda7 18975 19457 3879666 82 Linux swap / Solaris"
I need help with this

please tell me if you have any suggestions about both problems (grub re-installation/disk scan)
Comment