Re: My Machine Won't Boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I reinstalled my entire system and now have a kernel and grub, but the machine won't get passed the device listing. It is as if it can't figure out where to boot from. The boot order is correct in the bios. It is as if there is no MBR on /dev/sda? Any suggestions?

I looked at my other linux computer which is Debian. the only difference I can see is that my other computer has
root (hd0,1) on working computer and
root (hd0,0) on the broken machine. What does that number to the right of the comma mean? How do you fix an MBR?

----- Original Message ----- From: <akonstam@xxxxxxxxxxx>
To: "For users of Fedora Core releases" <fedora-list@xxxxxxxxxx>
Sent: Monday, February 13, 2006 10:14 AM
Subject: Re: Installing Grub And A Kernel


On Sun, Feb 12, 2006 at 10:35:30500, Jim Cornette wrote:
Rejean Proulx wrote:
>I need to reinstall my kernel and grub using the rescue cd or the rescue
>option on the install dvd for fc4. I tried the command grub-install but >it
>won't install grub  because the kernel hasn't changed. There is no
>kernel on
>md0. How do I make it install the kernel again. I am trying to fix my >boot
>partition to get it to boot.
>
>As there is no screen reader on the fc4 dvd, it is difficult for me to
>search the cd as I must get my wife to read the screens. Sure wish >speakup
>was on that cd.
>
>Is there a documented list of tools and scripts documented somewhere for
>the
>rescue process?
>
>Rejean Proulx
>Visit my family at
>http://interfree.ca
>MSN is:
>rejean@xxxxxxxxxxxx
>

The rescue CD should contain tools to make recovery easier for all.

Anyway, I believe you want to enter Linux rescue. Next you want to
chroot /mnt/sysimage.
You also want be sure that you have the /boot partition on your system
mounted. This should have become detected by the rescue mode entry.
However, since you do not have a kernel installed, you might need to
mount the boot partition. Usually you will have a /mnt/sysimage for your
root partition and another /mnt/sysimage/boot partition before you
chroot to /mnt/sysimage.

List of tasks you need to do.
- Get into rescue mode and chroot to /mnt/sysimage.
- Ensure that you have your /boot partition mounted.
- Change to the RPMS directory or a directory which contains the kernel
that you want to install.
- Install the desired kernel RPM with rpm -ivh
- check /etc/grub.conf to see if it contains information for the kernel.
- run grub-install /dev/<my-boot-drive>
- reboot

I hope this advise helps.

This is ok as far as it goes but grub-install sometimes does not work
in situations such as this. The you do this.
Once you have chroot-ed and checked the grub.conf then run the
following:
grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Of course the hd0 and hd0.0 depend on where you want to put the MBR.
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
telephone: (210)-999-7484

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux