| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-16-2007, 08:48 PM
|
#1
|
|
Member
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114
Rep:
|
Need help for usb flash drive using Fedora 2
If I dual boot, don't I need an entry like:
/dev/sda1 /mnt/flash vfat noauto,rw,exec,unmask=0 0 0
where the 'sda1' is different because windows is on hda1? This used to work, now it doesn't. How can I tell if my usb port is working? I plug my flash drive in and it keeps saying 'sda1 is not a valid block device'. What do I need to do?
|
|
|
|
03-17-2007, 05:41 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Well after you plug in the USB device as root check the /var/log/messages file;
tail /var/log/messages
Adjust the /etc/fstab entry as needed. If you do not get any report about the USB drive being connected then make sure the usb drivers are being loaded;
cat /proc/modules | grep _hcd
|
|
|
|
03-18-2007, 12:03 PM
|
#3
|
|
Member
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114
Original Poster
Rep:
|
Hi and thanks for the reply.
I'm still having trouble with this. Checking messages showed no change, and indeed the light on the flash drive doesn't go on like it should. I'm guessing the drivers for some reason aren't installed?(they worked before)The 'cat' commanded just returned a line; no results I guess. What can I do now? I think yum showed I have usbutils and others installed...
ps. the fstab i have: /dev/sda1 /mnt/flash vfat noauto,owner,kudzo 0 0 It is sometimes overwritten(erased) when I reboot though :/
Last edited by matrim; 03-18-2007 at 12:05 PM.
|
|
|
|
03-18-2007, 09:06 PM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Turn off the service kudzu, it causes more problems then it solves.
chkconfig --level 345 kudzu off
Your /etc/fstab entry would be better if changed slightly;
/dev/sda1 /mnt/flash vfat noauto,user,rw 0 0
The drive light should work if the usb port has power and nothing else is wrong. This is true even if the usb modules do not load. Check you BIOS maybe the usb ports are disabled, maybe the usb port(s) or usb interface(s) on the motherboard have gone bad. It might be something related to the usb interface of the usb enclosure.
Last edited by Lenard; 03-18-2007 at 09:11 PM.
|
|
|
|
03-18-2007, 09:29 PM
|
#5
|
|
Member
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114
Original Poster
Rep:
|
Thanks for the reply. The drive light works in windows and even lights up when I run the linux rescue disk. So it has to be related to the drivers or something like that once FC2 loads.
Last edited by matrim; 03-18-2007 at 09:30 PM.
|
|
|
|
03-19-2007, 04:58 AM
|
#6
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Why are you still running FC2, it is old and has no support??? Any good reason to????
As a suggestion try something that is supported like CentOS or SL. both are freely available 100% binary compatible 'clones' of RHEL.
With that said try manually loading the usb modules before attaching the usb device;
modprobe -v <usb_module_name_here>
Use the typed command 'sbin/lspci -v' minus the single quotemarks to assist you with which usb interfaces you have. The kernel module names can be found in the directory /lib/modules/<kernel-version-number-here>/kernel/drivers/usb/host
.
|
|
|
|
03-19-2007, 04:57 PM
|
#7
|
|
Member
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114
Original Poster
Rep:
|
At this point I just want to get the stupid USB flash working so I can save my info and then,
yes I'll upgrade. Thanks for hanging in there with me. I'll try these new suggestions and get back with ya.
Actually how do i know what usb_modules I have?
Last edited by matrim; 03-19-2007 at 05:09 PM.
|
|
|
|
03-19-2007, 06:26 PM
|
#8
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
You should have all three of them, they are in the directory location I already said.
ls -al /lib/modules/`uname -r`/kernel/drivers/usb/host
That is the backtick character (by the "Tab" key) in the command above not the single quotemark (').
|
|
|
|
03-19-2007, 08:42 PM
|
#9
|
|
Member
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114
Original Poster
Rep:
|
I did watch the boot up closer and it does indeed appear that the usb controller doesn't load properly(says it fails), though I know it worked earlier and works fine in Windows.
After issuing the lspci command I found:
00:07.4 USB Controller: Advanced Micro Devices [AMD] AMD-756 [Viper] USB (rev 06) (prog-if 10 [OHCI])
Flags: bus master, medium devsel, latency 16, IRQ 10
Memory at febff000 (32-bit, non-prefetchable)
Under usb folder:
ls
atm class host image input media misc net serial storage
|
|
|
|
03-20-2007, 07:45 AM
|
#10
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Please run (exactly as provided, feel free to cut and paste) the command I provided from the console or xterm session, it will tell you if the ohci-hcd kernel module is present or not. If you get nothing back then something is wrong, then re-install the kernel;
rpm -ivh kernel-<the_rest>.rpm --force
The kernel module is in the last updated kernel for FC2, for example;
Code:
$ rpm -qlip kernel-2.6.10-1.771_FC2.i686.rpm | grep ohci-hcd
/lib/modules/2.6.10-1.771_FC2/kernel/drivers/usb/host/ohci-hcd.ko
If it is present then try as root typing; modprobe ohci-hcd
FC2 updates are here: http://download.fedora.redhat.com/pu...ore/updates/2/
|
|
|
|
03-20-2007, 03:22 PM
|
#11
|
|
Member
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114
Original Poster
Rep:
|
It's fixed! Thank you.
I think after all of that it was just the modprobe I needed(even though previously it didnt work), because after I did that I could mount it.
|
|
|
|
03-20-2007, 07:38 PM
|
#12
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Your welcome, but it not really fixed. It would be a good idea to find out why the kernel module is not being loaded at boot time. Start by checking the /etc/modprobe.d/modprobe.conf.dist and /etc/modprobe.conf for any recent changes.
|
|
|
|
03-20-2007, 08:28 PM
|
#13
|
|
Member
Registered: Dec 2002
Location: utah
Distribution: Redhat; Fedora 2, 6
Posts: 114
Original Poster
Rep:
|
Hi,
Of course after I took out to transfer files and then put it back in for more, it wouldn't work.
Quote:
|
Originally Posted by Lenard
Start by checking the /etc/modprobe.d/modprobe.conf.dist
|
shows:
Code:
# default modutils aliases
# snipped
install usbmouse /sbin/modprobe --first-time --ignore-install usbmouse && { /sbin/modprobe hid; /bin/true; }
remove binfmt_misc { /bin/umount /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove binfmt_misc
remove ov518_decomp /sbin/modprobe -r --first-time --ignore-remove ov518_decomp && { /sbin/modprobe -r ov511; /bin/true; }
remove usbmouse { /sbin/modprobe -r hid; } ; /sbin/modprobe -r --first-time --ignore-remove usbmouse
remove sunrpc { /bin/umount /var/lib/nfs/rpc_pipefs > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --ignore-remove sunrpc
remove nfsd { /bin/umount /proc/fs/nfsd > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove nfsd
alias usb-uhci uhci-hcd
alias usb-ohci ohci-hcd
alias uhci uhci-hcd
Quote:
|
Originally Posted by Lenard
and /etc/modprobe.conf for any recent changes.
|
This shows:
alias eth0 8139too
alias usb-controller1 uhci-usb
Last edited by matrim; 03-20-2007 at 08:35 PM.
|
|
|
|
03-20-2007, 10:10 PM
|
#14
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Hmmm....... your need the ohci-hcd kernel module to load at boot time correct?!?
Then why in /etc/modprobe.conf do you have: alias usb-controller1 uhci-usb
Should this not be more like: alias usb-controller1 usb-ohci
But let's cover both and add/use: alias usb-controller2 usb-ohci
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
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
|
|
|
All times are GMT -5. The time now is 01:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|