Find the answer to your Linux question:
Results 1 to 6 of 6
Hey, i need help moving some driver files found in this location /lib/modules/2.6.27-7-generic/kernel/drivers/net/wireless/rt2x00 I need to blacklist a driver in this folder by moving it elsewhere. Could anybody help me? ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    31

    Moving drivers from one place to another

    Hey, i need help moving some driver files found in this location

    /lib/modules/2.6.27-7-generic/kernel/drivers/net/wireless/rt2x00

    I need to blacklist a driver in this folder by moving it elsewhere.

    Could anybody help me?

    Thanks, Richard

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Moving the module elsewhere is not the best way to blacklist it. If you don't want a module to load at boot, add a line to /etc/modprobe.d/blacklist, reading
    Code:
    blacklist <module name>

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    31
    Quote Originally Posted by reed9 View Post
    Moving the module elsewhere is not the best way to blacklist it. If you don't want a module to load at boot, add a line to /etc/modprobe.d/blacklist, reading
    Code:
    blacklist <module name>
    Thanks for the response, im still very new to linux. What exactly is a module?

    So if i want to blacklist the driver do i type blacklist <driver name> in the terminal?

    thanks

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Basically, the linux kernel is, at least in part, modular, which means you can add functionality, often in the form of a device driver. http://en.wikipedia.org/wiki/Module_(Linux)

    To temporarily add or remove a module, in this case a driver, you can use the modprobe command. For example to remove a driver using the command line, you use the "-r" option.
    Code:
    sudo modprobe -r <driver>
    Or to insert a driver, just
    Code:
    sudo modprobe <driver>
    or
    sudo modprobe -i <driver>
    To blacklist a module everytime the computer boots, you add it to the file /etc/modprobe.d/blacklist. (At least in ubuntu. Distros can vary on this.) You need root privileges to do this. Open the file with a text editor as root.
    Code:
    sudo gedit /etc/modprobe.d/blacklist
    Then add the lines
    Code:
    blacklist <driver/module name>

  5. #5
    Just Joined!
    Join Date
    Oct 2007
    Posts
    31
    EXCELLENT!

    Jeez things seem really difficult. However, ill stick it out.
    Thanks for you time, i'm sorted now. Your help is much appreciated.

    Richard

  6. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Jeez things seem really difficult. However, ill stick it out.
    lol I've been using linux for, oh, something like 15 months now, and you'd be surprised how quickly it all starts to make sense. I wouldn't go back to the windows way in a million years.

Posting Permissions

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