title: "FATAL: Module not found error" using modprobe
body: <p>I have a problem with <code>modprobe</code> command... I compiled the hello world module and loaded it with <code>insmod</code>, it works fine and when I do <code>lsmod</code>, I can see it in the output list. But when I insert this module using <code>modprobe</code> I am getting a FATAL error:</p>
  
  <pre><code>root@okapi:/home/ravi# modprobe ./hello.ko 
  FATAL: Module ./hello.ko not found.
  root@okapi:/home/ravi#
  </code></pre>
  
  <p>Here is the module code:</p>
  
  <pre><code>#include &lt;linux/init.h&gt;
  #include &lt;linux/module.h&gt;
  
  MODULE_LICENSE("Dual BSD/GPL");
  
  static int hello_init(void)
  {
          printk(KERN_ALERT "Hello, world\n");
          return 0;
  }
  static void hello_exit(void)
  {
          printk(KERN_ALERT "Goodbye, cruel world\n");
  }
  
  module_init(hello_init);
  module_exit(hello_exit);
  </code></pre>
  
  <p>and Makefile</p>
  
  <pre><code>obj-m += hello.o
  
  all:
          make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
  
  clean:
          make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
  </code></pre>