Steve wrote: > Hello everyone, > I'm having a problem doing what SHOULD be a simple straightforward > procedure. > A friend of mine was running Kubuntu (finally), but needed to > re-install windows. > While windows did not touch his secondary disk which had his full > linux install, it did for some reason eat grub and now Linux will not > boot. > > He brought the computer to me, and yep windows at his MBR installed Grub. > I put the Kubuntu disk in and entered rescure mode, mounted /dev/hdb > (where linux is at) and tried to reinstall grub using > grub-install /dev/hda > > At this point it says it cannot find grub-install, and sure enough I > cannot seem to find it either. > > Does anyone have any advice on how we can resolve this issue?
Have you tried running grub directly? Once in rescue mode, type "grub", then at the grub prompt, type: root (hd1,0) setup (hd0) Linux labels disks with letters and partitions with whole numbers. Grub replaces both with zero-based indexes. The command "root (hd1,0)" means "my Linux boot partition is /dev/hdb1". That's just a guess; if it's actually /dev/hdb2, use "root (hd1,1)". The command "setup (hd0)" means "install grub in the boot sector of the first drive". Grub doesn't change anything until you type the setup command, and even then, it runs through a bunch of checks before it actually writes to the disk. Note that in this configuration, you're depending on both disks to boot. You might want to also "setup (hd1)" so that you can at least boot to Linux in case the first drive fails. Shane /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
