LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub boot kernel failed like this,help me, please. (https://www.linuxquestions.org/questions/linux-newbie-8/grub-boot-kernel-failed-like-this-help-me-please-756550/)

big.frog 09-20-2009 07:15 AM

grub boot kernel failed like this,help me, please.
 
1 Attachment(s)
I compiled a newer kernel and tried to run it,but it boot failed like this:

Attachment 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.

mobinskariya 09-20-2009 07:24 AM

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

big.frog 09-20-2009 08:03 AM

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?

mobinskariya 09-20-2009 08:15 AM

what are the errors??

big.frog 09-20-2009 08:56 AM

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.

yancek 09-20-2009 07:08 PM

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?

big.frog 09-21-2009 09:54 AM

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. :)

btncix 09-21-2009 01:50 PM

Did you create your initrd.img file to include lvm support? Otherwise, you won't be able to mount your root partition during boot.

big.frog 09-23-2009 06:52 AM

1 Attachment(s)
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?

btncix 09-23-2009 09:44 AM

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


All times are GMT -5. The time now is 03:01 PM.