public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jim Crilly <jim@why.dont.jablowme.net>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: Ross Vandegrift <ross@kallisti.us>,
	Andreas Schwab <schwab@suse.de>,
	linux-kernel@vger.kernel.org
Subject: Re: why can't I remove a kernel module (or: what uses a given module)?
Date: Sun, 3 Dec 2006 18:42:02 -0500	[thread overview]
Message-ID: <20061203234202.GL7114@grifter.jdc.home> (raw)
In-Reply-To: <45732C8E.4060801@wpkg.org>

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?

Jim.

  reply	other threads:[~2006-12-03 23:42 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 [this message]
2006-12-04  8:02           ` Tomasz Chmielewski
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=20061203234202.GL7114@grifter.jdc.home \
    --to=jim@why.dont.jablowme.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mangoo@wpkg.org \
    --cc=ross@kallisti.us \
    --cc=schwab@suse.de \
    /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