I am having major problems with grub.
My setup is:-
A Dell Precision 390.
Two Sata, 160 gig hard drives sda and sdb
I have RHEL5 and Debian on SDB (the Second hard drive) partitions 1 and 2.
I want to put Ubuntu on SDA1 (the first hard drive).
The install process is fine but I cannot get the installer to update the existing grub on sdb which loads RHEL and Debian.
I have tried manually adding an entry to menu.lst for the sdb grub but attempts at booting result in:-
Error 15 or "Error 17 : Cannot Mount the selected partition" errors.
I have also tried to install grub using 'grub-install' with the following:-
Searching for GRUB installation directory ... found: /boot/grub
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
machine_name:~# ls /boot/
This looks encouraging but when I ls
the drive there is only the following:-
i.e. the Kernel images are there, but no way of loading them.
grub-install --root-directory=/boot /dev/sda2
This put a boot directory into the existing one on sdb which is not what I want!
I tried mounting sda1 to mnt and then doing:-
machine_name:/mnt# grub-install --root-directory=/mnt /dev/sda1
mkdir: cannot create directory `/mnt/boot': Read-only file system
No luck there either.
fdisk /dev/sda > p
Device Boot Start End Blocks Id System
/dev/sda1 * 1 37 297171 83 Linux
/dev/sda2 38 9598 76798732+ 83 Linux
/dev/sda3 9599 19452 79152255 83 Linux
sda1 is a 300m boot partition where I would like grub to go.
sda2 is for /
In the BIOS settings there is NO way to specify the hard drive order. SO I tried physically swapping the cables over, but the message stated that it could not find an OS to load ....
Can anyone advise me on what to do here!