LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2008, 04:21 AM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
Error in removing module


HI......I compiled the hello world module..ibuilted and i installed by using INSMOD...after that when i tried to remove that module from kernel by RMMOD i am getting thsi error message.....ERROR: Removing 'hello1': Device or resource busy

can any one help me to resolve this error
 
Old 09-02-2008, 02:26 PM   #2
misconfiguration
Member
 
Registered: Apr 2007
Location: Indianapolis, Indiana
Distribution: RHEL, Fedora, AIX, HP-UX, FreeBSD, Slackware
Posts: 62

Rep: Reputation: 19
I've been running into this issue with the qla2xxx qlogic HBA drivers. In my experience I have found that the only way to get around this would to be re-making your initrd ramdisk with the module dependencies removed.

Ensure you have nothing related to this hello1 module in /etc/modules.conf || /etc/modprobe.conf (depending on your *nix distro)

Don't forget other troubleshooting utilities like modinfo, modprobe, lsmod etc.

depmod -r hello1

cd /boot
mv initrd-$(uname -r).img initrd-$(uname -r).img.bak (for safe keeping)
mkinitrd -f initrd-$(uname -r).img

Reboot - now you are able to use rmmod in order to remove this module.

Good luck!

Last edited by misconfiguration; 09-02-2008 at 02:29 PM.
 
Old 09-17-2009, 07:30 AM   #3
Devika99
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Rep: Reputation: 0
Unhappy unable to boot now....

Quote:
Originally Posted by misconfiguration View Post
I've been running into this issue with the qla2xxx qlogic HBA drivers. In my experience I have found that the only way to get around this would to be re-making your initrd ramdisk with the module dependencies removed.

Ensure you have nothing related to this hello1 module in /etc/modules.conf || /etc/modprobe.conf (depending on your *nix distro)

Don't forget other troubleshooting utilities like modinfo, modprobe, lsmod etc.

depmod -r hello1

cd /boot
mv initrd-$(uname -r).img initrd-$(uname -r).img.bak (for safe keeping)
mkinitrd -f initrd-$(uname -r).img

Reboot - now you are able to use rmmod in order to remove this module.

Good luck!
I had a similar error...that is unable to rmmod a kernel module....
I followed the above steps.... that is go to /boot and mv mkinitrd n all that...
Now am unable to boot fedora.... it says booting failed...
 
Old 09-17-2009, 07:34 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
I never had the problem that you said but what if you just blacklist the module?
 
Old 09-17-2009, 07:42 AM   #5
Devika99
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by linuxlover.chaitanya View Post
I never had the problem that you said but what if you just blacklist the module?
the error i get is

ERROR 15 : File not found
Press any key to continue....


and after that, even on pressing any other key, i come back to the same thing....

i suppose by that command, some file must have got corrupted or something, though not sure...
 
Old 09-17-2009, 07:46 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
When do you get the error though?
 
Old 09-17-2009, 07:49 AM   #7
Devika99
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by misconfiguration View Post
I've been running into this issue with the qla2xxx qlogic HBA drivers. In my experience I have found that the only way to get around this would to be re-making your initrd ramdisk with the module dependencies removed.

Ensure you have nothing related to this hello1 module in /etc/modules.conf || /etc/modprobe.conf (depending on your *nix distro)

Don't forget other troubleshooting utilities like modinfo, modprobe, lsmod etc.

depmod -r hello1

cd /boot
mv initrd-$(uname -r).img initrd-$(uname -r).img.bak (for safe keeping)
mkinitrd -f initrd-$(uname -r).img

Reboot - now you are able to use rmmod in order to remove this module.

Good luck!
I did the above things and then i did reboot...

n from that point on, i m unable to recover my fedora
 
Old 09-17-2009, 07:57 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Boot from the cd and go to the recovery mode and if you have the backup file that you renamed .bak change it back to the original.
 
Old 09-17-2009, 08:07 AM   #9
Devika99
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Rep: Reputation: 0
Thank you....
I don't have the cd now...will get it by tomorrow and try it out.... else without the cd, there is no other way to recover it..right???
 
Old 09-17-2009, 08:09 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You have borked the initrd image. So I guess you will need the cd to recover.
 
Old 09-17-2009, 08:12 AM   #11
Devika99
LQ Newbie
 
Registered: Aug 2008
Posts: 20

Rep: Reputation: 0
Alright....I'll get the cd and do it....
Thanks again....
 
  


Reply


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
removing a module from initrd tomazN Linux - Software 2 05-28-2006 04:31 PM
Removing agpgart module 46&2 Linux - Newbie 5 04-15-2005 07:49 PM
Removing a module jrdioko Linux - Newbie 4 09-03-2004 02:10 AM
help removing module DWebb82 Linux - Software 5 05-24-2004 11:06 PM
Removing/Disabling a module hyperriven Linux - Software 5 11-05-2003 11:59 AM


All times are GMT -5. The time now is 03:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration