 |
 |
 |
 |
| Hardware & Laptops Help with your hardware, including laptop issues |

17th February 2012, 06:24 AM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 29

|
|
How to enable my usb port in fedora 15 ?
Hello Everyone,
Past few days I have facing a problem that I want to discuss with you. I am working with fedora 15 in which I disable the usb device using command.
# echo 'install usb-storage : ' >> /etc/modprobe.conf
# ls /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
# mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root
#reboot
by using this command I have disable my usb drive.But after few days I want to enable my usb drive by using command.
#mv /root/usb-storage.ko /lib/modules/$(uname -r)/kernel/drivers/usb/storage/
#modprobe usb-storage
after this i got a error
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
Solution for WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. by rename the modprobe.conf file
which I resolve it by using command
# mv /etc/modprobe.conf /etc/modprobe.conf.OLD
Then execute the modeprobe command again
# modprobe usb-storage
but the output is
FATAL: Error inserting usb_storage (/lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko): Invalid module format
how I can solve it I have googled it but I did'nt get the answer. Please help me to out of this
Thanks and Regards
Antrikssh
|

17th February 2012, 08:43 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2,769

|
|
|
Re: How to enable my usb port in fedora 15 ?
If you are trying to modprobe the old module "after a few days" then an automatic kernel update could have happened and the module could be the wrong version for the current kernel. You can look at the version of the module with "modinfo /root/usb-storage.ko" and compare to the current version of the running kernel.
Another possible reason is that you may need to issue a "depmod -a" command after moving the module back before you try the modprobe command.
For the /etc/modprobe.conf deprecated problem just move modprobe.conf into the /etc/modprobe.d directory.
A good way to keep a module from automatically loading is to blacklist it. With this method you don't have to move the module, just the blacklist conf file to change it.
echo "blacklist usb-storage" > /etc/modprobe.d/blacklist-usb-storage.conf
In some cases you will also have to recreate the initramfs file in /boot using the dracut command also.
Last edited by JEO; 17th February 2012 at 08:57 AM.
|

18th February 2012, 06:53 AM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 29

|
|
|
Re: How to enable my usb port in fedora 15 ?
Hi JEO,
Thanks, you are right because your first point i.e "automatic updation of the kernal..." is very much true because when I used your instruction "modinfo /root/usb-storage.ko" it shows kernal version 2.6.41.4-1.fc15.i686.PAE. However my current updated version is 2.6.42.3-2.fc15.i686.PAE. After that I will not used your next instruction you mention. Tell me what I will do next to solve the problem in this situation. Beacuse I am new with the fedora environment so please tell me the soution step by step.
Thanks & Regards,
Antrikssh
|

18th February 2012, 09:13 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2,769

|
|
|
Re: How to enable my usb port in fedora 15 ?
Try leaving the module where it is:
step 1)
su -
echo "blacklist usb-storage" > /etc/modprobe.d/blacklist-usb-storage.conf
step 2 )
reboot
lsmod |grep usb
Is usb-storage still loading? If it is not then skip the next step
step 3)
run dracut command to recreate initramfs in /boot
Anyway once you have the module not being automatically loaded you can always manually load it even though it is blacklisted:
su -
modprobe usb-storage
Last edited by JEO; 18th February 2012 at 09:16 AM.
|

24th February 2012, 09:46 AM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 29

|
|
|
Re: How to enable my usb port in fedora 15 ?
Hi JEO,
Sorry for late reply I have execute the command according to your instruction the output of each command is this :-
[user]su -
[root]echo "blacklist usb-storage" > /etc/modprobe.d/blacklist-usb-storage.conf
After this command blacklist-usb-storage.conf file create in the instructed location, Then I execute this command.
[root]reboot
[root]# lsmod |grep usb
[root#]
[root]# ls usb-storage
ls: cannot access usb-storage: No such file or directory
As you say in your instruction that "is still loading?" but output of this command shows that no such file and directory. So I skip the net step. And I am also unable to understand the meaning of this instruction
run dracut command to recreate initramfs in /boot
I think because of lack of knowlege of linux in me I cant understand what you said to me? So please tell me the next step so I can easily understand and solve the problem.
After skiping the 3 step I execute
su -
modprobe usb-storage
but the output is same as I got previously.
FATAL: Error inserting usb_storage (/lib/modules/2.6.42.3-2.fc15.i686.PAE/kernel/drivers/usb/storage/usb-storage.ko): Invalid module format
Please help me to out of this.
Thanks and Regards,
Antrikssh.
|

24th February 2012, 10:09 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2,769

|
|
|
Re: How to enable my usb port in fedora 15 ?
I am pretty sure the problem you are seeing is because you overwrote your current kernel's module with a previous kernel's module.
You can probably fix the problem by 1) installing a newer kernel (perhaps from updates-testing), or 2) using yum reinstall to restore all the files in your current kernel.
for 1)
su -
yum --enablerepo=updates-testing update kernel*
for 2)
It won't allow you to reinstall the running kernel so first you have to reboot and select an older kernel from the grub boot menu.
su -
yum reinstall kernel-2.6.42.3-2.fc15.i686.PAE
Last edited by JEO; 24th February 2012 at 10:12 AM.
|

24th February 2012, 11:40 AM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 29

|
|
|
Re: How to enable my usb port in fedora 15 ?
Hi JEO,
I agree with you I also thought that my current kernel's module overwrote a previous kernel module. I have one question, If I reinstall my current kernel after this my system configuration will also effect? I don't want to do this because this will create a big headic for me because current configuration is very important for my work and I dont take any risk. I hope you understand.
I also want to tell you that I was never used grub command ever, So I dont know how to use it. I have search in google for grub command . I have to install grub package in my system which I will do, but how to boot the older kernel by using grub I dont know.
Now the command you mention
yum --enablerepo=updates-testing update kernel*
will update my kernel and related files or update the configuration also like wlan and other services. Because If it is happen then I will reinstall ndiswrapper package or may be some other package which are effected by update. So which option is suitable for my requirment GRUB, REINSTALL, UPDATE.
Thanks for your support..................
Thanks and Regards,
Antrikssh.
Last edited by Antrikssh; 24th February 2012 at 11:43 AM.
|

24th February 2012, 01:03 PM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 2,769

|
|
|
Re: How to enable my usb port in fedora 15 ?
I'm not sure what you mean in your first question about affecting your system configuration?
As far as the grub boot menu goes, you don't need to use the grub command what you need to do is shortly after booting, press a key and you will see a grub menu come up. You can use the up and down arrows to select various kernels just select an older one.
The command I gave will only temporarily enable updates-testing for just that one time and only update the packages that start with kernel (it really will just add a new kernel to the 3 kernels it saves by default and it will delete the oldest kernel if you already have 3).
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 08:43 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|