LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How can i fix Grub loading Stage 2 errors in FC 6 (https://www.linuxquestions.org/questions/fedora-35/how-can-i-fix-grub-loading-stage-2-errors-in-fc-6-a-517662/)

anando.1980 01-09-2007 07:08 AM

How can i fix Grub loading Stage 2 errors in FC 6
 
i download linux-2.6.19 package.

I try to Recompile it.


When i boot "new kernel" i got following errors

"mounting root filesystem

mount: could not found the file system '/dev/root'
setting up other filesystems
setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fatab.sys, mounting internal defualts
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory

switching to new root

unmounting old /dev

unmounting old /proc
unmounting old /sys
switchroot: mount failed : No such file or directory

kernel panic - not syncing: attempted to kill init!"


THIS IS MY GRUB.CONF file



# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,4)
# kernel /vmlinuz-version ro root=/dev/sda6
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,4)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title Other
rootnoverify (hd0,0)
chainloader +1
title Fedora Core (2.6.192.6.19-rc2-git4)
root (hd0,4)
kernel /vmlinuz-2.6.192.6.19-rc2-git4 ro root=/dev/sda6
initrd /initrd-2.6.192.6.19-rc2-git4.img

Please send the solution

weibullguy 01-09-2007 12:14 PM

Your default is the 'Other' and there is no 'Other'. See the stuff in red below. GRUB starts counting at 0, not 1. Change the default to 0 to use the old kernel or 2 to use the new kernel. Alternately, delete the 'Other' stuff (in red), then your new kernel will be the default kernel. Also, comment out the hiddenmenu line (put a # in front) so you can choose the kernel to use, not RedHat.

Quote:

default=1
timeout=10
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,4)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title Other
rootnoverify (hd0,0)
chainloader +1

title Fedora Core (2.6.192.6.19-rc2-git4)
root (hd0,4)
kernel /vmlinuz-2.6.192.6.19-rc2-git4 ro root=/dev/sda6
initrd /initrd-2.6.192.6.19-rc2-git4.img

XavierP 01-09-2007 04:10 PM

Moved: This thread is more suitable in Fedora and has been moved accordingly to help your thread/question get the exposure it deserves.

decrepit 01-10-2007 04:38 AM

I think "root=/dev/sda6" is probably wrong. When the grub screen comes up press "e" for edit then try editing that line. first thing I'd try is copy the old kernel entry ie "root=LABEL=/".
hit b for boot and see what hapens. If that works modify grub.conf accordingly, otherwise change sda6
to 5 or 7 and again see what hapens. If you can access the HD some other way and use fdisk -l you can be a bit more scientific, and check what partion root is.


All times are GMT -5. The time now is 07:39 PM.