At 01:16 PM 12/22/2008, Carl Lowenstein wrote:
On Sun, Dec 21, 2008 at 10:30 PM, Lief Hendrickson <limaho...@cox.net> wrote:
>
> 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
OK, it' looks like a standard default Fedora installation.
> 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?)
The Knoppix desktop shows hda1 and hda2 but in my experience does not
mount them. It just recognizes that they are present. But your
Knoppix might be different from mine.
If Knoppix has mounted hda1, you should be able to make it writeable
by right-clicking on its icon and selecting something like "make
writeable". That's the purpose of the "rw" in the command line,
stands for "read and write". On the command line, to make an
already-mounted disk writeable:
# mount -o remount,dev,rw /mnt/hda1
> I then entered
> #chroot /mnt/hda1 grub-install /dev/hda
This shows that Fedora has hidden grub-install from you, it must be
somewhere in the LVM on hda2.
> Result:
> chroot: cannot run command 'grub-install' :No such file or directory
So you have to use the grub-install that resides on the Knoppix disk.
# grub-install --root-directory=/mnt/hda1 /dev/hda
> 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.
There will be no dual-boot option, since grub-install will not find
any Windows to make part of a dual-boot system.
This is the second approximation. Again, if this works you are done,
if it doesn't work, give the details of what happened and we can try
for the third approximation.
carl
--
carl lowenstein marine physical lab u.c. san diego
clowenst...@ucsd.edu
It worked partly. I got to grub install part and entered:
# grub-install --root-directory=/mnt/hda1 /dev/hda
The result was:
This is the contents of the device map /mnt/hda1/boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/hda
I then shutdown, removed Knoppix CD and rebooted.
It was able to boot from the HD, but it only got to the prompt
grub>
What should I enter at this prompt?
--
KPLUG-Newbie@kernel-panic.org
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie