Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi all my newbie here. I have a computer with fedora 5 freshly installed. unfortunately it has a wireless card that does not work. so I am going throught the process of tring to get the ndiswrapper to make it work. I have a usb hard drive that I have had attached to my windows box. I was able to download the driver to this drive. now I have plugged the device (usb drive)into my linux box to try to get the driver. but as a newbie I have no idea as to whether the device (or the usb port for that matter) has been detected or how I would look for it or mount it. help a newbie today...you'll feel good about yourself
Last edited by extendedping; 06-19-2006 at 10:34 PM.
I don't know how to do this in a GUI or with any tools, but from the commandline it is not that hard.
When external USB storage devices are plugged in they (or rather the USB agent) generate messages showing they use the "usb-storage" module and are listed as SCSI devices. With that information it's easy to set them up.
For convenience I'll assert you do not run any other USB storage devices and the stick or portable disk wasn't plugged in yet. For any commands below remove the outer quotes. They only serve to keep command words together. So, open a terminal and make yourself the root user (su -).
- Plug in the device.
- Now list USB devices attached: "lsusb". The device should show along with mice and other USB devices. If it isn't listed then something is wrong (obviously).
- Continue and look at what's mounted: "mount|grep /dev/sd". This should be empty, unless something automounted the device or if you have other SCSI(-emulation) devices attached.
- Since your USB mass storage device is the first one attached you can look for kernel messages with "grep sd /var/log/messages" and it should read something like "kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0", "kernel: SCSI device sda".
- We're nearly there. Look for valid partitions on the device: "fdisk -l /dev/sda|grep ^/dev/sd". If there's only one it'll be called /dev/sda1. Now you can mount it with "mkdir -p /mnt/removable && mount /dev/sda1 -t auto /mnt/removable" and access your data.
* You can automate all of this using "devlabel". For each name in the first column output of fdisk do "devlabel add -d (name here) -s /dev/(short name) --automount; mkdir /mnt/mountpoint; echo -en "/dev/(short name)\t/mnt/mountpoint\t(fstype)\tauto,defaults\n" >> /etc/fstab".
ok question before I proceed. could my fedora be screwed up? for instance the lsusb command says command not found and I know its a command cause I checked it in my linux in a nutshell book...trying the locate command gives a message bout selinux having a hard link count error which could be a bug in my file system...these are not standard messages I am guessing...should I just download from say linuxiso.org (I got my copy from a book) and reinstall or do I just proceed?
Last edited by extendedping; 06-20-2006 at 09:18 PM.
ok question before I proceed. could my fedora be screwed up?
Could be but since we're talking about simply trying to access a storage device the chance your system will be fscked up more after this is smaller than you experiencing Sexual Harassment in the Workplace (the instrumental track by FZ, I mean). You probably have to re-apply SELinux context stuff (or reboot with SELinux disabled) but I'd say just proceed. BTW, this is a good moment to emphasise the importance of making backups of personal stuff...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.