LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-11-2010, 01:41 PM   #1
maphacker
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
USB Problems


Hi guys:

I am having some problems with the USB ports. Some people said when you hot plug a device into USB port, under /dev will appear a ttyUSB*. But for my laptop, no matter what device I plug into the USB port(say a flash drive). There are only bunch of usbdev1.1_ep00, usbdev1.2_ep00, usbdev1.3_ep00 and usbmon* files, but not any ttyUSB*? Can anyone explain why?

So,I guess what I want to know is what is the difference between ttyUSB and usbdev1.1_ep00 files?

Thanks,

Yang

Last edited by maphacker; 04-11-2010 at 02:09 PM.
 
Old 04-11-2010, 03:39 PM   #2
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by maphacker View Post
Hi guys:

I am having some problems with the USB ports. Some people said when you hot plug a device into USB port, under /dev will appear a ttyUSB*. But for my laptop, no matter what device I plug into the USB port(say a flash drive). There are only bunch of usbdev1.1_ep00, usbdev1.2_ep00, usbdev1.3_ep00 and usbmon* files, but not any ttyUSB*? Can anyone explain why?

So,I guess what I want to know is what is the difference between ttyUSB and usbdev1.1_ep00 files?

Thanks,

Yang
Well, all of the /dev entries (most of them) are nodes created with numeric codes which the kernel knows how to coordinate with I/O addresses and channels in the physical computer.

Usually, when you hook up a USB device, a log entry will appear in /var/log/messages. So, for example, if I hook up a USB hard drive and then tail the messages file . . .

Code:
Every time I think I know where it's at, they move it.

adam@hydra5:~$ tail /var/log/messages
Apr 11 15:37:06 hydra5 kernel: usb 1-2: Manufacturer: Western Digital
Apr 11 15:37:06 hydra5 kernel: usb 1-2: SerialNumber: 574341505A30313332333338
Apr 11 15:37:06 hydra5 kernel: usb 1-2: configuration #1 chosen from 1 choice
Apr 11 15:37:06 hydra5 kernel: scsi7 : SCSI emulation for USB Mass Storage devices
Apr 11 15:37:11 hydra5 kernel: scsi 7:0:0:0: Direct-Access     WD       3200AAJ External 1.06 PQ: 0 ANSI: 0
Apr 11 15:37:11 hydra5 kernel: sd 7:0:0:0: Attached scsi generic sg2 type 0
Apr 11 15:37:11 hydra5 kernel: sd 7:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
Apr 11 15:37:11 hydra5 kernel: sd 7:0:0:0: [sdb] Write Protect is off
Apr 11 15:37:11 hydra5 kernel:  sdb: sdb1
Apr 11 15:37:11 hydra5 kernel: sd 7:0:0:0: [sdb] Attached SCSI disk
adam@hydra5:~$
So then I can see that it saw the hard drive and it took on the name '/dev/sdb'.

USB devices, once connected, don't need to be accessed by the user as their raw channels and ports; the kernel assigns them a device name like anything else.
 
  


Reply



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
Any problems with USB-port PCMCIA cards and USB Floppy Drives? DreameR-X Linux - Laptop and Netbook 9 05-14-2005 01:37 PM
USB LexarMedia 32MB Data-Key + KDE 3.2=USB/HD Access problems that_guy Slackware 0 02-03-2005 08:27 AM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM
problems installing redhat 9; usb problems (I think) nhelseth Linux - Newbie 2 04-27-2004 04:17 PM
USB Problems on 2.6.1 Obelus Slackware 1 01-10-2004 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:54 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
Open Source Consulting | Domain Registration