LinuxQuestions.org
Register a domain and help support LQ
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 01-27-2004, 12:39 AM   #1
tombomb300
Member
 
Registered: Sep 2003
Posts: 49

Rep: Reputation: 15
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
 
Old 01-27-2004, 12:49 AM   #2
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
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
 
Old 01-27-2004, 12:57 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
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

 
Old 01-27-2004, 11:00 AM   #4
tombomb300
Member
 
Registered: Sep 2003
Posts: 49

Original Poster
Rep: Reputation: 15
so to fix this to need to chnage something with
Code:
root=
/dev/hdb?
 
Old 01-27-2004, 12:19 PM   #5
masinick
Member
 
Registered: Apr 2002
Location: Concord, NH
Distribution: Debian, sidux, antiX, SimplyMEPIS, Kubuntu, Mandriva, Fedora, Xandros, Arch, and many others
Posts: 560
Blog Entries: 14

Rep: Reputation: 35
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-30-2004 at 12:02 AM.
 
Old 01-27-2004, 08:26 PM   #6
tombomb300
Member
 
Registered: Sep 2003
Posts: 49

Original Poster
Rep: Reputation: 15
thank you very much but what i also need to know is, when iget out of this jam, how do i fix this problem?
 
Old 01-27-2004, 08:46 PM   #7
tombomb300
Member
 
Registered: Sep 2003
Posts: 49

Original Poster
Rep: Reputation: 15
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)
 
Old 01-27-2004, 09:03 PM   #8
tombomb300
Member
 
Registered: Sep 2003
Posts: 49

Original Poster
Rep: Reputation: 15
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 ?
 
Old 01-28-2004, 01:53 AM   #9
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
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.



 
Old 01-28-2004, 11:49 AM   #10
tombomb300
Member
 
Registered: Sep 2003
Posts: 49

Original Poster
Rep: Reputation: 15
still getting a problem
 
Old 01-28-2004, 12:58 PM   #11
tombomb300
Member
 
Registered: Sep 2003
Posts: 49

Original Poster
Rep: Reputation: 15
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
 
  


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
Newly Compiled Linux does not seem to Boot binarybob0001 Linux - Newbie 2 12-02-2004 08:05 PM
newly compiled kernel, boot fails class_struggle Linux - Newbie 2 07-30-2004 10:10 AM
PROBLEM with grub and my newly compiled kernel! maestro52 Linux - Newbie 8 02-02-2004 06:14 PM
Newly compiled 2.6-test11 Does not boot Xylon Slackware 3 12-26-2003 01:18 AM
Problem with newly compiled 2.4.22 kernel Xero720 Slackware 2 09-06-2003 01:23 PM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration