LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   uh-oh; boot problem in newly compiled 2.6.0 kernel with GRUB (https://www.linuxquestions.org/questions/linux-newbie-8/uh-oh%3B-boot-problem-in-newly-compiled-2-6-0-kernel-with-grub-139084/)

tombomb300 01-26-2004 11:39 PM

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

rberry88 01-26-2004 11:49 PM

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

dalek 01-26-2004 11:57 PM

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. :scratch:

Later

:D :D :D :D

tombomb300 01-27-2004 10:00 AM

so to fix this to need to chnage something with
Code:

root=
/dev/hdb?

masinick 01-27-2004 11:19 AM

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

tombomb300 01-27-2004 07:26 PM

thank you very much but what i also need to know is, when iget out of this jam, how do i fix this problem?

tombomb300 01-27-2004 07:46 PM

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)

tombomb300 01-27-2004 08:03 PM

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 ?

dalek 01-28-2004 12:53 AM

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.

:scratch: :scratch:

:D :D :D

tombomb300 01-28-2004 10:49 AM

still getting a problem
:confused: :(

tombomb300 01-28-2004 11:58 AM

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 06:27 AM.