Fatal Error: Could not open /lib/modules/2.6.15.7-ubuntu1/modules.dep.temp

Bug #77584 reported by Ganesh
2
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://fossil.wpi.edu/docs/howto_build_kernel.html. After trying the following commands I am not able to boot from the kernel I built when I select the grub menu item "Ubuntu, kernel linux-source-2.6.15". The error message is:

Fatal Error: Could not open /lib/modules/2.6.15.7-ubuntu1/modules.dep.temp

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/linux_src/linux-source-2.6.15 directory.

$ 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/linux_src/linux-source-2.6.15/
$ sudo chown -R root /home/vganesh/linux_src/linux-source-2.6.15/
$ sudo make clean
$ sudo make menuconfig
$ sudo make
$ sudo make bzImage
$ sudo make modules_install
$ sudo mkdir /boot/testing
$ sudo cp arch/i386/boot/bzImage /boot/testing/
$ 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/bzImage root=/dev/hdb1 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
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.img-2.6.15-23-386
-rw-r--r-- 1 root root 7001304 1996-12-31 21:23 /boot/initrd.img-2.6.15-23-386

$ ls -l /lib/modules/2.6.15.7-ubuntu1/modules.dep.temp
ls: /lib/modules/2.6.15.7-ubuntu1/modules.dep.temp: No such file or directory

$ ls -l /lib/modules/2.6.15.7-ubuntu1/modules.dep
-rw-r--r-- 1 root root 327117 2006-12-31 09:32 /lib/modules/2.6.15.7-ubuntu1/modules.dep

$ ls -l /lib/modules/2.6.15.7-ubuntu1/
total 1412
lrwxrwxrwx 1 root root 43 2006-12-31 09:26 build -> /home/vganesh/linux_src/linux-source-2.6.15
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/linux_src/linux-source-2.6.15

Revision history for this message
Matti Lindell (mlind) wrote :

Did you try to run depmod manually?

Changed in linux-source-2.6.15:
status: Unconfirmed → Needs Info
Revision history for this message
Chuck Short (zulcss) wrote :

This is more of a support than a bug. You might want to open a support request instead.

Revision history for this message
Ganesh (venkat-ganesh43016) wrote :

I ran the command "sudo make depmod" successfully. However, when I try to reboot I see the same issue.

Created a support request ubuntu ticket# 3004.

Thanks and regards,

Revision history for this message
Rolf Leggewie (r0lf) wrote :

This was a report request more than a malfunction. The issue seems to be dealt with at the mentioned support request. I think closing this one is fine.

Changed in linux-source-2.6.15:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.