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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-14-2003, 07:49 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Rep:
|
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
|
|
|
07-14-2003, 08:51 AM
|
#2
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
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
|
|
|
07-14-2003, 09:09 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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.
|
|
|
07-14-2003, 09:41 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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
|
|
|
07-14-2003, 09:48 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
07-14-2003, 11:06 AM
|
#6
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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.
|
|
|
07-14-2003, 11:13 AM
|
#7
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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"
|
|
|
07-14-2003, 01:15 PM
|
#8
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
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
|
|
|
07-14-2003, 03:15 PM
|
#9
|
Member
Registered: Jul 2003
Location: 'Flori-duh,' US
Distribution: Slackware 9, RH 9
Posts: 33
Rep:
|
>>"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.
|
|
|
07-14-2003, 04:14 PM
|
#10
|
Member
Registered: Apr 2003
Location: California, USA
Distribution: What works
Posts: 97
Rep:
|
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.
|
|
|
07-14-2003, 06:50 PM
|
#11
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|