[opensuse] Recovered 10.3 system with 11.2 recovery disk, now get -> modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1
Listmates, I recovered my 10.3 system with the 11.2 install dvd. I booted the installed system from the 11.2 disk and then re-installed grub. Now I get the following modprobe error whenever I try to copy files from sdb -> sda: Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory Somewhere when I installed grub, some file got imprinted with the 11.2 kernel information 'even though' I had booted my 10.3 install from the 11.2 dvd 'before' I reinstalled grub. I have grepped through /etc and /boot looking for the 2.6.31 kernel information, but I'm drawing blanks. What file did this information get stored in?? How do I fix it? Reinstall grub again?? Something else? Before I go trying to fix this one, I would like to understand what it is I'm fixing before I go reinstalling bootloaders, etc... I'm almost positive it is something to do with the current bootloader install on /sdb (the good disk of the raid set). Currently, I have what may/may-not be the old first disk of the raid set (sda) mounted under /mnt/sda (the complete filesystem / with /home mounted as /mnt/sda/home and boot mounted as /mnt/sda/boot). I would like to try a few block copies to the drive and see if it throws any errors. However, I can't copy anything to it due to the weird 11.2 kernel module dependency that has appeared on my 10.3 system. What say the gurus on this situation? Weird yes, but what is the likely culprit and how to fix it?? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2010-01-03 at 02:21 -0600, David C. Rankin wrote:
Listmates,
I recovered my 10.3 system with the 11.2 install dvd. I booted the installed system from the 11.2 disk and then re-installed grub. Now I get the following modprobe error whenever I try to copy files from sdb -> sda:
Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory
It seems like depmod got confused. But I don't know where the information to search for modules.dep is stored. Have a look to see if the kernel files in /boot are consistent. Try running depmod. Ah! There is an "/etc/depmod.conf" file, look in there. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAktAg7AACgkQtTMYHG2NR9WmeACbBgHz+DtX8K1Q8Gf0vXMxrD0A dOgAnRVFbI5h9N1QcVuAbWxjfcOzxrzs =C1J/ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2010-01-03 at 02:21 -0600, David C. Rankin wrote:
Listmates,
I recovered my 10.3 system with the 11.2 install dvd. I booted the installed system from the 11.2 disk and then re-installed grub. Now I get the following modprobe error whenever I try to copy files from sdb -> sda:
Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory
Sounds like the 11.2 recovery gave you an 11.2 kernel in /boot, with an 11.2 initrd, but didn't give you the 11.2 kernel rpm with the modules. I suspect your 10.3 kernel is still under /boot though, and it may even be available as a boot option already in /boot/grub/menu.lst, but if it isn't, edit that file and make it point to the correct kernel file. If the kernel isn't available under /boot, you may have to reinstall the rpm, which should take care of menu.lst automatically Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2010-01-03 at 12:46 +0100, Carlos E. R. wrote:
Ah! There is an "/etc/depmod.conf" file, look in there.
No, there you can only override the search order of the directories inside the kernel directory. The path of the kernel directory is basedir/versiondir/. You can change the basedir with the -d parameter to modprobe (it is /lib/modules by default), and you can change the versiondir with the -S parameter (or by replacing uname, the default is the output of 'uname -r') Or you can recompile module-init-tools. But you can't change the defaults with a config file. Incidentally, the post-build-checks package does install its own uname script, which can be configured to return a different output than the currently running kernel, with a config file /.kernelversion, but even that wouldn't confuse modprobe, since it uses the uname syscall, not the executable Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2010-01-03 at 14:27 +0100, Anders Johansson wrote:
default), and you can change the versiondir with the -S parameter (or by replacing uname, the default is the output of 'uname -r')
responding to myself is bad form I know, but my confusion here had to be corrected, especially given what I said below. replacing uname = modifying the uname syscall in the kernel output of uname -r = equivalent of. Actually the utsname.release part of the return value [...]
that wouldn't confuse modprobe, since it uses the uname syscall, not the executable
...which is why I felt a need to clarify Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
On Sun, 2010-01-03 at 02:21 -0600, David C. Rankin wrote:
Listmates,
I recovered my 10.3 system with the 11.2 install dvd. I booted the installed system from the 11.2 disk and then re-installed grub. Now I get the following modprobe error whenever I try to copy files from sdb -> sda:
Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory
Sounds like the 11.2 recovery gave you an 11.2 kernel in /boot, with an 11.2 initrd, but didn't give you the 11.2 kernel rpm with the modules.
I suspect your 10.3 kernel is still under /boot though, and it may even be available as a boot option already in /boot/grub/menu.lst, but if it isn't, edit that file and make it point to the correct kernel file.
If the kernel isn't available under /boot, you may have to reinstall the rpm, which should take care of menu.lst automatically
Anders
Anders, You nailed this one -- again! Blows my mind: 23:27 nirvana:~> uname -r 2.6.31.5-0.1-default 23:29 nirvana:~> sudo ls -al /boot total 10391 drwxr-xr-x 4 root root 3072 2009-12-30 19:10 . drwxr-xr-x 21 root root 4096 2009-12-31 02:12 .. -rw------- 1 root root 512 2008-03-07 21:23 backup_mbr lrwxrwxrwx 1 root root 1 2008-03-07 20:52 boot -> . -rw-r--r-- 1 root root 73052 2009-08-14 07:47 config-2.6.22.19-0.4-default drwxr-xr-x 2 root root 1024 2009-12-31 03:17 grub lrwxrwxrwx 1 root root 28 2009-12-30 19:10 initrd -> initrd-2.6.22.19-0.4-default -rw-r--r-- 1 root root 4552014 2009-12-30 19:10 initrd-2.6.22.19-0.4-default drwx------ 2 root root 12288 2008-03-07 20:34 lost+found -rw-r--r-- 1 root root 103100 2007-09-21 16:47 memtest.bin -rw-r--r-- 1 root root 389120 2009-12-30 19:10 message -rw-r--r-- 1 root root 99198 2009-08-14 07:28 symsets-2.6.22.19-0.4-debug.tar.gz -rw-r--r-- 1 root root 99852 2009-08-14 07:48 symsets-2.6.22.19-0.4-default.tar.gz -rw-r--r-- 1 root root 98780 2009-08-14 07:48 symsets-2.6.22.19-0.4-xen.tar.gz -rw-r--r-- 1 root root 398361 2009-08-14 07:48 symtypes-2.6.22.19-0.4-default.gz -rw-r--r-- 1 root root 114226 2009-08-14 07:48 symvers-2.6.22.19-0.4-default.gz -rw-r--r-- 1 root root 1075001 2009-08-14 07:43 System.map-2.6.22.19-0.4-default -rwxr-xr-x 1 root root 1960291 2009-08-14 07:47 vmlinux-2.6.22.19-0.4-default.gz lrwxrwxrwx 1 root root 29 2009-08-25 02:54 vmlinuz -> vmlinuz-2.6.22.19-0.4-default -rw-r--r-- 1 root root 1594440 2009-08-14 07:43 vmlinuz-2.6.22.19-0.4-default What I don't understand is the only new file is the initrd-2.6.22.19-0.4-default, which apparently is really 2.6.31.5, while all my kernels are still 2.6.22.19 from the 8/14 kernel update. So it looks like I only need to remake initrd-2.6.22.19-0.4-default. Do you concurr? Also, strangely, everything is running find on 2.6.31 made for 11.2 on my 10.3 system. How is that possible? Next, How did I get a 2.6.31 kernel by reinstalling grub when the 11.2 dvd was simply used to boot the existing 10.3 system? Something smells fishy here... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2010-01-03 at 23:38 -0600, David C. Rankin wrote:
How did I get a 2.6.31 kernel by reinstalling grub when the 11.2 dvd was simply used to boot the existing 10.3 system?
oh, you booted from the DVD, I missed that, that explains everything. When you boot from the DVD, the kernel is taken from the DVD, not from your hard drive - so booting from the 11.2 DVD will naturally boot up the 11.2 kernel. Then your system isn't messed up, you just need to boot from the hard drive to get everything back to normal Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sunday, 2010-01-03 at 02:21 -0600, David C. Rankin wrote:
Listmates,
I recovered my 10.3 system with the 11.2 install dvd. I booted the installed system from the 11.2 disk and then re-installed grub. Now I get the following modprobe error whenever I try to copy files from sdb -> sda:
Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory Jan 3 02:06:53 nirvana modprobe: FATAL: Could not load /lib/modules/2.6.31.5-0.1-default/modules.dep: No such file or directory
It seems like depmod got confused. But I don't know where the information to search for modules.dep is stored. Have a look to see if the kernel files in /boot are consistent. Try running depmod.
Ah! There is an "/etc/depmod.conf" file, look in there.
- -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAktAg7AACgkQtTMYHG2NR9WmeACbBgHz+DtX8K1Q8Gf0vXMxrD0A dOgAnRVFbI5h9N1QcVuAbWxjfcOzxrzs =C1J/ -----END PGP SIGNATURE-----
Carlos:
The Sunday 2007-09-30 at 16:20 -0400, caleb storms wrote:
its been awhile since i've had to compile a kernel, but i had to for some things and i've installed it with no real issue, the thing is that I used the old initrd file for my boot loader. Therefore it didn't seem to load the new modules. Makes sense i guess. Anyway, i'm on a ppc and i have not found an easy way to create an initrd image. Does anyone know of any down and dirty howto for this ?
Doesn't the "mkinitrd" script work there?
- -- Cheers, Carlos E. R.
Thanks for the help :p -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
On Sun, 2010-01-03 at 23:38 -0600, David C. Rankin wrote:
How did I get a 2.6.31 kernel by reinstalling grub when the 11.2 dvd was simply used to boot the existing 10.3 system?
oh, you booted from the DVD, I missed that, that explains everything. When you boot from the DVD, the kernel is taken from the DVD, not from your hard drive - so booting from the 11.2 DVD will naturally boot up the 11.2 kernel. Then your system isn't messed up, you just need to boot from the hard drive to get everything back to normal
Anders
Well, damnit, your 100% right again :p. I went ahead and rebuilt initrd anyway, reinstalled grub into the mbr of sdb, rebooted, disabled raid function in the bios, rebooted, set sdb as the primary boot drive, rebooted again and -- perfect! (with all these reboots, what's that OS that had that problem ???) I suspect that I could have left the initrd untouched and it would have worked as you describe. After all, the boot of the 11.2 dvd was simply to allow the boot of the installed system which needed the boot loader reinstalled after I split a 2-disk dmraid array. I should have pulled the 11.2 dvd immediately after I reinstalled grub, but the wife was reminding me were late getting to lake to meet my brother with his 4 kids for a weekend and New Years of quite fun with 7 kids all under 10 in the lakehouse. I hope you see the humor in that -- seven kids all under 10 in any house, regardless of the size does NOT allow for a quite anything...;-) Thanks for your help Anders - again... -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Anders Johansson
-
Carlos E. R.
-
David C. Rankin