LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-17-2009, 08:30 PM   #1
theapodan
LQ Newbie
 
Registered: Jun 2002
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
Kernel panic on boot with new SATA drive Slackware 12 kernel: 2.6.21.5


I have a computer with 2 ide hard drives, one sata hard drive, and one sata cd drive. I am trying to add a second sata hard drive to this computer.

However, when I plug this drive in and boot, I get a kernel panic with a message about not finding root.

lilo.conf has:
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda6
label = Slackware
read-only # Partitions should be mounted read-only for checking

I am wondering if adding a new sata drive changes the drive order, making root some other drive, like say /dev/sdb6 or /dev/sdc6.

Is anyone familiar with this problem? How would I go about fixing it? If you need any more information, I'll do my best to supply it.

Thanks,
Robert.
 
Old 05-17-2009, 08:40 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by theapodan View Post
I am wondering if adding a new sata drive changes the drive order, making root some other drive, like say /dev/sdb6 or /dev/sdc6.
That happens so often that when most other distributions install, they use the UUID to identify the boot drive. See the output of "blkid" and the contents of "/dev/disk/by-uuid/*" once you get your system running again.

You will have to boot from a recent Live CD (I always recommend the latest System Rescue CD) and see what is going on. System Rescue CD usually tracks the latest kernel, so you will see your drives enumerated in a manner very similar to your current kernel.

Since you probably have access to the console, don't forget that you can use [Shift][PgUp] and [Shift][PdDn] to move up and down through the output of the console logger. You might be able to see enough drive enumeration information using this method that you can figure out where the kernel is placing your boot drive. If LILO allows you to edit the kernel parameters during bootup, you can change the boot drive manually.

If not, you might want to use this opportunity to install GRUB.
 
Old 05-17-2009, 10:27 PM   #3
theapodan
LQ Newbie
 
Registered: Jun 2002
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
Ah hah!

The new sata drive was being named sda!

However, rather than running lilo with an updated config (before plugging in the drive, and then rebooting in hope mode), I had a sudden flash of simplistic brilliance.


I switched the cables in the computer, so that linux gets the desired drive order from the BIOS so that the old sata disc is named sda.


I also looked into identifying drives by UUID, but it seems that lilo may not support that (not mentioned on manpages)

It seems, after looking for solutions to my problems, that lilo became passe around 2005, and it probably is time to install GRUB. I'm thinking of installing Arch, in which case I'll install GRUB too.

Thanks David.

Robert.
 
Old 05-18-2009, 03:02 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by theapodan View Post
It seems, after looking for solutions to my problems, that lilo became passe around 2005, and it probably is time to install GRUB.
I highly recommend GRUB. The ability to edit the kernel parameters and other settings before booting can be a real life saver.

This feature comes in especially handy when you are working on a system where it is difficult (or impossible) to connect a CD-ROM to boot a LiveCD.
 
  


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
Slackware 12 on USB hard drive Kernel Panic mpyusko Slackware - Installation 10 04-12-2018 02:21 AM
Attempting to boot Slackware from USB flash drive, getting kernel panic error hairykoala Slackware 11 02-25-2009 07:46 PM
kernel compile 2.6.20 - kernel panic - SATA drive bgeddy Slackware 7 04-08-2007 07:59 AM
Kernel panic - SATA support in 2.6 and slackware vmt1 Slackware 7 12-01-2005 01:55 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:34 AM.

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