View previous topic :: View next topic |
Author |
Message |
alcatraz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Feb 2003 Posts: 19
|
Posted: Mon Nov 03, 2003 10:50 am Post subject: Is there a easy way to read what kind of /dev/scsi/host1..? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ronmon Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/13591982763f6f0b3bbbe64.png)
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Mon Nov 03, 2003 12:19 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
alcatraz n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Feb 2003 Posts: 19
|
Posted: Mon Nov 03, 2003 9:38 pm Post subject: |
|
|
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 ![Smile :)](images/smiles/icon_smile.gif) _________________ Once Gentoo, Allways Gentoo. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|