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 11-13-2006, 11:09 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
memory sticks


I placed a memory stick into a server that has three SCSI drives in it. everytime I use mount it displays the mount points for sda1, sda2, sda3 which are the SCSI drives. How can I identify what devices my memory stick is being associated with? For example when I place my memory stick on another machine that has IDE drives in it, it assigns it as /dev/sda and then it mounts in on /media/usbdisk. I am confused!
 
Old 11-13-2006, 11:19 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Well, does the server have 3 SCSI drives, or 1 drive with three partitions. One way or another, it will probably have the device module as /dev/sdb1, since udev names them in the order it finds them.

The naming goes as follows: sdb1
"sd" = serial or scsi disk (can't remember which)
"b" = the second peice of hardware discovered (as in, after 'a')
"1" = the first (and probably only) partition on sdb
 
Old 11-14-2006, 11:16 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
You are the man. Many thanks!
 
Old 11-14-2006, 03:14 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
In the future I would do something Like tail the message log to determine the device assigned to something you plug int..
Issue the tail command then plug in your usb device.. you will witness the system detect the device and assign a device id to it.

Code:
itg-debian:~# tail -F /var/log/messages
Nov 14 17:10:44 localhost kernel: DROPPED IN=eth0 OUT= MAC=00:50:04:a9:a0:82:00:30:48:23:c9:75:08:00 SRC=192.168.0.23 DST=192.168.0.188 LEN=44 TOS=0x00 PREC=0x00 TTL=32 ID=43128 PROTO=UDP SPT=1150 DPT=38293 LEN=24
Nov 14 17:10:44 localhost kernel: DROPPED IN=eth0 OUT= MAC=00:50:04:a9:a0:82:00:30:48:23:c9:75:08:00 SRC=192.168.0.23 DST=192.168.0.188 LEN=44 TOS=0x00 PREC=0x00 TTL=32 ID=43129 PROTO=UDP SPT=1150 DPT=38293 LEN=24
Nov 14 17:10:44 localhost kernel: DROPPED IN=eth0 OUT= MAC=00:50:04:a9:a0:82:00:30:48:23:c9:75:08:00 SRC=192.168.0.23 DST=192.168.0.188 LEN=44 TOS=0x00 PREC=0x00 TTL=32 ID=43130 PROTO=UDP SPT=1150 DPT=38293 LEN=24
Nov 14 17:10:44 localhost kernel: DROPPED IN=eth0 OUT= MAC=00:50:04:a9:a0:82:00:30:48:23:c9:75:08:00 SRC=192.168.0.23 DST=192.168.0.188 LEN=44 TOS=0x00 PREC=0x00 TTL=32 ID=43131 PROTO=UDP SPT=1150 DPT=38293 LEN=24
Nov 14 17:10:44 localhost kernel: DROPPED IN=eth0 OUT= MAC=00:50:04:a9:a0:82:00:30:48:23:c9:75:08:00 SRC=192.168.0.23 DST=192.168.0.188 LEN=44 TOS=0x00 PREC=0x00 TTL=32 ID=43132 PROTO=UDP SPT=1150 DPT=38293 LEN=24
Nov 14 17:11:13 localhost kernel: usb 2-2: new full speed USB device using address 3
Nov 14 17:11:13 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Nov 14 17:11:13 localhost kernel:   Vendor: OTi       Model: Flash Disk        Rev: 1.89
Nov 14 17:11:13 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 14 17:11:13 localhost kernel: SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
Nov 14 17:11:13 localhost kernel: sda: assuming Write Enabled
Nov 14 17:11:14 localhost kernel:  /dev/scsi/host1/bus0/target0/lun0: p1
Nov 14 17:11:14 localhost kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Nov 14 17:11:14 localhost kernel: Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0,  type 0
Nov 14 17:11:14 localhost scsi.agent[9240]:      sd_mod: loaded sucessfully (for disk)
Nov 14 17:11:15 localhost usb.agent[9255]:      usb-storage: already loaded

Last edited by farslayer; 11-14-2006 at 03:15 PM.
 
  


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
Stopping executables on memory sticks julianpb Linux - Security 4 07-25-2006 10:13 AM
Inerasable memory sticks - ROM satimis Linux - General 1 05-27-2005 08:55 PM
Conflicting results with usb memory sticks Taliesin Linux - Hardware 4 03-31-2005 12:43 AM
USB memory sticks island_dude Linux - Hardware 1 01-20-2004 11:16 AM
Sony memory sticks? bxb32001 Linux - Hardware 15 08-14-2002 07:16 PM

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

All times are GMT -5. The time now is 02:53 PM.

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