Open Source Technical Information: How to disable all usb ports in fedora.

Monday, 24 October 2011

How to disable all usb ports in fedora.

,

Today we gona learn how to disable all usb ports in fedora, don worry its too easy.

to do that you have to edit the grub.conf file.
so login as root user using
su - 


then change to grub directory using cd /boot/grub .
now open the grub.conf using your favorite editor.

i used vi grub.conf.

then you will see something like this…..

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,5)
#          kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.6-45.fc14.i686)
root (hd0,5)
kernel /vmlinuz-2.6.35.6-45.fc14.i686 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.35.6-45.fc14.i686.img
title Other
rootnoverify (hd0,0)
chainloader +1


You just have to append a word after “quiet″ to “quiet nousb″. now the line should look like this….



kernel /vmlinuz-2.6.35.6-45.fc14.i686 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet nousb


now save and exit the file, and restart the system.

help: Try the lsusb command to list available usb in your system.

0 comments to “How to disable all usb ports in fedora.”

Post a Comment

Write your tips here...

Deal of the Day

Advertisement here

Advertisement here