Click to See Complete Forum and Search --> : Compling Kernel Problems


casperinlove
03-31-2005, 07:12 AM
I had complied for many times, and the Fedora Core 3 show the same problems to me. Can anyone tell me what I had done wrong.

my kernel line in grub is

".... /vmlinz-2.6.11.5 ro root=/dev/hda2 hdd=ide-scsi"

I did try changed to
".... /vmlinz-2.6.11.5 ro root=/dev/hda2 init=/sbin/init"

Thank you! the messages as follows :

.
.
.
.
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ....
md: .... autorun DONE.
EXT2-fs warning (device hda2) : ext2_fill_super : mounting ext3 filesystem as ext2
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused to open an initial console.
security: 3 users, 4 roles, 280 types, 16 bools <---- " I don't have any users login!"
security: 53 classes, 5494 rules
SELinux: Completing initialization.
SELinux: Setting up existing superblocks.
SELinux: initialized (dev hda2, type ext2), uses xattr
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), not configured for labeling
SELinux: initialized (dev hugetlbfs, type hugetlbfs), not configured for labeling

I had "/boot" in /dev/hda1, "/" in /dev/hda2.

je_fro
03-31-2005, 10:31 AM
I don't see any of the usual error messages in what you posted. Is there any more?
I've had SELinux and grsecurity lock me out of my box before, perhaps that's what's happening here. Have you defined any users/roles? Does SELinux use pax?

bwkaz
03-31-2005, 08:04 PM
Is this:

Originally posted by casperinlove
security: 3 users, 4 roles, 280 types, 16 bools <---- " I don't have any users login!" your only problem? If so, it's not a problem. This is a message printed by SELinux telling you how many users, groups, types, and bools it has been configured for, not how many users have been logged in.

If that's not the problem, then (as je_fro said) what is?

casperinlove
04-01-2005, 03:16 AM
I found something very interesting in Fedora Core 3.

in the grub.conf, something as follows.

.
.
title linux (2.6.9-1.667)
root (hd0, 0)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.9-1.667.img
.
.


and the "/etc/fstab"

LABEL=/1 / ext3 ..... < ---- "/" "/dev/hda2"
LABEL=/boot/1 /boot ext3 ..... < ---- "/boot" "/dev/hda1"
. .
. .
. .
LABEL=SWAP-hda5 swap swap
.
.


I had try to uses "..... ro root=LABEL=/1" in my complied kernel, it show kernel panic. when I uses ".... ro root=/dev/hda2" then it show the last messages. Just don't know what to fix the problems.

Hope anyone can help.

je_fro
04-01-2005, 02:35 PM
That's too confusing.
Just paste in the entire grub.conf and fstab...don't edit it or change it. Make comments outside the paste blocks please.

casperinlove
04-19-2005, 06:41 AM
thanks for you all to help me. Unfortunately, I still cannot figure out what is going on. I had try to write it out and start again for 3 times, the same things happen; I try to start from RH9 and complie again, let's see will be the same or not.