Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there a easy way to read what kind of /dev/scsi/host1..?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
alcatraz
n00b
n00b


Joined: 14 Feb 2003
Posts: 19

PostPosted: Mon Nov 03, 2003 10:50 am    Post subject: Is there a easy way to read what kind of /dev/scsi/host1..? Reply with quote

when i attache my Mp3Player i get this in my `dmesg`

scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: EXATEL Model: i-BEAD100 Rev: 0001
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 505856 512-byte hdwr sectors (259 MB)
sda: Write Protect is off
/dev/scsi/host1/bus0/target0/lun0: p1

Nothing strange with that, tho. But lets say my 'dmesg' is filld with other stuff such as error and this infomation has gone 'up' and away from the screen so i even can't use grep to get what i need. Is there any file in /proc/somewhere that can tell me what /dev/scsi/host#/bus# my device is attached to?

Well i can check it out manually. But i'm actually creating a script for mounting/unmounting and so on..
(dont say /proc/bus/usb/devices, because it wont tell me what i need to know.
Best Reguards.

/alcatraz
_________________
Once Gentoo, Allways Gentoo.
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Mon Nov 03, 2003 12:19 pm    Post subject: Reply with quote

Code:

cat /proc/scsi/scsi

will give you a list of all SCSI devices, including pseudo-SCSI stuff like USB.

If that's the only 'SCSI' device you have running /dev/sda1 will be a link to the partition, which is the easiest way to mount it. Since yours is showing up on host1, it's probably sdb1.
Back to top
View user's profile Send private message
alcatraz
n00b
n00b


Joined: 14 Feb 2003
Posts: 19

PostPosted: Mon Nov 03, 2003 9:38 pm    Post subject: Reply with quote

ronmon wrote:
Code:

cat /proc/scsi/scsi

will give you a list of all SCSI devices, including pseudo-SCSI stuff like USB.

If that's the only 'SCSI' device you have running /dev/sda1 will be a link to the partition, which is the easiest way to mount it. Since yours is showing up on host1, it's probably sdb1.


ah. tnx m8 :)
_________________
Once Gentoo, Allways Gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum