USB mounting for clip drive and others
Just wanted to check, if I do what b0uncer has told vampirelord to do here will that make my usb ports active? For example if I was to plug in another USB device would it detect it like in windows?
Heres the post i'm talking about: Quote:
|
Your usb ports might already be working.
Plug in the usb key and see if something happens with dmesg. It'll tell if it found the usb device and if it's recognised and which devie it is (/dev/sda1 for example). Then you can edit your fstab accordingly and mount it. Remeber to umount it before pulling it out though. Good Luck! |
I typed dmesg, and a whole load of stuff came up, I tried to look through to find anything with relevance to the usb port but I couldn't find anything.
I'm new to linux by the way. |
If you plug in the usb key and it's recognised and then do dmesg it'll be the wery last few lines that are interesting.
Also do lsmod and see if any usb modules are loaded and active. |
And if there are? What then?
|
After your system is up and running, open a terminal and do (as root):
# tail -f /var/log/messages Then plug in your usb drive and watch for new messages in the terminal, you should see the kernel recognize it and assign it a device name. It'll usually be something like sda, sdb, etc. Then, here's what I do: 1. In my home dir I create another directory called mnt $ mkdir ~/mnt 2. $ cd mnt 3. Under the mnt dir create a dir for the usb device: $ mkdir ~/mnt/sda 4. In /etc/fstab add a line for the usb drive: # vim /etc/fstab Add: /dev/sda /home/<user>/mnt/sda vfat defaults 0 0 5. Then, anytime I plug in my usb stick, all I have to do is open a terminal, and do: $ cd mnt $ mount sda $ cd sda 6. And then I can see all of the contents of my usb drive Hope this helps |
Nedd help Slackware mount usb stick trouble.
Sorry about my bad english i have read the Flashmemory and usb camera how to but i get not mount an memorystick. It seams to be all ok but mount failed,
Code:
>$ mount Code:
>$ cat /proc/scsi/usb-storage-0/1 Code:
>$ cat /proc/bus/usb/devices Code:
>$ mount -t vfat /dev/sda1 /mnt/usbstick Any idea what goes wrong? Thanks for help. Joshy |
Did you try the instructions in my post, the one right above yours?
|
Quote:
you are right i forgot the line in the fstab and now it works. Thank you. Joshy |
Glad to be of help. :-)
|
I don't see my error in mounting Memstick.
My wife gave me a memstick for Navidad, So when I try to use it on my linux box this is what I get, I've read the above post and still don't see where I've gone wrong.
Frist I checked to see if my usb was runing correctly, it seems to be working right here's the results from dmesg. Quote:
and got these results. Quote:
sda,sda1 seem to be the only ones that function all others say invalid block device. Quote:
with file system iso9660 in fstab Quote:
Quote:
Quote:
Quote:
|
Quote:
I recommend seting up usb stick devices in your own home directory, it sure is a lot easier. 1. log in to your system as your normal user 2. open a terminal, i.e. xterm 3. You should see a $ sign prompt 4. type: "mkdir mnt" <Enter> without the quotes; this creates a directory called "mnt" 5. type: cd mnt <Enter> 6. open a second terminal 7. in the second terminal log in as root type: su - enter root's password type: tail -f -n20 /var/log/messages (or whereever your system logs messages) 8. Now, plug in your usb stick 9. Watch the messages in the second terminal, you should see something like this: Dec 26 19:01:44 lightstar kernel: hub.c: new USB device 00:02.2-5, assigned address 2 Dec 26 19:01:44 lightstar kernel: scsi3 : SCSI emulation for USB Mass Storage devices Dec 26 19:01:44 lightstar kernel: sdf: Unit Not Ready, sense: Dec 26 19:01:44 lightstar kernel: sdf: sdf1 10. The important line is the last one, you see that the kernel assigned my device the device number sdf1 11. Now, in the FIRST terminal, create a directory under mnt for the usb stick: type: "mkdir sdf1" (Replace sdf1 with whatever your device number is.) 11. Now, in the second terminal press Ctl-C, this will close the tail process and leave you at a root prompt. 12. Now, open whatever editor you feel comfortable with as root and edit the file /etc/fstab 13. As an example, for my sdf1 device I added the following line to fstab: /dev/sdf1 /home/jerry/mnt/sdf1 auto noauto,users 0 0 Now, save the file. 14. That's it! Now, when I plug in my usb device, all I have to do is open a terminal and type: $ cd mnt $ mount sdf1 $ cd sdf1 $ ls And there is all the contents of my usb stick right before my eyes! Please note, I use Slackware, all of this works on my system. Depending on your distribution, a few things might be a little different. Disclaimer: I take no responsibility whatsoever for the use of these instructions. Who knows, your machine just might morph into a ball of cotton candy for using these instructions. Happy New Year! :-) HTH jerry |
Thanks Jerry; I'll give a try. I know all the USB devices work because since I posted I swapped out the drives and did another instalation with the drives hooked up and the distro picked them up automaticly. So with your info I should be able to get them to working on my older install, Thanks.
|
All times are GMT -5. The time now is 01:00 PM. |