LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-30-2003, 12:34 AM   #1
eastj1974
Member
 
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Rep: Reputation: 15
Building a custom kernel


I've been trying to build my own custom kernel on my red hat 8.0 system. I've followed the directions verbatim using the "The Official Red Hat Linux Customization Guide", but I can't boot up the custom kernel. I get the following error:

"net4: Unix Domains sockets 1.0/SMP for linux Net4.0........ds: no socket drivers loaded.......VFS: Cannot open root device "LABEL=/" or 00:00 ...............Please append a correct "root=" boot option .....Kernel Panic VFS: unable to mount root fs."

Does it have something to do with my file system. Can anyone helP? I did it once before and didn't encounter any problems. Thanks
 
Old 06-30-2003, 12:58 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You have 2 processors?
 
Old 06-30-2003, 08:54 AM   #3
eastj1974
Member
 
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Original Poster
Rep: Reputation: 15
No I just have 1 pentium 4 2.66 ghz.
 
Old 06-30-2003, 09:08 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You'll have to spit out your lilo.conf file. It may be that there's nothing wrong with your kernel your just booting it incorrectly.
 
Old 06-30-2003, 09:14 AM   #5
eastj1974
Member
 
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Original Poster
Rep: Reputation: 15
I use grub instead of lilo. Here it is:

default=3
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14custom)
root (hd0,0)
kernel /vmlinuz-2.4.18-14custom ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14custom.img
title Red Hat Linux (2.4.18-14.custom.070203)
root (hd0,0)
kernel /vmlinuz-2.4.18-14.custom.070203 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.custom.070203.img
title Red Hat Linux (2.4.18-14.custom.070103)
root (hd0,0)
kernel /vmlinuz-2.4.18-14.custom.070103 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.custom.070103.img
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img
 
Old 06-30-2003, 09:16 AM   #6
eastj1974
Member
 
Registered: Feb 2003
Location: Los Angeles
Distribution: Red Hat 8.0
Posts: 68

Original Poster
Rep: Reputation: 15
Here's how I create the custom kernel too.


cd /usr/src/linux-2.4
make mrproper
make xconfig change to pentium 4 change CONFIG_SOUND_OSS =M
make dep
make clean
change version on Makefile
make bzImage
make modules
make modules_install
make install.


Maybe that would help too.
 
Old 06-30-2003, 06:15 PM   #7
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
lilo

Have you tried getting rid of the LABEL portion thats added by redhat. Just do it like this

root = /dev/hdxx

where xx is the dev with your / partition (example /dev/hda1)

I have no idea why redhat tries to use LABEL but it's not necessary and is known to cause some people issues.

Or better yet use grub.
grub == no more running /sbin/lilo

good luck to you
 
Old 07-01-2003, 12:59 AM   #8
praveen_2003
Member
 
Registered: Apr 2003
Location: india
Posts: 144

Rep: Reputation: 15
change ur LABEL=/ TO /dev/hda* it worked for me
 
  


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
building a custom mini distro snipes420 Linux - General 2 10-05-2005 04:04 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
Custom optimisation flags for building QT ugenn Linux - Software 0 04-27-2004 08:39 AM
after building a custom kernel h/w Debian 5 08-21-2003 10:13 PM
building a custom kernel...aic7xxx problem landonmkelsey Linux - Newbie 5 07-24-2001 12:43 AM

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

All times are GMT -5. The time now is 04:29 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