USB devices on Slackware, kernel 2.6.12.5
How do I set up USB devices? Here is what I got with 'dmesg | grep usb' when I plugged my USB device:
Code:
usbcore: registered new driver usbfs Code:
Bus 004 Device 001: ID 0000:0000 |
Don't use any "grep". If you have usb and usb-storage compiled in your kernel, just plug-in your device, type "dmesg", then search in the last few lines for something like "assigned new device to sda" (or whatever it may look like, it should be something about "sdX". If you drive have more than one partition, you may want to try "cfdisk /dev/sdX" to take a look at partition, otherwise use the "whole" device. Then, just mount this device like anything else : "mount /dev/sdX /mnt/where_you_want_it".
If you don't have/are not sure you have usb and usb-storage into your kernel, you might need to modprobe these modules : "modprobe usb-core" "modprobe usb-storage" it should be fine then. |
I'm trying to find out out where my usb device is located, but dmesg doesn't give that info. Is there another way?
|
Ok, I now got it identified but now I need to know how to get it to mount automatically when the device is plugged... or at least to mount it with normal user.
|
jaakkop : You might want to take a look at automount (if you want to mount it automatically once it is pluged. To mount it with your normal user, just add a line like this one in your fstab :
Code:
/dev/sdXY /mnt/usb auto noauto,user,uid=your_user,gid=users,umask=000 0 0 Quote:
|
It's a usb camera. I managed to download photos using gphoto2 from the command line. I couldn't get digikam or gtkam to run. I have to run gphoto2 get-all-files as root user though. So I'm trying to locate where to change the permissions. According to dmesg:
USB Mass Storage support registered. hub.c: new USB device 00:10.2-1, assigned address 3 usb.c: USB device 3 (vend/prod 0x40a/0x578) is not claimed by any active driver. This was after running modprobe usb-storage. I'm unsure where the device is actually located. |
I have a Sony DSC-P52 and have the following in my /etc/fstab
Code:
/dev/sda1 /mnt/dsc-p52 vfat noauto,users 0 0 Then I have the following menu command (I use WindowMaker): Code:
mount /mnt/dsc-p52 ; sleep 2 ; xterm -geometry 96x60 -e mc /mnt/dsc-p52 ; umount /mnt/dsc-p52 |
Which directories did you have to make and are there any symbolic links required?
|
The mount point has to be created, but otherwise udev does the work of creating the necessary device node. This assumes you have everything prepared in the kernel - for my setup I have SCSI device support and SCSI disk support as modules, along with USB Mass Storage support (along with the rest of the needed USB subsystem, natch).
Here's what I get in /var/log/messages when I connect the camera: Code:
Oct 9 00:18:21 chump kernel: usb 3-1: new full speed USB device using uhci_hcd and address 4 |
All times are GMT -5. The time now is 11:30 PM. |