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 |
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.
|
 |
01-26-2004, 11:39 PM
|
#1
|
Member
Registered: Sep 2003
Posts: 49
Rep:
|
uh-oh; boot problem in newly compiled 2.6.0 kernel with GRUB
I compiled 2.6.0 and it believe it begins to load, but when it gets to laoding VFS and some Type Memory i get a Kernel panic, will get details soon on these, but what can i do to fix these? i neeed HELP
|
|
|
01-26-2004, 11:49 PM
|
#2
|
Member
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558
Rep:
|
If you do a search of these forums for "kernel panic" or VFS you will get alot of hits that tell you what to do. Most likely it is because you do not have the devfs filesystem compiled into your kernel or ufs or vfs.
rberry88
|
|
|
01-26-2004, 11:57 PM
|
#3
|
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Rep:
|
If you saved the old kernel, you can hit "e" when grub comes up and point it to the old kernel, the one that works, 2.4 remember. You hit e twice and then use the arrow keys to change the kernel then hit enter and "b" to boot.
If you didn't save the old kernel, oooops. I have no clue. Here is some info for messing with kernels. ALWAYS save a version that will let you boot. I have about a dozen on here, some 2.4 and some 2.6. I name mine bzImage-2.4.20.test1, bzImage-2.4.20.test2 etc. I have one for each version. If my latest turns out not to be so great, I back up to another, try again.
If you have no bootable kernel, you may have to boot from another distro and chroot in to compile another. You may still have a copy of the old kernel in /usr/src/linux.2.4<fill correct version here>/arch/i386/boot/bzImage. That should be the old 2.4.** version. That will let you boot and redo the 2.6.
That help any? I'm confusing sometimes.
Later

|
|
|
01-27-2004, 10:00 AM
|
#4
|
Member
Registered: Sep 2003
Posts: 49
Original Poster
Rep:
|
so to fix this to need to chnage something with
/dev/hdb?
|
|
|
01-27-2004, 11:19 AM
|
#5
|
Member
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 639
Rep: 
|
Boot disks or Boot CDs can also help
Quote:
Originally posted by dalek
If you have no bootable kernel, you may have to boot from another distro and chroot in to compile another. You may still have a copy of the old kernel in /usr/src/linux.2.4<fill correct version here>/arch/i386/boot/bzImage. That should be the old 2.4.** version. That will let you boot and redo the 2.6.
|
Two other things you can do, if you've taken appropriate steps, are to boot from a backup boot floppy or you can often boot from the installation CD and use it as a rescue disk. Exact details depend on which distribution you're using.
Personally, I use many different distributions. When in a jam, I often find I can at least boot to some basic setup by using any of the boot floppies I've created, even if they're from another distro. I can also use other rescue CDs. Anything that's bootable can at least get me to the disk, then I can make whatever other adjustments may be necessary, then get back to the system I intend to work on. Worst case - install or reinstall the system in question, then recover from backups to get data back.
To install or reinstall GRUB to the Master Boot Record (MBR):
Boot the first install CD to rescue mode. This will mount your root
partition at /mnt/sysimage.
Type the following commands and press Enter after each command:
chroot /mnt/sysimage # (/ will now be /mnt/sysimage)
grub-install
Last edited by masinick; 01-29-2004 at 11:02 PM.
|
|
|
01-27-2004, 07:26 PM
|
#6
|
Member
Registered: Sep 2003
Posts: 49
Original Poster
Rep:
|
thank you very much but what i also need to know is, when iget out of this jam, how do i fix this problem?
|
|
|
01-27-2004, 07:46 PM
|
#7
|
Member
Registered: Sep 2003
Posts: 49
Original Poster
Rep:
|
right now im in the old 2.4 kernel( used my boot disk) now how must i set up 2.6 to boot?(using Grub)
|
|
|
01-27-2004, 08:03 PM
|
#8
|
Member
Registered: Sep 2003
Posts: 49
Original Poster
Rep:
|
my Menu file for grub
Code:
title Red Hat Linux (2.6.0)
root (hd1,0)
kernel /vmlinuz-2.6.0 ro root=LABEL=/ hdc=ide-scsi
initrd /bzImage
what should be changed ?
|
|
|
01-28-2004, 12:53 AM
|
#9
|
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Rep:
|
This part
Code:
title Red Hat Linux (2.6.0)
root (hd1,0)
kernel /vmlinuz-2.6.0 ro root=LABEL=/ hdc=ide-scsi
initrd /bzImage
Should look something like this:
Code:
title Red Hat Linux (2.6.0)
root (hd0,0)
kernel /vmlinuz-2.6.0 ro root=dev/hda<partition number here> hdc=ide-scsi
initrd /bzImage
You need to change that for sure. It is looking for the root "/" partition and that is not it. You also need to make sure to change the vmlinuz-2.6.0 to the exact name of the kernel. Should be what ever you named it when you copied it over. Also note, when you compile the kernel, it won't copy unless you tell it to. Sometimes make install will copy but I usually type in
cp /usr/src/linux/arch/i386/boot/bzImage /boot/bzImage-2.6.test1
That way you can save the old copy and name it what you want.
Does that help? I don't use Redhat and am not real familiar with the grub conf file for Redhat.

|
|
|
01-28-2004, 10:49 AM
|
#10
|
Member
Registered: Sep 2003
Posts: 49
Original Poster
Rep:
|
still getting a problem

|
|
|
01-28-2004, 11:58 AM
|
#11
|
Member
Registered: Sep 2003
Posts: 49
Original Poster
Rep:
|
ok i am going to try to to compile again this time i am going to load my old kernel config and she where that gets me
|
|
|
All times are GMT -5. The time now is 01:21 AM.
|
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
|
|