On an OpenSuse 11.1 64-bit system, I installed the “xfsprogs” package, version 2.10.1-1.31. After installing the package, “lsmod” does not show the module loaded. When I issue the command “modprobe xfs”, I receive the following message.
FATAL: Could not load /lib/modules/2.6.27.7-9-default/modules.dep: No such file or directory
The directories present in the /lib/modules directory are:
I didn’t change the kernel, I just installed xfs as a module (via yast). And in any case, yes I rebooted, and the xfs module did not load. The question is, why is it looking for xfs in a directory that does not exist? What determines where modprobe, or the boot process, or anything else, looks for this module?
You may have not changed the kernel yourself but the above you posted suggest you had a kernel update and your 2.6.27.2 kernel has been replaced/updated to 2.6.27.29
modprobe looks for modules in the modules directory of the current running kernel and since you said that even after reboot it throws the same error, I suspect you are still running the old kernel (which is highly unlikely since from your messages, its modules directory has gone and without it, there’s high probability the kernel won’t boot) so you may need to go look in /boot/grub/menu.lst to see which kernel entries you have
Also, just because you have installed a file system package, does not mean that it will automatically load/insert the FS module for the file systems. Modules are only inserted automatically when required. The xfs module is already part of the kernel and does not depend on the xfsprogs package which is a package that carries xfs utilities for checking, resizing, defragging, etc of the said file system
Further, you may also need to run as root mkinitrd and after it depmod (just in case)