At 09:47 PM 12/21/2008, Carl Lowenstein wrote:
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
It's a friends computer. The distribution is Fedora, but we don't
know which version until I can boot.
I booted into Knoppix. I may have been wrong about where the boot
manager is located. The Knoppix desktop shows a hda1 and hda2. When
I click on the hda1 icon to show its contents, grub is one of items
shown in the file manager window. Continuing with the steps
above. I opened a command window and entered
$ sudo su -
# fdisk -l /dev/hda
The result was
Device Boot Start End Blocks id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 23421 19525401 8e Linux LVM
I then entered
#mount -o dev,rw /mnt/hda1
Result:
mount: /dev/hda1 already mounted or mnt/hda1 busy
mount: according to mtab, /dev/hda1 is already mounted on /mnt/hda1
(is this because the Knoppix desktop shows hda1 and hda2, which may
indicate they are already mounted?)
I then entered
#chroot /mnt/hda1 grub-install /dev/hda
Result:
chroot: cannot run command 'grub-install' :No such file or directory
Stopped here
Since grub is on hda1, as mentioned above, is there a way to get rid
of the dual boot option, since the other hard drive (the one with
Windows) is no longer present? or is there something else that
should be done? Thanks.
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie