Skip to contentSkip to conversation

On the naming of discs

parisc-linux Matthew Wilcox 3 participants 3 messages Dec 4, 2000

lore
Share & tools
lore
#0 lore raw

As noted in the install documentation, Linux and HPUX name their discs differently. HPUX follows the spec and numbers from 7 down to 0, Linux follows the PC aberration and numbers from 0 up to 7. Alan's just pointed out to me that we have the capability to reverse this. However, it's going to change everyone's numbering. Do we want to switch?

Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw
Quoted 4 lines · Matthew Wilcox

As noted in the install documentation, Linux and HPUX name their discs differently. HPUX follows the spec and numbers from 7 down to 0, Linux follows the PC aberration and numbers from 0 up to 7.

The problem is not how disks are enumerated. HPUX does it exactly the same way - SCSI spec defines how the SCSI bus is to be walked.

The real problem is how devices are "named". Adding or removing devices may cause existing devices to get new names when the system is rebooted. And adding/removing devices on one SCSI bus will affect how devices on other SCSI busses are named.

Even though HPUX's naming convention isn't perfect (eg /dev/rdsk/c1t2d3), it works well for SCSI devices - regardless of type and when added.

grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253

#2 lore raw
Quoted 5 lines
Quoted 2 lines

discs differently. HPUX follows the spec and numbers from 7 down to 0, Linux follows the PC aberration and numbers from 0 up to 7.

The problem is not how disks are enumerated. HPUX does it exactly the same way - SCSI spec defines how the SCSI bus is to be walked.

ANSI order is 15->0 order PC order 0->15

Quoted 4 lines

The real problem is how devices are "named". Adding or removing devices may cause existing devices to get new names when the system is rebooted. And adding/removing devices on one SCSI bus will affect how devices on other SCSI busses are named.

This isnt a kernel related issue