SOLVED! Slackware Dual Boot: Kernel Panic
Dear Forum,
I've just installed Slackware 11.0 on a second partition of my main SATA drive (/dev/sda7) in the interest of setting up a dual boot with PCLinuxOS. I'm getting "Kernel panic -- not syncing -- no init found..." Here's my MBR lilo.conf: Code:
# File generated by DrakX/drakboot Code:
# LILO configuration file Thanks, I appreciate any help, Joel |
Linux does not require a partition to be tagged bootable -- only Windows needs that.
I don't know what "File generated by DrakX/drakboot" is -- sounds like something from Mandrake to me. If your / (root) Slackware partition is /dev/sda7, that part is correct; but the Slackware way of setting up an initial ramdisk image is not "initrd=/boot/initrd.img". From the Slackware instructions: Code:
mingdao@silas:~$ cat /boot/README.initrd Code:
mingdao@silas:~$ cat /etc/lilo.conf I think if you setup your initrd image properly, you can boot. But if you installed the default kernel you shouldn't need one. To get back into your Slackware distro boot with Slackware CD1 and at the prompt type: sata.i root=/dev/sda7 noinitrd ro Once you're in, fix that initrd and install LiLO to the MBR. |
Dear Sir,
Thanks for getting back to me. I am really interested in using Slackware. I did not install the slackware generate LILO to my MBR because my main system boots fine from the LILO -- are you saying I can add an entry for slackware to that lilo.conf and boot into slackware? Or do I have to install it from slackware and then add PCLinuxOS? Thanks for the literature on initrd -- I did not set up an initrd. Do I need to eradicate LILO on the slackware root partition? I got the kernel panic after not installing LILO to /dev/sda7 initially, however my lilo.conf entries were screwed up then, too. Would this cause the kernel panic? By the way, I've used google many times to look up this kernel panic and never found a single conclusive answer: if you're aware of an article that addresses it, please post a link to it -- I WOULD REALLY LIKE TO READ IT. Thanks, Joel :newbie: |
Hello,
I've since updated my lilo.conf and learned a little about LILO. Here's the file: Code:
# File generated by DrakX/drakboot Code:
So, I figured out after rebooting with this configuration that it (presumably it=LILO) is loading the wrong kernel image -- I'm getting all the same stuff I would with the PCLinuxOS kernel. Now the question is, how do I boot the sucker so that it recognizes the kernel image on /dev/sda7? The file is definitely there! What I mean is that when I look at /boot on /dev/sda7, /vmlinuz-ide2.4.33.3 is there; doesn't "root=/dev/sda7" tell LILO where to look?:scratch: Thanks, Joel |
Question: I notice that you have a line in your lilo.conf that says "panic=15" -- do I need this in my lilo.conf?
To clarify my original reply, I'm already using LILO -- it's already installed on the MBR and I'm configuring everything from within PCLinuxOS. The only systems installed on the computer are PCLinuxOS 0.93 and Slackware 11.0. Thanks, Joel |
Place a copy of your slackware kernel alongside the PC-linux kernel so that the PG-Linux lilo can find it.
|
gnashley,
Do you mean in the /boot of my PCLinuxOS install on /dev/sda1? I found this solution elsewhere on this forum and in others, and I believe it would work. Are there any other solutions? Is this just a matter of setting up LILO, i.e., the lilo command? Is there a lilo option that would convince the lilo command to look in /mnt/sda7/boot/vmlinuz? Joel |
How about a symbolic link in my main /boot folder, for example
vmlinuz2 -> /mnt/sda7/boot/vmlinuz-ide2.4.33.3 Would that put LILO onto the scent? Joel |
You must have the proper names in /etc/lilo.conf.
Code:
mingdao@silas:~$ ls /boot | grep -i 2.4.33.3 Code:
Boot image: /boot/vmlinuz-ide2.4.33.3 Code:
image=/boot/vmlinuz-ide2.4.33.3 When you try to boot Slackware, what happens? Originally posted by trashbird1240: Quote:
so you must depress the Reset switch or turn the power off and reboot. If you put Code:
append="panic=15" itself after 15 seconds. This gives me enough time to read the terminal and determine why the kernel panic happened. Don't symlink your kernel image, just set LiLO up correctly. |
Howdy Y'all
Thanks for all the help: I got it to work by copying the slackware kernel to the /boot directory while I run lilo. That may have in fact been unnecessary since the error was not with the slackware entry, it was that I changed the name of the default entry without changing the name under the default field. Joel |
A classic case of PEBKAC. :D
|
Ha! What is PEBKAC?
It's been working pretty good -- I'm just trying to configure X and add myself as a user and all that stuff. It's a really nice system -- very UNIXy. I even logged in to Pine, just for old time's sake! Joel |
PEBKAC
Hang in there -- Slackware has given me back my Personal Computer that Mickey$oft took away. We Slackers in these forums will do whatever we can to help you. |
Thankfully I broke the Micro$*ft monopoly long ago in our house with PCLinuxOS. However, Slackware is quickly rising on my favorites list, and I may want to make it my main scientific platform.
I love Slackware so far; I was telling some people last night on IRC that I wish I could use it at work... If you can get me out of that Broken Window then I'll be a Slacker for life ;) When I get to grad school I'm setting up my own system, no ifs ands or buts (I think they'll be happy to hear that, actually). If anyone has any experience on this end, let me know. Joel |
All times are GMT -5. The time now is 03:55 PM. |