LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-09-2007, 07:08 AM   #1
anando.1980
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
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
 
Old 01-09-2007, 12:14 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,747
Blog Entries: 1

Rep: Reputation: 225Reputation: 225Reputation: 225
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
 
Old 01-09-2007, 04:10 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Fedora and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 01-10-2007, 04:38 AM   #4
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem Grub Loading Stage 2 mbutler31 Fedora - Installation 5 12-29-2007 11:17 AM
Error 17 GRUB Loading stage 1.5, please wait. No keyboard/touch pad response, Unable digital8doug Linux - Newbie 9 10-02-2006 03:14 PM
Help me , Grub loading stage 2 ..can not run continous.. anhvuvnn Linux - General 3 02-18-2006 11:41 AM
GRUB Loading stage 1.5 ...... Error 25 sean21 Linux - Newbie 2 11-08-2003 08:27 PM


All times are GMT -5. The time now is 05:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration