Find the answer to your Linux question:
Results 1 to 9 of 9
hi guys, While inserting/executing a kernel module, I got segmentation fault/Kernal panic. after that im not able to remove that module. finally i need to restart the system. is there ...
  1. #1
    Just Joined! rjayavrp's Avatar
    Join Date
    Apr 2009
    Location
    Incredible India
    Posts
    42

    Thumbs up Segmentation Fault/Kernal panic

    hi guys,

    While inserting/executing a kernel module, I got segmentation fault/Kernal panic.

    after that im not able to remove that module.

    finally i need to restart the system. is there any way to remove that module without restarting.

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Provided you know which module it is, take a look at rmmod.

    There is also modprobe -r
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    If you reboot into runlevel 3 (no GUI), log in as root, and run "modprobe -r modname" you should be able to get rid of it, otherwise it means editing a bunch of configuration files for kernel startup, and you don't want to go there as yet. I assume you can still boot the system? Or does it panic trying to start up?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined! rjayavrp's Avatar
    Join Date
    Apr 2009
    Location
    Incredible India
    Posts
    42

    Thumbs up

    Hey guys..

    once kernel panic or segmentation comes, then i use

    rmmod modulename

    but, the error comes as module busy.

    if i give lsmod , then it shows module is used by 1.
    but no module info which is using is not given.

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Did you try the --force option? It might not work, but if the module was built with CONFIG_MODULE_FORCE_UNLOAD then this will unload it even if busy.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Just Joined! rjayavrp's Avatar
    Join Date
    Apr 2009
    Location
    Incredible India
    Posts
    42
    hi guys,
    i have tried both --force and modprobe -r.
    # for Modprobe -r
    "Device is busy" message is displayed.
    #--force option
    rmmod --force i gave... there is no option like --force.

  7. #7
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    I just want to clarify...
    Code:
    rmmod -f module-name
    Came back no force option? (or similar)
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  8. #8
    Just Joined! rjayavrp's Avatar
    Join Date
    Apr 2009
    Location
    Incredible India
    Posts
    42
    I just want to clarify...
    thank u friend..

  9. #9
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Quote Originally Posted by rjayavrp View Post
    hi guys,
    i have tried both --force and modprobe -r.
    # for Modprobe -r
    "Device is busy" message is displayed.
    #--force option
    rmmod --force i gave... there is no option like --force.
    It's possible that you have an older version than I do, and does not support the --force option. If so, then try -f, as in: rmmod -f modname
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...