LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-14-2004, 10:10 PM   #1
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Rep: Reputation: 30
Angry 2.6.8 kernel won't boot (and 2.6.8.1)


ok, i just downloaded and compiled/installed the new 2.6.8 kernel, then i go to reboot, starts going and then i get kernel panic, its says (me paraphrasing) can't mount root drive, try using root= at the boot prompt thingey, i tried that and still no go, luckily i have all the 2.6.x kernels in lilo and still there so i can still boot, but not the 2.6.8 kernel, i know the lilo thing is right because all i did was copy the 2.6.7 entry and changed the 7 to an 8 and 2.6.7 is working fine for me right now, the drive is that is the root drive is on an onboard promise sata raid controller (but only one drive so raid is not enabled), and i have a asus p4c800-e dlx motherboard, i'd like to update the bios for that too but i can figure out how to do it on linux (they only have dos flash program, i don't think i have dos aywhere)

i'm using slackware current, and incase this is related, i cannot get lilo or grub to install on sata drive, and to boot i have to put lilo on a PATA drive using the slack install cd, thats the only thing that will work

so does anyone have any idea on what might be going on and how i can get this to work, i also used the same config for the 2.6.7 kernel too except i added all the joystick modules
 
Old 08-14-2004, 10:49 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
did the original kernel have a initrd.img that goes with it ???
if so you will have to either make one for the new kernel or
compile the modules in that .img as included not modules in the new kernel
(ide driver , file system support)
 
Old 08-14-2004, 11:09 PM   #3
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
whats a initrd.img? by googling it seems its only needed if there are modules that are needed for loading the root drive, well, i have never done anything with that, and i have always compiled the promise sata driver and ext3 support (the format of the root drive) into the kernel if thats what you mean, and i just checked and its all there, from the errors i had it seemed like it couldn't /dev/hde2, it said something about blocks, like it doesn't exist or could find them, i'm not sure
 
Old 08-15-2004, 10:06 AM   #4
gibiman
LQ Newbie
 
Registered: Aug 2004
Location: -
Posts: 16

Rep: Reputation: 0
About your pb...

I remember having the same pb with 2.6.7 when i was tryin' to upgrade my old 2.6.3!

Anyways all the manuals specificaly point out that u should compile your kernel with support for your fs built-in ( not as a module ! ) ! Thinkin' u've done that i'm goin' to tell u how i solved my problem ! I cd to my kernel source tree and
Code:
make oldconfig ( and then i added/removed several components and recompiled the damn thing )
Now cp /arch/i386/boot/bzImage /boot/linux-2.6.7 and then i coppied the System.map file into my /boot/ directory .. overwriting the old one ! It booted and actually worked ... Although new incompatibilty problems aroused , i got it to boot!
If u done what i did already ... please say so .. I have other things on my mind which could be at the root of your pb but i'm too lazy to wright them down !
 
Old 08-15-2004, 10:49 AM   #5
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
i think i already did that (except i used make xconfig) this is what i do when i recompile the kernel

Code:
cd /usr/src/linux
make mrproper
zcat /proc/config.gz > .config
make xconfig
make -j3 bzImage && make modules && make modules_install
cp System.map /boot/System.map-2.6.8
cp arch/i386/boot/bzImage /boot/linux-2.6.8
cp System.map /mnt/hd/boot/System.map-2.6.8
cp arch/i386/boot/bzImage /mnt/hd/boot/linux-2.6.8
then i edited the lilo.conf

i copy to /mnt/hd/boot/ because thats the drive that lilo actually works on
 
Old 08-15-2004, 11:36 AM   #6
futhark
Member
 
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
With 2.6 kernels you can "make install" at the end of the compilation. It copies the kernel, creates system.map, initrd and updates grub.conf.

That said your problem reminds me something I encountered myself when I upgraded to 2.6.7 last week. I am not totally sure but I think it is the "rhgb" kernel option I stripped from my grub.conf that made the system boot.

Something else I have modified without confirming the ffect is to replace "root=LABEL=/" for "root=/dev/hda5".

Good luck!
 
Old 08-15-2004, 03:12 PM   #7
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
trying the make install thing didn't seem to do anything

i found on google that devfs=nomount might help, well i tried it an nothing happened

and this time i copied the error message

Code:
VFS: Cannot Open device "2102" or unknown-block(33,2)
 
Old 08-15-2004, 03:51 PM   #8
futhark
Member
 
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
I came across multiple comments on kerneltrap.org that said to compile ext3 file system support inside the kernel and not as a module.

http://kerneltrap.org/node/view/2547#comment-7477
http://kerneltrap.org/node/view/2321#comment-7356

Is your EXT3_FS set to y?
 
Old 08-15-2004, 03:55 PM   #9
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
yes it is compiled in, i said it above if you looked, i have both the promise sata controller driver and the ext3 fs format compiled into the kernel, like i said it is exactly the same config file that i used in 2.6.7 with the exception that i added joystick modules
 
Old 08-15-2004, 05:37 PM   #10
futhark
Member
 
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
Quote:
Originally posted by edman007
trying the make install thing didn't seem to do anything[/code]
"make install" is simply a command that saves typing after the kernel is compiled. It copies the kern in /boot, etc.
 
Old 08-15-2004, 05:40 PM   #11
futhark
Member
 
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
Quote:
Originally posted by futhark
That said your problem reminds me something I encountered myself when I upgraded to 2.6.7 last week. I am not totally sure but I think it is the "rhgb" kernel option I stripped from my grub.conf that made the system boot.

Something else I have modified without confirming the ffect is to replace "root=LABEL=/" for "root=/dev/hda5".

Good luck!
Have you tried this or not?

I resolved another problem with my 2.6.7 kernel today, but I doubt it is related to your problem since it never prevented my to boot. I had a problem with the loading of my initrd and had to increase the default ramdisk size from 4096 to 8192 (BLK_DEV_RAM_SIZE). The symptom was the following msg in dmesg:

Code:
RAMDISK: Incomplete write (-28 != 32768) 4194304
 
Old 08-15-2004, 05:46 PM   #12
futhark
Member
 
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
Quote:
Originally posted by edman007
whats a initrd.img? by googling it seems its only needed if there are modules that are needed for loading the root drive, well, i have never done anything with that, and i have always compiled the promise sata driver and ext3 support (the format of the root drive) into the kernel
The initrd is useful for loading modules before mounting drives. Say your bootable drive is scsi. You will need to load the scsi module before you can mount this drive.

I also experienced problems with the loading of scsi drivers when I installed a scsi card after the initrd was created. That prevented scanners to work properly after a boot. The driver wouldn't load correctly on boot until I recreated the initrd.

As you suggest, maybe compiling drivers right in the kernel defeats the purpose of initrd.
 
Old 08-15-2004, 05:52 PM   #13
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Original Poster
Rep: Reputation: 30
as i said above (first post) i'm using lilo not grup, and i don't think i am loading a initrd or any other type of ramdisk, i just complied everything into the kernel it makes it easier, i have firewire, usb, promise sata controller, ide controller, network, alsa, and reiser and ext3 (i think ext2 too) (and a lot more things) all compiled into the kernel

also in my lilo.conf, i have always had root=/dev/hde2
 
Old 08-17-2004, 06:29 AM   #14
sygin
Member
 
Registered: May 2004
Posts: 36

Rep: Reputation: 15
Hi

I believe that the link below is part of the same problem of getting 2.6.8 to boot.

http://www.linuxquestions.org/questi...hreadid=218383

Thanks
Sygin
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DSL Kernel Wont detect Flash drive on boot, cant boot =( Javahulk Linux - General 1 03-24-2005 02:59 PM
Kernel update boot problems, no boot loader StaticSage Red Hat 2 01-09-2004 06:05 AM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM
Kernel Compile Boot Loader? boot disk? SPMcRuube Linux - Newbie 3 12-03-2002 07:02 PM
What to do with /boot/System.map on dual Kernel boot? cathodion Linux - General 2 05-17-2002 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:20 PM.

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