On Sun, Dec 21, 2008 at 7:28 PM, Lief Hendrickson <[email protected]> wrote:
> I am helping a friend with a dual boot PC that had two hard drives.  The
> first HD had Windows and the boot manager.  The second HD has Linux.  The
> first HD failed.  I removed the first HD and made the second HD the new
> master.  The system previously got to Linux via the boot manager, which was
> on the other HD.  It won't boot now.  Can anyone tell me how to get the
> system to boot?  Thanks.

Would help to know what Linux distribution.

Here are some general instructions that might have to be tweaked
depending on the details of the installation.

Boot a Knoppix CD.  You should be able to see the HD partitions.
Probably the Linux root file system is /dev/hda1.
$ sudo su -
# fdisk -l /dev/hda
This will show you the partitions on hda  Remember (write down) this
information, to be able to ask for more specific help if the following
steps don't work:

# mount -o dev,rw /mnt/hda1
Now you can see the file system on  hda1, and verify that it is the right stuff.

# chroot /mnt/hda1 grub-install /dev/hda

This should restore the grub bootloader to the boot block of hda.

# reboot

     carl
-- 
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [email protected]

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

Reply via email to