Report this

What is the reason for this report?

not needed drivers

Posted on April 30, 2013

Hi All,

Read a lot on the internet to improve my DO VPS. I have found some stuff to remove, because we do not use it anymore… or it is old legacy. Can i remove those drivers without problem?

thanks, Peter

for i in $(find /lib/modules/uname -r/kernel/drivers/net/wireless -name “.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-wireless.conf ; done for i in $(find /lib/modules/uname -r/kernel/drivers/scsi/fcoe -name ".ko” -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-fcoe.conf ; done for i in $(find /lib/modules/uname -r/kernel/drivers/bluetooth -name “.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-bluetooth.conf ; done for i in $(find /lib/modules/uname -r/kernel/drivers/pcmcia -name ".ko” -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-pcmcia.conf ; done for i in $(find /lib/modules/uname -r/kernel/drivers/infiniband -name “.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-infiniband.conf ; done for i in $(find /lib/modules/uname -r/kernel/drivers/isdn -name ".ko” -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-isdn.conf ; done for i in $(find /lib/modules/uname -r/kernel/drivers/firewire -name “.ko" -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-firewire.conf ; done for i in $(find /lib/modules/uname -r/kernel/drivers/ieee802154 -name ".ko” -type f) ; do echo blacklist $i >> /etc/modprobe.d/blacklist-ieee802154.conf ; done

yum remove lvm2* # unnecessary hard drive partitioning system yum remove nfs* # nfs (legacy file sharing) yum remove iscsi* # scsi over internet (also removes dracut-network) yum remove fcoe* # fibre channel over ethernet yum remove lldpad* # for fibre channel over ethernet

sed -i ‘s/1-6/1/g’ /etc/syconfig/init # only a single getty available sed -i ‘s/1-6/1/g’ /etc/init/start-ttys.conf # only a single getty available

Unnecessary services: rpcbind nfslock lldpad fcoe rpdidmapd



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Greetings, <br> <br>In most cases, removing unused drivers or modules is OK, although they may be looped in to various other packages. In these cases, you will be notified via yum of their dependencies. <br> <br>If you’re in doubt of a package (such as lvm2), it is likely best to keep the package in-tact. Be careful when removing other kernel modules or specific packages, as one wrong move could cause push your droplet into an unrecoverable state! Take a snapshot before proceeding with any removals, and ensure your /etc/yum.conf file has tsflags=repackage. <br> <br>Hope that helps! If you need anything further, feel free to submit a ticket.

Thanks Russell for the feedback. I always make a snapshot before i do something. It is the safest way to do.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.