LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-23-2007, 10:58 PM   #1
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
debian new kernel 2.6.22 stops when booting


I currently run debian etch and I built a new kernel, everything went just fine, dpkg -i installed with no errors, the initram file was created and grub updated. I configured this kernel with my old config 2.18 settings, but when i try to boot my new kernel everything goes fine until it loads the mouse driver and it just stops, It doesn't give an error or anything. I wonder how to troubleshoot this, where can i see the error, or how can i collect some information about the reason? Any help would be appreciated. Thanks.
 
Old 09-24-2007, 12:37 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If it's a USB mouse, some have had luck switching ports and booting it up successfully.
 
Old 09-24-2007, 08:56 AM   #3
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
no man, that did not work, thanks.
 
Old 09-24-2007, 03:43 PM   #4
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
ok, after waiting for 5 minutes I received this message

Check root = bootarg cat /proc/cmline
or missing modules, devices: cat /proc/modules ls dev
Alert! /dev/sda1 does not exist. Dropping to a shell!

and after that, I got a busybox command line, anyone knows what could be the cause?
 
Old 09-24-2007, 04:26 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try changing the devices listed in /boot/grub/menu.lst from /dev/hdX to /dev/sdX. IDE hard drives are now referred to as /dev/sdX in new kernel releases.
 
Old 09-24-2007, 05:00 PM   #6
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
grub already refers to my partitions as /dev/sda. Any other ideas?
 
Old 09-27-2007, 06:53 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Have you tried configuring the kernel from scratch, without using the old configuration? Also make sure that the entries for your root partition are correct in grub. Another option is to tinker with the settings because on some discussions, some people have mentioned that their devices changed from sda to hda when using the 2.6.22 kernel.
 
Old 09-27-2007, 09:34 AM   #8
TheDirtyScreech
Member
 
Registered: Jul 2007
Distribution: Gentoo, LFS
Posts: 42

Rep: Reputation: 15
Well, editing the grub config wouldn't solve this problem since it happens after the kernel and initramfs are loaded. Check the file "/etc/fstab." It's looking for /etc/sda1 which doesn't exist. Try changing it to /etc/hda1 (and all other /etc/sdaX to /etc/hdaX).

Note: if you don't have a seperate, working partition of Linux to boot from, you'll need to boot from a cd. Then, you'll obviously mount it and change the etc/fstab file in there, not /etc/fstab.

That being said, I'm much more suspicious that it's because you're using your old configuration in a newer kernel. Kernel options change with the kernel, and some options have been replaced with others, some are renamed, and some are removed or reworked to things in a different way. I suggest running a "make mrproper" followed by a "make menuconfig," then configure the hell out of that kernel.


-TDS-
 
Old 09-27-2007, 11:46 PM   #9
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
Thanks for all the inputs, the problem was that the new kernel 2.6.22 comes with different SATA drivers, the old SATA drivers are being deprecated. So I had to actually mark the new drivers in the new config, if you just load the old config from the 2.6.18 it won't work, you need to manually add the new SATA drivers from the config menu. That solved the problem.
 
Old 08-14-2008, 07:53 AM   #10
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by isuck@linux View Post
Thanks for all the inputs, the problem was that the new kernel 2.6.22 comes with different SATA drivers, the old SATA drivers are being deprecated. So I had to actually mark the new drivers in the new config, if you just load the old config from the 2.6.18 it won't work, you need to manually add the new SATA drivers from the config menu. That solved the problem.

hi
I am a newbie here, can you explain how to manually add the new SATA drivers??

Is it in .config or menu.lst or fstab??

I am confusing about this
 
Old 08-14-2008, 11:43 PM   #11
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
sata

follow this guide to create your new kernel and when you make menuconfig, change the sata devices to the libata driver

http://www.falkotimme.com/howtos/deb...el2.6_compile/
 
Old 08-15-2008, 07:29 AM   #12
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Rep: Reputation: 15
Quote:
Originally Posted by isuck@linux View Post
follow this guide to create your new kernel and when you make menuconfig, change the sata devices to the libata driver

http://www.falkotimme.com/howtos/deb...el2.6_compile/
Thanks, I upgrade kernel to 2.6.18 successfully by that guidance.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stops at: Uncompressing Linux... Ok, booting the kernel destin Slackware 6 02-29-2008 04:45 AM
Recent Debian installation not booting, computer stops with usb problmes. Knitter Debian 13 03-02-2006 10:16 AM
Fedora FC1, 2.6 kernel, stops booting blaagutt Linux - Newbie 3 05-12-2004 05:57 PM
Stops at Uncompressing Linux... Ok, booting the kernel reward72 Linux - Newbie 4 02-25-2004 11:12 PM
Stops booting after unpressing kernel RH 8.0 Nevyn2 Linux - General 9 04-11-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:33 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