Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a card installed, which causing not to get ip address automatically using DHCP. So i need to remove that card completely for the moment. I tried as below but its not working how can i remove it?

$ lsmod | card
card   45555 2

$ modprobe -r card
FATAL: Module card is in use.

$ rmmod card
FATAL: Module card is in use.
share|improve this question
lsmod|card is not the real command you gave I think. You missed the grep part pasting here possibly. So, is this output the whole one? I mean is there any other modules using card? – heartsmagic Dec 8 '11 at 10:09
up vote 2 down vote accepted

One possible way is to blacklist the driver that is being loaded:

sudo nano `/etc/modprobe.d/blacklist`

add the driver-name using following syntax:

blacklist driver-name


Create a file '/etc/modprobe.d/[modulename].conf' containing 'blacklist [modulename]'.

Run depmod -ae as root

Recreate your initrd with update-initramfs -u


In the dim and distant past I seem to remember you can do this from Grub - not sure if this is still applicable in oneiric but you could try as one of your Grub boot options

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.