public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: linux-kernel@vger.kernel.org
Subject: Re: why can't I remove a kernel module (or: what uses a given module)?
Date: Mon, 04 Dec 2006 09:02:06 +0100	[thread overview]
Message-ID: <4573D5FE.3070902@wpkg.org> (raw)
In-Reply-To: <20061203234202.GL7114@grifter.jdc.home>

Jim Crilly wrote:
> On 12/03/06 08:59:10PM +0100, Tomasz Chmielewski wrote:
>> Ross Vandegrift wrote:
>>> On Sun, Dec 03, 2006 at 12:58:24PM +0100, Tomasz Chmielewski wrote:
>>>> You mean the "Used by" column? No, it's not used by any other module 
>>>> according to lsmod output.
>>>>
>>>> Any other methods of checking what uses /dev/sda*?
>>> There's a good chance that if it was loaded at system boot, hald or
>>> udev may be doing something with it.
>> This machine doesn't have hal; when I kill udevd still doesn't help.
>>
>> Yes, something's using that drive, be it a program, a module (unlikely), 
>> or something that is compiled directly in the kernel (for example, 
>> md/raid1).
>> But what is it?
>>
>> Kernel knows it, as it refuses to remove the module (via rmmod), but how 
>> to tell kernel to share this knowledge with me?
>>
> 
> Have you checked to make sure there's no swap partitions on it being
> automatically activated at boot? Also, have you checked the output of lsof?

The machine doesn't even have swap, so no, no swap on that device 
(confirmed by th output of free with 0 swap).
The device doesn't also show up in /etc/fstab.

And "lsof -n | grep sd" doesn't show anything.


-- 
Tomasz Chmielewski
http://wpkg.org

  reply	other threads:[~2006-12-04  8:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-03 11:20 why can't I remove a kernel module (or: what uses a given module)? Tomasz Chmielewski
2006-12-03 11:34 ` Andreas Schwab
2006-12-03 11:58   ` Tomasz Chmielewski
2006-12-03 15:49     ` Ross Vandegrift
2006-12-03 19:59       ` Tomasz Chmielewski
2006-12-03 23:42         ` Jim Crilly
2006-12-04  8:02           ` Tomasz Chmielewski [this message]
2006-12-04 10:10         ` Tobias Oed
2006-12-04 10:39           ` Tomasz Chmielewski
2006-12-05  0:15           ` Michal Jaegermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4573D5FE.3070902@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox