LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2009, 07:15 AM   #1
big.frog
LQ Newbie
 
Registered: Jan 2009
Location: China
Posts: 7

Rep: Reputation: 0
grub boot kernel failed like this,help me, please.


I compiled a newer kernel and tried to run it,but it boot failed like this:

Click image for larger version

Name:	boot kernel failed.png
Views:	34
Size:	11.8 KB
ID:	1552

the grub.conf file:

#grub.conf generated by anaconda
#NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/,eg/.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=20
hiddenmenu
title Fedora (2.6.30.3)
root (hd0,0)
kernel /vmlinuz-2.6.30.3 ro root=/dev/sda
initrd /initrd-2.6.30.3.img
title Fedora (2.6.25-14.fc9.i686)
root (hd0,0)
kernel /vmlinuz-2.6.25-14.fc9.i686 ro root=UUID=85c0da58-8bd1-4697-ab40-4f5be817d137 rhgb quiet
initrd /initrd-2.6.25-14.fc9.i686.img

boot error message:

Reading all physical volumes. This may take a while...
Activating logical volumes
Volume group "VolGroup00" not found
--------why it try to found
----------VolGroup00?
------I already set root=/dev/sda .
Trying to resume from /dev/VolGroup00/LogVol01
Unable to access resume device (/dev/VolGroup00/LogVol01)
Creating root device.
Mounting root filesystem.
mount:could not find filesystem '/dev/root'
-----in Fedora 9 system ls -l /dev I can see "VolGroup00",but there are
-------truely no the "root", is this has relation with the mount failed.
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Mount failded for selinuxfs on /selinux: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Booting has failed.

my Fedora9 original kernel(2.6.25.14) boot successful like this:
Found volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00" now active
"WELCOME TO FEDORA"

Am I make mistake in config kernel option?
someone help please, thanks.
 
Old 09-20-2009, 07:24 AM   #2
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
Quote:
title Fedora (2.6.30.3)
root (hd0,0)
kernel /vmlinuz-2.6.30.3 ro root=/dev/sda
initrd /initrd-2.6.30.3.img
change the bold letters to
Quote:
root=/dev/sda1
you missed 1

or you can use
Code:
root=UUID=85c0da58-8bd1-4697-ab40-4f5be817d137

Last edited by mobinskariya; 09-20-2009 at 07:27 AM.
 
Old 09-20-2009, 08:03 AM   #3
big.frog
LQ Newbie
 
Registered: Jan 2009
Location: China
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for you warmhearted replay.

but the error still exited.

Quote:
change the bold letters to

root=/dev/sda1

or you can use

root=UUID=85c0da58-8bd1-4697-ab40-4f5be817d137
ls -l dev
I have: sda,sda1,sda2.
----how to affirm which dev the grub used to boot?

I try them all and set the root=UUID...,
but the error report same message.

Is there still some way that I can try?
 
Old 09-20-2009, 08:15 AM   #4
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
what are the errors??

Last edited by mobinskariya; 09-20-2009 at 08:24 AM.
 
Old 09-20-2009, 08:56 AM   #5
big.frog
LQ Newbie
 
Registered: Jan 2009
Location: China
Posts: 7

Original Poster
Rep: Reputation: 0
output massage is this:

Reading all physical volumes. This may take a while...
Activating logical volumes
Volume group "VolGroup00" not found
Trying to resume from /dev/VolGroup00/LogVol01
Unable to access resume device (/dev/VolGroup00/LogVol01)
Creating root device.
Mounting root filesystem.
mount:could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Mount failded for selinuxfs on /selinux: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Booting has failed.

the same error as before.

I am confusing.
 
Old 09-20-2009, 07:08 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I have: sda,sda1,sda2.
sda is the entire hard drive, sda1 is a partition on it, sda2 is another partition on it. Fedora usually uses a /boot partition plus a root partition with LVM. Do you also have a swap partitition. Can you post the output of "fdisk -l" command showing your partition information?
 
Old 09-21-2009, 09:54 AM   #7
big.frog
LQ Newbie
 
Registered: Jan 2009
Location: China
Posts: 7

Original Poster
Rep: Reputation: 0
thanks a lot.

fdisk -l

Disk /dev/sda: 21.4GB, 21474836480 bytes
255 heads,63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002cada

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 2610 20764012+ 8e Linux LVM

Disk /dev/dm-0: 20.1 GB, 20132659200 bytes
255heads, 63 sectors/track, 2447 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track,130 cylinders
Units = cylinders of 16065 * 512 = 8225280 byes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table
bash : Disk: command not found

End the massage, too many letters to type.
 
Old 09-21-2009, 01:50 PM   #8
btncix
Member
 
Registered: Aug 2009
Location: USA
Posts: 141

Rep: Reputation: 26
Did you create your initrd.img file to include lvm support? Otherwise, you won't be able to mount your root partition during boot.
 
Old 09-23-2009, 06:52 AM   #9
big.frog
LQ Newbie
 
Registered: Jan 2009
Location: China
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for your replay.

But I cant find the "LVM" option in "Multiple devices driver suport(RAID and LVM)" menu during execute "make menuconfig".

my kernel version is 2.6.30.3.

"LVM" option isnt support new kernel, is it?

How can I support the "LVM" option?
Attached Thumbnails
Click image for larger version

Name:	sp_noLVM.png
Views:	11
Size:	161.8 KB
ID:	1583  
 
Old 09-23-2009, 09:44 AM   #10
btncix
Member
 
Registered: Aug 2009
Location: USA
Posts: 141

Rep: Reputation: 26
How did you make your initrd-<version>.img (ex. initrd-2.6.30.3.img) file?

Compile your kernel the same way you did previous. Then place LVM support through the initrd.img file using mkinitrd.
Look at the man page for more details.

mkinitrd
-c clear exisitng initrd tree
-k kernel-version to use
-m modules to load
-L add LVM support
-f root partition filesystem
-r root partition
-o filename of initrd

mkinitrd -c -k 2.6.29.6-smp -m ext4 -L -f ext4 -r /dev/sda2 -o /boot/initrd.new.img
 
  


Reply



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
Upgrading RHEL4.7 kernel but what to keep the old kernel in boot.grub fcfury Linux - Newbie 2 08-14-2009 08:13 AM
Kernel panic after dual-boot XP drive failed phoenixdbq Linux - Newbie 7 02-05-2004 08:17 AM
install failed, GRUB freezes on boot. Pathian Linux - General 3 11-09-2003 10:21 PM
Help! Configuring Kernal failed, GRUB can't boot new kernal, help! sabaka Linux - Newbie 4 09-16-2003 09:12 PM
Help, upgrade kernel and failed boot explorer1979 Linux - General 3 09-26-2002 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration