LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-06-2005, 09:28 AM   #1
omlette
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Rep: Reputation: 0
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic


I upgraded to 2.6.8 kernel via apt-get and when it tries to boot (grub is the loader), it eventually stops with this message:

pivot_root: No such file or directory
/sbin/init: 426: cannot open dev/console: No such file
Kernel Panic: Attempted to kill init!

I'm running Debian off of a secondary SATA drive, I've heard that the new kernel changes the way it detects/handles SATA drives? I'm new to Linux so please try to keep it simple.

I've searched Google and LinuxQuestions, but I can't find a solution. Can anyone help? Thanks!
 
Old 03-06-2005, 04:21 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
It's rather not a SATA thing. It says it can't open console, what's a bad thing. How have you configured your GRUB? Are you sure that the right initrd is passed with the new kernel? If unsure, please post your grub config.
 
Old 03-06-2005, 07:42 PM   #3
omlette
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mara
It's rather not a SATA thing. It says it can't open console, what's a bad thing. How have you configured your GRUB? Are you sure that the right initrd is passed with the new kernel? If unsure, please post your grub config.

Code:
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default         2

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout         5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title         Windows 95/98/NT/2000
# root          (hd0,0)
# makeactive
# chainloader   +1
#
# title         Linux
# root          (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hde2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,1)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.8-2-386
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hde2 ro
        initrd /boot/initrd.img-2.6.8-2-386

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hde2 ro single
        initrd /boot/initrd.img-2.6.8-2-386

title Debian GNU/Linux, kernel 2.4.27-1-386
        root (hd0,1)
        kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hde2 ro
        initrd /boot/initrd.img-2.4.27-1-386

title Debian GNU/Linux, kernel 2.4.27-1-386 (recovery mode)
        root (hd0,1)
        kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hde2 ro single
        initrd /boot/initrd.img-2.4.27-1-386

title           Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hdg1
title           Microsoft Windows XP Professional
root            (hd1,0)
savedefault
chainloader     +1
 
Old 03-07-2005, 07:00 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
I'm wondering if the /dev/hde2 antries are correct. Your SATA drive is probably visible as SCSI, so there should be /dev/sdaX or similar.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic upgrading from 2.4.31 to 2.6.13 Sushy Slackware 8 12-03-2006 05:50 PM
kernel Panic slackware 10.1 (sata) after upgrading to 2.6.10 pkg in /testing sund00bie Slackware 7 07-25-2005 04:59 AM
Kernel panic (Debian: migrating from 2.4 to 2.6 kernel) VertX Linux - Software 4 02-05-2005 09:32 AM
kernel panic upgrading to 2.6.1 sadeer Red Hat 2 03-24-2004 05:12 AM
Help needed!! Kernel panic problem after upgrading RAM nparab Linux - Hardware 3 04-12-2003 01:03 PM


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