LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2005, 08:22 AM   #1
MD3
Member
 
Registered: Apr 2004
Location: Italy
Distribution: Gentoo
Posts: 81

Rep: Reputation: 15
USB devices: where are you?


(Using Slackware 10.0)

i attached two devices to my two usb UHCI ports:

/proc/scsi/scsi:
Code:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: RICOH    Model: DVD+RW MP5240    Rev: 1.11
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: BTC      Model: BCE1610IM        Rev: 0.19
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: OLYMPUS  Model: C2Z,D520Z,C220Z  Rev: 1058
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: USB 2.0  Model: Mobile Disk N4S  Rev: 1.00
  Type:   Direct-Access                    ANSI SCSI revision: 02
it's right! there are 2 cd-rom and 2 usb-devs emulated as scsi!

/proc/scsi/usb-storage-0/1:
Code:
Host scsi1: usb-storage
Vendor: OLYMPUS
Product: C2Z,D520Z,C220Z
Serial Number: 150203871
Protocol: Transparent SCSI
Transport: Bulk
GUID: 07b401020000000150203871
Attached: Yes
this is right too! my first attached device is an OLYMPUS C220Z camera

/proc/scsi/usb-storage-1/2:
Code:
Host scsi2: usb-storage
Vendor: TTI-WDE
Product: USB 2.0 Mobile Disk
Serial Number: FF04112800920
Protocol: Transparent SCSI
Transport: Bulk
GUID: 126f1325000ff04112800920
Attached: Yes
right again! a TwinMOS Mobile Disk!


now... i can't manage mounting them (as i did with slack 9.1)...
Code:
# mount -t usbfs -o rw /dev/sda1 /mnt/usb1
# mount -t usbfs -o rw /dev/sda2 /mnt/usb2
# cd /mnt/usb1
# ls
001  002  devices  drivers
# cd /mnt/usb2
# ls
001  002  devices  drivers
# cd /proc/bus/usb
# ls
001  002  devices  drivers
 yes: it's the same! 
what's wrong here? am i trying to mount the wrong devices? (/dev/sda Scsi Direct Access should b right) If you can suggest a way to found the minor number given to each usb-storage-? i will be able to compare it with the /dev/sda* ones and find out what's the right device ... or.... what else is my problem?


thanks

Last edited by MD3; 04-25-2005 at 08:24 AM.
 
Old 04-25-2005, 08:35 AM   #2
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
Whats the output of dmesg when you connect the devices?
 
Old 04-25-2005, 08:42 AM   #3
MD3
Member
 
Registered: Apr 2004
Location: Italy
Distribution: Gentoo
Posts: 81

Original Poster
Rep: Reputation: 15
Code:
hub.c: new USB device 00:04.2-1, assigned address 2
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: OLYMPUS   Model: C2Z,D520Z,C220Z   Rev: 1058
  Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 32000 512-byte hdwr sectors (16 MB)
sda: Write Protect is off
 sda: sda1
and
Code:
hub.c: new USB device 00:04.2-2, assigned address 3
scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: USB 2.0   Model: Mobile Disk N4S   Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0
SCSI device sdb: 507904 512-byte hdwr sectors (260 MB)
sdb: Write Protect is off
 sdb: sdb1
ok it's sda1 and sdb1 but..:

Code:
# mount -t usbfs -o rw /dev/sdb1 /mnt/usb2
# cd /mnt/usb2
# ls 
001  002  devices  drivers
the result is still this :'( any suggestion?

thanks and bye
 
Old 04-25-2005, 11:35 AM   #4
MD3
Member
 
Registered: Apr 2004
Location: Italy
Distribution: Gentoo
Posts: 81

Original Poster
Rep: Reputation: 15
additional infos:

Code:
# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 04a9:220b Canon, Inc. CanoScan D646U
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 004: ID 07b4:0102 Olympus Optical Co., Ltd Camedia E-10/C-220 Camera
Bus 001 Device 003: ID 126f:1325
ok: there is my scanner (we are not interested in it at hte moment) and my camera.. where is the usb-pen?
# usbmodules --device /proc/bus/usb/001/004
no output
p.s. lsusb shows 5 devices... i have only 4... 2 + 2

Last edited by MD3; 04-25-2005 at 11:37 AM.
 
Old 04-25-2005, 11:40 AM   #5
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Are you sure the filesystem is usbfs? Try vfat and see what it says
 
Old 04-26-2005, 08:21 AM   #6
MD3
Member
 
Registered: Apr 2004
Location: Italy
Distribution: Gentoo
Posts: 81

Original Poster
Rep: Reputation: 15
yes! u r right i mounted it with -t auto and it works! there was a strange think: the device /dev/sda1 had been deleted as i plugged the camera.. i hade to create it with mknod
 
Old 04-26-2005, 08:55 AM   #7
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
USB devices don't use usbfs, usbfs is a special "filesystem" that reports kernel info about your devices. Things like cameras use proper filesystems, just like your hard disks. Most will use vfat since they're designed for Windows but some iPods use HFS+ which is a Mac filesystem but Windows can use it through iTunes.
 
Old 04-26-2005, 05:59 PM   #8
MD3
Member
 
Registered: Apr 2004
Location: Italy
Distribution: Gentoo
Posts: 81

Original Poster
Rep: Reputation: 15
thanks for the explanation
 
Old 05-10-2005, 02:20 AM   #9
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Rep: Reputation: 15
I managed to mount my cdrw thanks to this post and dmesg. thanks so much!!!! Finally!!
 
Old 05-10-2005, 02:40 AM   #10
barleykorn
Member
 
Registered: Sep 2004
Distribution: lfs
Posts: 32

Rep: Reputation: 16
try something like locate usb* or find usb*...This should tell you the directory path of what you are looking for. Then mount usb* once you find it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB devices died after USB hub install Twistedlizzard Linux - Hardware 5 07-08-2005 07:17 AM
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 12:28 PM
No USB at all (/proc/bus/usb/devices missing) shrodi Linux - Hardware 1 05-26-2005 05:07 AM
USB scanner not in /proc/bus/usb/devices psweetma Linux - Hardware 4 02-25-2004 05:47 PM
slackware 9.1 USB mouse and other usb devices not working jimMC Linux - Hardware 11 01-24-2004 11:58 AM


All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration