Fatal Error: Could not open /lib/modules/2.6.15.7-ubuntu1/modules.dep.temp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-source-2.6.15 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-source-2.6.15
Hello,
I have installed ubuntu linux 2.6.15-27-386 successfully. I have downloaded linux-source-2.6.15 and I am trying to rebuild the kernel from the source based on the information available at http://
Fatal Error: Could not open /lib/modules/
I have verified the files and directoy listed in /boot/grub/menu.lst do exist, as shown below. Even if I copy modules.dep to modules.dep.temp, it is not booting.
Any idea what step I am missing?
Thanks and regards
List of commands I tried to build the kernel from the source from /home/vganesh/
$ uname -a
Linux vganesh-desktop 2.6.15-27-386 #1 PREEMPT Fri Dec 8 17:51:56 UTC 2006 i686 GNU/Linux
$ sudo chown -R USER:root /home/vganesh/
$ sudo chown -R root /home/vganesh/
$ sudo make clean
$ sudo make menuconfig
$ sudo make
$ sudo make bzImage
$ sudo make modules_install
$ sudo mkdir /boot/testing
$ sudo cp arch/i386/
$ sudo vi /boot/grub/menu.lst
...
$ cat /boot/grub/menu.lst
...
title Ubuntu, kernel linux-source-2.6.15
root (hd1,0)
kernel /boot/testing/
initrd /boot/initrd.
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
$ ls -l /boot/testing/
total 1388
-rw-r--r-- 1 root root 1414758 2006-12-31 09:37 bzImage
$ ls -l /boot/initrd.
-rw-r--r-- 1 root root 7001304 1996-12-31 21:23 /boot/initrd.
$ ls -l /lib/modules/
ls: /lib/modules/
$ ls -l /lib/modules/
-rw-r--r-- 1 root root 327117 2006-12-31 09:32 /lib/modules/
$ ls -l /lib/modules/
total 1412
lrwxrwxrwx 1 root root 43 2006-12-31 09:26 build -> /home/vganesh/
drwxr-xr-x 10 root root 4096 2006-12-31 09:31 kernel
-rw-r--r-- 1 root root 306170 2006-12-31 09:32 modules.alias
-rw-r--r-- 1 root root 69 2006-12-31 09:32 modules.ccwmap
-rw-r--r-- 1 root root 327117 2006-12-31 09:32 modules.dep
-rw-r--r-- 1 root root 813 2006-12-31 09:32 modules.ieee1394map
-rw-r--r-- 1 root root 806 2006-12-31 09:32 modules.inputmap
-rw-r--r-- 1 root root 21795 2006-12-31 09:32 modules.isapnpmap
-rw-r--r-- 1 root root 74 2006-12-31 09:32 modules.ofmap
-rw-r--r-- 1 root root 243251 2006-12-31 09:32 modules.pcimap
-rw-r--r-- 1 root root 1135 2006-12-31 09:32 modules.seriomap
-rw-r--r-- 1 root root 129369 2006-12-31 09:32 modules.symbols
-rw-r--r-- 1 root root 362008 2006-12-31 09:32 modules.usbmap
lrwxrwxrwx 1 root root 43 2006-12-31 09:26 source -> /home/vganesh/
Did you try to run depmod manually?