On Sun, 2007-04-22 at 11:10 +0100, Paul wrote:
Assuming root is on hda7, the grub command should have been `root (hd0,6)` followed by `setup (hd0)`.
Grub uses a numbering system starting at zero for it's drive designations which isn't quite the same as Linux ;(.
Perhaps I'm not doing this correctly.
Apart from a little confusion over grub's numbering system, you're well on the way.
That's the second time on this thread that I have been halfway through writing a reply when Paul has jumped in with a speedy response :-)
Anyway in addition to Paul's suggestion I think the reason the original grub-install plan didn't work is that if you are running grub-install from a drive other than the intended boot drive (i.e. you have booted from a live cd and are running grub-install from there) then I think you have to give the intended boot drive as an argument.
So in your case
grub-install /dev/hda
There is no need to specify the partition number here, as grub should then scan the whole drive for bootable partitions and rebuild/reinstall grub for you. This is still assuming that you only have one physical hard drive in your machine.
PS. To get to the rescue mode from the ubuntu media, type
linux rescue
At the boot prompt when you first boot from the Ubuntu CD, this may help you a bit because it will hopefully mount your existing filesystems first which I think is a requirement for the method Paul is suggesting and may also be a requirement for mine.