Kernel panic on boot with new SATA drive Slackware 12 kernel: 2.6.21.5
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.