LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2003, 07:49 AM   #1
cholzsc1
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Rep: Reputation: 0
Compiling redhat 9.0


Ok so far i have
1) make mrproper
2)make xconfig
3)make dep
4)make clean
5)make bzImage
6)make modules
7)make modules_install

Finally then im confused dunno what to do do i cp /usr/src/linux-2.4.20-18.9 /boot/test 2.4.20-18.9.img ? Then do i edit my grub config file to match? what do i do?

Using grub as bootloader
 
Old 07-14-2003, 08:51 AM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Re: Compiling redhat 9.0

Quote:
Originally posted by cholzsc1
Ok so far i have
1) make mrproper
2)make xconfig
3)make dep
4)make clean
5)make bzImage
6)make modules
7)make modules_install

Finally then im confused dunno what to do do i cp /usr/src/linux-2.4.20-18.9 /boot/test 2.4.20-18.9.img ? Then do i edit my grub config file to match? what do i do?

Using grub as bootloader
If you got no errors in your 7 steps, then all you have to do is reboot. Step 7 copies the img file, and updates grub for you. Try the reboot and report back!

Cheers--
Charles
 
Old 07-14-2003, 09:09 AM   #3
cholzsc1
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Yeah got a kernel panic error how do i edit the grub.conf to say the correct stuff?Dunno how to edit file says cant mount root...Dont i have to edit grub b4 reboot or mkinitrd /boot/newmkinitrd ???????

Last edited by cholzsc1; 07-14-2003 at 09:23 AM.
 
Old 07-14-2003, 09:41 AM   #4
cholzsc1
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Says kernel panic vfs unable to mount root fs on 00:00
VFS cannot open root device "LABEL"/ or 00:00
Please append a correct "ROOT" = boot option
 
Old 07-14-2003, 09:48 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Re: Re: Compiling redhat 9.0

Quote:
Originally posted by cnjohnson
If you got no errors in your 7 steps, then all you have to do is reboot. Step 7 copies the img file, and updates grub for you.
no it doesn't, it installs the modules, hence the name. you will still need to update grub. you won't alwaysneed an init idisk though, so just clone the existing entry and change the path to the new image e.g /boot/vmlinux-2.4.21-test
 
Old 07-14-2003, 11:06 AM   #6
cholzsc1
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Now it says try passing the init version to the kernel?????
Mounting /proc filesystem
Creating block devices
Creating boot device
Mounting root filesystem
mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot, sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
freeing unused kernel memory: 132k freed
Kernel panic: No init found. Try passing init= option to kernel.
 
Old 07-14-2003, 11:13 AM   #7
cholzsc1
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
This is my grub.conf file am i missing something or is there something i have to compile to get it to work?

#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-18.9custom)
root (hd0,0)
kernel /vmlinuz-2.4.20-18.9custom ro root=/dev/hda2=/ hdd=scsi
initrd /initrd-2.4.20-18.9custom.img
append="hdd=scsi"

title Red Hat Linux (2.4.20-18.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-18.9 ro root=LABEL=/ hdd=scsi
initrd /initrd-2.4.20-18.9.img
append="hdd=scsi"
 
Old 07-14-2003, 01:15 PM   #8
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Re: Re: Re: Compiling redhat 9.0

Quote:
Originally posted by acid_kewpie
no it doesn't, it installs the modules, hence the name. you will still need to update grub. you won't alwaysneed an init idisk though, so just clone the existing entry and change the path to the new image e.g /boot/vmlinux-2.4.21-test
In fact, RH9 takes care of all the copying, and the updating of grub. See the RH 9 docs.

Cheers--
Charles
 
Old 07-14-2003, 03:15 PM   #9
Moltag
Member
 
Registered: Jul 2003
Location: 'Flori-duh,' US
Distribution: Slackware 9, RH 9
Posts: 33

Rep: Reputation: 15
>>"mount: error 19 mounting ext3"

Check to make sure that you set EXT3 FS support as static (<*>) in your kernel configuration.

I made that mistake once. My boot partition was ReiserFS and I compiled ReiserFS support as a module. Big mistake. How could the kernel load support for ReiserFS if the support module is on a ReiserFS partition?

So, as a best practice, it's always a good idea to hard-code FS support for whatever FS your boot partition's using.
 
Old 07-14-2003, 04:14 PM   #10
solspin
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: What works
Posts: 97

Rep: Reputation: 15
You missed one final step:
make install
This command will update the GRUB file and copy the kernel to the /boot partition. You don't have to manually do anything. Simply reboot after that and the new kernel should appear in the GRUB menu.
 
Old 07-14-2003, 06:50 PM   #11
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Quote:
Originally posted by solspin
You missed one final step:
make install
This command will update the GRUB file and copy the kernel to the /boot partition. You don't have to manually do anything. Simply reboot after that and the new kernel should appear in the GRUB menu.
Good eye! I didn't catch that. That would 'splain everything!

Cheers--
Charles
 
  


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
Compiling rpmdb-redhat louisb Linux - Enterprise 1 09-16-2005 04:37 PM
RedHat 9.2 compiling problem chanwing Programming 1 04-19-2005 04:53 PM
Problems compiling RedHat 7.2 RichardP Linux - Newbie 6 01-30-2002 10:47 AM
Redhat 7.2: Kernel Compiling wildbillm Linux - General 3 11-10-2001 01:53 PM
Compiling new kernel with Redhat 7.1 Sylhouette Linux - General 5 10-18-2001 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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