Linux - GeneralThis 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
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.
While I was trying to get one of my distros configured, I figured maybe installing a second distro might be the best way to go to check/compare file differences. Well, somehow in the meantime, either during the install or during the comparing and changing of files, I seem to have changed the location of each modprobes default locations? Here's what I mean:
I type modprobe (whatever) and it returns an error message with:
cannot locate /lib/modules/2.4.18-6mdk/module.dep no such file or directory
or something very similar to that. This is the message I get from my Slackware install. I get just the opposite in slack:
cannot locate /lib/modules/2.4.18/module.dep no such file or directory
or similar.
Does anyone know why? Or even better, any ideas on how to fix it? Other than "Don't dual boot distros" or "Don't install Mandy (or Slackware)".
Ok, so anyway, I installed suse no problem, it runs fine. I booted back into Slack, and get a bunch of module errors. So I login and try modprobe emu10k1, and it returns with:
error: /lib/modules/2.4.18GB/modules.dep does not exist
Well I have /lib/modules/2.4.18/modules.dep but somehow during the suse install it messed with my Slack install. If I type uname -a I get Linux 2.4.18GB i586 now. I used to get something like Linux 2.4.18 i386 So it looks like the suse install messed with something on my slack, but I don't know what. If anyone has any ideas, or fixes, or wild suggestions, please feel free to share them.
Thanks!
Your computer seems to read from the wrong partition. the folder 2.4.18GB seems to come from SuSE, and you don't have it in Slack. In slack, the folder is named .../2.4.18/....
It just seems that the modules you want to use comes from SuSE (emu10k1).... the correct place should be without this GB.
Sorry, I don't know what to do about it, but at least I can pinpoint a problem
Hope it is helpful.
Wait... may be, you mounted wrong partitions or you share some partitions (doesn't look like it though). Just an idea
What does your lilo/grub config file look like. As far as I can see you are always booting up with the kernel which is placed on the /hdb6 partition even when you boot slackware. I assume when both slack and mandrake where getting the opposite you had slack setup to boot with mandrake's kernel and the opposite for mandrake.
The kernel always looks for the directory /lib/modules/`uname -r` to find the modules. So if you have the wrong kernel it won't find the right module directory.
Though I don't think this is much possible....
Is it possible that by mistake, you renamed or over wrote some kernels?
--Sarin
PS: Also is it possible to know the kernel version without booting it? May be you can try that also. Diff kernel1 kernl2 might be last try too?
You'll see they have the same path to the kernel and the same name. When you run lilo, it may only use only one of the root ' / ' partitions. Like, hdb6 to find the kernels. So, when you run either suse or slack, they'll use the same kernel.
Now, I don't know which partition lilo will look at. It could be which linux is the default. Or it could be which one comes first in the lilo.conf file.
I know of three ways that might fix it.
1. Copy the kernels to each others /boot folder. Don't forget to rename one of them. Run lilo and you're done.
2. Run suse linux. Mount the root partition of slack, hdb1, at say /mnt/slack. Then change slack's image line in suse's lilo.conf file to:
image=/mnt/slack/boot/vmlinuz
Run lilo and unmount the partition. You could run slack and mount suse.
3. Boot into slack and install lilo into it's boot partition, hdb1. Then edit suse's lilo.conf file and remove the slack section and replace it with this:
other=/dev/hdb1
label=Slackware
Run lilo. You could also boot into suse and edit slack's lilo.conf.
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
but the 'root' bit is different. this is the important bit since when lilo reaches a different section (such as the suse section) it will see the root section and know which partition to look at).
though i think you should try linuxcool's suggestion just in case.
I know that lilo will use the order that the sections are written in unless you specify a default (to answer linuxcool's question). So in your lilo.conf it should start at the slack section, though from there i don't know. If there was no 'default' line then it would use the top section and works its way down (this is how i have mine). Though since it is set up as a menu i don't see why this would make a difference ........
im lost now....too much drink and too little sleep hasn;t helped but i don;t see how the two distros are crossing boundries without it being mentioned in the /etc/fstab file (which would have to be done explicitly unless the mandrake/suse install is weird)
Alex
P.S.sorry if that was no help, someone super clever is going to arrive with the answer soon after all this deliberating.....
webtoe, I think I know how it works. When lilo is run, it doesn't look at the ' root= ' lines to find the root partition to use. It uses the currently mounted root partition. If suse is running and you run lilo, it will use suse's partition ( hdb6 ). If it's slackware that's runnung, it will be hdb1.
So, if MasterC is using suse's lilo.conf file, he would copy slackware's kernel into suse's /boot folder. That's if he used the no. 1 way to fix the problem.
You need to pick which one of the three ways to fix the problem.
No. 1 might be the easiest. If you are using suse's lilo.conf to boot, then copy slack's kernel to the /boot directory of suse. Remember to rename it. Say vmlinuz.slack and also change the name in the image=/boot/vmlinuz, in slacks section of suse's lilo.conf, to image=/boot/vmlinuz.slack. Run lilo and then reboot.
If you're using slack's lilo.conf to boot, copy suse's kernel into slack's /boot directory. Rename suse's kernel ( vmlinuz.suse8 ). Change image=/boot/vmlinuz to image=/boot/vmlinuz.suse8 in suse's section of slack's lilo.conf. Run lilo and reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.