LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 01-11-2017, 11:13 AM   #1
miller420
LQ Newbie
 
Registered: Jan 2017
Posts: 9

Rep: Reputation: Disabled
Deleted driver still loads


Hi,

On my Centos system, this is my nvme driver:

/lib/modules/3.16.0-38-generic/kernel/drivers/block/nvme.ko

When system boots this driver gets loaded automatically. Running lsmod shows that this driver is loaded and using modprobe -r or rmmod I can unload the driver.

I deleted this driver file and rebooted the system but the driver still loads! lsmod detects the driver and I can unload the driver. modinfo nvme says it cant find /lib/modules/3.16.0-38-generic/kernel/drivers/block/nvme.ko.

find / -name nvme.ko does not find any nvme driver on the system.

I know I can add the driver to the blacklist so it wont load, but what I want to know is where on earth is Linux loading the driver from?

TIA
Nisha
 
Old 01-11-2017, 12:18 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
Is 3.16.0-38-generic the kernel version reported by "uname -r"?

You can (and often do) have multiple kernel versions installed as you update and it preserves earlier kernels in grub and in /lib/modules to allow you to boot from older kernel (especially after an upgrade). The /lib/modules subdirectory used is the one that matches the kernel release you're booting.
 
Old 01-11-2017, 12:41 PM   #3
miller420
LQ Newbie
 
Registered: Jan 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MensaWater View Post
Is 3.16.0-38-generic the kernel version reported by "uname -r"?

You can (and often do) have multiple kernel versions installed as you update and it preserves earlier kernels in grub and in /lib/modules to allow you to boot from older kernel (especially after an upgrade). The /lib/modules subdirectory used is the one that matches the kernel release you're booting.
correct, that is the kernel version reported by uname -r.

The fact that I'm able to unload the driver (and also that lsmod reports it) confirms that the driver is not built into the kernel. Therefor it follows that modprobe looks for the driver in /lib/modules/`uname -r` but its not there!

BTW this thread was double posted by mistake.

Nisha
 
Old 01-11-2017, 12:45 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
Is it built into ramfs?
 
Old 01-12-2017, 08:19 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
https://www.linuxquestions.org/quest...ds-4175597228/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Deleted driver still loads miller420 Linux - Software 13 01-13-2017 11:04 AM
nvidia 6150 driver loads sometimes on restart sometimes it does not. breitscott Linux - Desktop 3 04-28-2007 11:21 PM
Linux Driver loads automatically? binarybob0001 Linux - Software 6 09-03-2006 11:18 AM
Wireless card, driver loads, now what? Oxyacetylene Linux - Wireless Networking 6 08-14-2005 10:06 PM
Alsa loads wrong driver when hotplug runs first ministre Linux - Hardware 2 11-21-2004 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration