Where are the SCSI devices?
After a lot of tweaking I've finally managed to get my system (SuSE 7.1, 2.4.4 stock kernel) to see my SCSI devices. However, unlike the IDE devices, neither /var/log/boot.msg nor dmesg indicates where in /dev they're assigned (e.g., scd0, sda). An older support topic in the SuSE database suggests looking in /proc/scsi, but there's nothing helpful there. The bootup logs describe the devices themselves correctly; it's only their /dev locations that are missing. Is there a way to tell what /dev names have been assigned to the devices? Paul
Is there a way to tell what /dev names have been assigned to the devices?
Paul
Either at the log-in prompt log in as root, and then before doing anything else, use the shift/page-up and page-down keys to scroll through the boot messages or use dmesg. an axample of what you can see is: SCSI subsystem driver Revision: 1.00 scsi0 : SCSI host adapter emulation for IDE ATAPI devices Vendor: PIONEER Model: DVD-ROM DVD-104 Rev: 1.18 Type: CD-ROM ANSI SCSI revision: 02 Vendor: IDE-CD Model: R/RW 4x4x24 Rev: Z024 Type: CD-ROM ANSI SCSI revision: 02 Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0 sr0: scsi3-mmc drive: 0x/0x cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.12 sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray HTH Terence
Terence McCarthy wrote:
Is there a way to tell what /dev names have been assigned to the devices?
Paul
Either at the log-in prompt log in as root, and then before doing anything else, use the shift/page-up and page-down keys to scroll through the boot messages or use dmesg.
an axample of what you can see is:
SCSI subsystem driver Revision: 1.00 scsi0 : SCSI host adapter emulation for IDE ATAPI devices Vendor: PIONEER Model: DVD-ROM DVD-104 Rev: 1.18 Type: CD-ROM ANSI SCSI revision: 02 Vendor: IDE-CD Model: R/RW 4x4x24 Rev: Z024 Type: CD-ROM ANSI SCSI revision: 02 Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0 sr0: scsi3-mmc drive: 0x/0x cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.12 sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Well, here's what I get in /var/log/boot.msg, which I believe shows what flies by as the system boots up: <4>PCI: Found IRQ 11 for device 00:09.0 <6>sym53c8xx: at PCI bus 0, device 9, function 0 <4>sym53c8xx: setting PCI_COMMAND_PARITY...(fix-up) <6>sym53c8xx: 53c810a detected <6>sym53c810a-0: rev 0x23 on pci bus 0 device 9 function 0 irq 11 <6>sym53c810a-0: ID 7, Fast-10, Parity Checking <6>scsi0 : sym53c8xx-1.7.3a-20010304 <4> Vendor: YAMAHA Model: CRW6416S Rev: 1.0c <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: FUJITSU Model: M2512A Rev: 1304 <4> Type: Optical Device ANSI SCSI revision: 02 <4>VFS: Mounted root (ext2 filesystem) readonly. <4>change_root: old root has d_count=3 <5>Trying to unmount old root ... okay <4>Freeing unused kernel memory: 188k freed <6>Adding Swap: 160612k swap-space (priority -1) Kernel logging (ksyslog) stopped. Kernel log daemon terminating. As you can see, it lists the hardware (Yamaha, Fujitsu) but not the Linux devices to which the hardware devices are assigned. For comparison, here's what I see with the IDE devices: <4>ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx <4>VP_IDE: IDE controller on PCI bus 00 dev 39 <4>VP_IDE: chipset revision 16 <4>VP_IDE: not 100%% native mode: will probe irqs later <4>ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx <6>VP_IDE: VIA vt82c686a (rev 22) IDE UDMA66 controller on pci00:07.1 <4> ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:pio <4> ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA <4>hda: Maxtor 53073H4, ATA DISK drive <4>hdc: ATAPI 52X CDROM, ATAPI CD/DVD-ROM drive <4>hdd: NEC CD-ROM DRIVE:252, ATAPI CD/DVD-ROM drive In this case I can see just what Linux device each hardware device has been assigned to. It may be that on your system there's more information about the SCSI devices than there is on my system (stock kernel 2.4.4, SuSE 7.1) because you're using SCSI emulation rather than actual SCSI. Paul
Device names for scsi devices are as follows: CD-ROMs: /dev/srX Disks: /dev/scdX where X stands for 0, 1, ... 0 (zero) corresponds to the first device of a given type found in the scsi channel. The output of dmsg is only part of the actual messages that appeared at boot. Your best source of info is /proc/scsi/scsi. For example mine looks like this: # cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM-PCCO Model: DGHS18Y !# Rev: 0351 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: SEAGATE Model: ST39173LW Rev: 6246 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 02 Lun: 00 Vendor: SEAGATE Model: ST19171W Rev: 0024 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 01 Lun: 00 Vendor: TEAC Model: CD-R56S4 Rev: 1.0P Type: CD-ROM ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 02 Lun: 00 Vendor: SEAGATE Model: ST15150N Rev: 4611 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi1 Channel: 00 Id: 04 Lun: 00 Vendor: NAKAMICH Model: MJ-5.16S Rev: 1.02 Type: CD-ROM ANSI SCSI revision: 02 As you can see I have two scsi hosts, scsi0 and scsi1. I have three disks attached to scsi0. They will become sda, sdb and sdc. There is a fourth disk in scsi1, this will become sdd. In scsi1 I have two CD-ROMs, they will be sr0 and sr1. PS. scdX and srX are the same. -- Rafael
Rafael Herrera wrote:
Device names for scsi devices are as follows:
CD-ROMs: /dev/srX Disks: /dev/scdX
where X stands for 0, 1, ...
0 (zero) corresponds to the first device of a given type found in the scsi channel.
I don't think that's right, since one of my devices (a magneto-optical disk) shows up on /dev/sda. So the question remains: if I hadn't known that, how could I have discovered it?
The output of dmsg is only part of the actual messages that appeared at boot. Your best source of info is /proc/scsi/scsi. For example mine looks like this:
# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: IBM-PCCO Model: DGHS18Y !# Rev: 0351 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: SEAGATE Model: ST39173LW Rev: 6246 Type: Direct-Access ANSI SCSI revision: 02
etc. I have no problem getting information about the hardware devices and locations. It's the /dev information that's still mysterious. Paul
On Saturday 12 May 2001 13:59, Paul Abrahams wrote:
It may be that on your system there's more information about the SCSI devices than there is on my system (stock kernel 2.4.4, SuSE 7.1) because you're using SCSI emulation rather than actual SCSI.
Yes, I am emulating SCSI, but I think that you should get a similar message if you have SCSI support compiled into your kernel, and IDE support loaded as a module. Which drive do you boot from? What and how many drives do you have. I'm not certain but I don't think that you can have support for both types compiled into the kernel. It may be that you should try mounting all your drives as SCSI, and running IDE drives under emulation . Terence
participants (4)
-
Paul Abrahams
-
Rafael E. Herrera
-
Rafael Herrera
-
Terence McCarthy