Installing grub to dual boot

Net Llama! netllama
Fri Jun 10 09:46:28 PDT 2005


On Fri, 10 Jun 2005, Brad De Vries wrote:
> Everyone/Anyone, I could use some assistance here.  I'll start with a
> little history to make the current state and desired direction a bit
> clearer:
>
> 1) Got a laptop with win2000 pro from work with a 20GB HD formatted FAT32.
> 2) Ran the disk defragment and error checking tools so everything was "clean."
> 3) Booted Knoppix and successfully ran "parted" to reduce the FAT32
> partition from 20GB to 10GB.
> 4) System failed to boot win2000 due to error "NTLDR is missing."
> Figured I'd fix that later.
> 5) Installed Fedora Core 3 into the newly freed up 10GB.
> 6) System booted fine into FC3 and the crowd went wild.
> 7) Verified the grub.conf had an option to the win2000 side and rebooted.
> 8) Chose the win2000 option from the grub menu but it failed to boot
> due to "NTLDR is missing" error.
> 9) After much googling, hunting, and trying I was able to fix the
> win2000 boot problem but in doing so overwrote grub from the MBR.
> 10) Figured that since the original problem (see step 4) came from
> changing the disk partition size, all I'd have to do is boot the linux
> side and run grub-install.
> 11) I've booted from the FC3 disk in rescue mode and Knoppix and
> neither will successfully run "grub-install /dev/hda2".  The command
> hangs.
>
> So the current state is that I can boot win2000 fine (hda1,) I have
> FC3 installed (hda2) but I can't re-install grub so that I can boot
> either O/S.
>
> What I'd like is to have grub appear at boot time and allow me to
> choose either FC3 or win2000.  How do I re-install grub to allow that
> to happen?

What i typically do to fix this sort of problem is boot with Knoppix,
mount all the assorted linux partitions, chroot into the linux root, and
then run grub-install.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                        netllama at linux-sxs.org
LlamaLand				http://netllama.linux-sxs.org


More information about the Linux-users mailing list