On 2015-10-12 00:03, Carlos E. R. wrote:
On 2015-10-11 15:31, Istvan Gabor wrote:
Number Major Minor RaidDevice State 3 8 29 0 active sync /dev/sdb13 2 8 45 1 active sync /dev/sdc13
Also, what exactly are the meanings of "Number" and "Minor"?
Major and minor, you can find in the detailed list of devices, given in the output of "ls -l /dev", and they identify devices. What module driver is assigned to them.
You can find those numbers documented in the kernel sources documentation, /usr/src/linux/Documentation/ (path given from memory, so probably misspelled). The file in there you need could be "Devices.txt". Sorry, I don't have it in this computer, so I can't verify at this instant. Later, if you are interested.
I'm now at another computer with that information. /usr/src/linux/Documentation/devices.txt LINUX ALLOCATED DEVICES (2.6+ version) Maintained by Alan Cox <device@lanana.org> Last revised: 6th April 2009 ... Fourth, remember that Linux now has extensive support for dynamic allocation of device numbering and can use sysfs and udev to handle the naming needs. ... 8 block SCSI disk devices (0-15) 0 = /dev/sda First SCSI disk whole disk 16 = /dev/sdb Second SCSI disk whole disk 32 = /dev/sdc Third SCSI disk whole disk ... 240 = /dev/sdp Sixteenth SCSI disk whole disk Partitions are handled in the same way as for IDE disks (see major number 3) except that the limit on partitions is 15. ... 3 block First MFM, RLL and IDE hard disk/CD-ROM interface 0 = /dev/hda Master: whole disk (or CD-ROM) 64 = /dev/hdb Slave: whole disk (or CD-ROM) For partitions, add to the whole disk device number: 0 = /dev/hd? Whole disk 1 = /dev/hd?1 First partition 2 = /dev/hd?2 Second partition ... 63 = /dev/hd?63 63rd partition For Linux/i386, partitions 1-4 are the primary partitions, and 5 and above are logical partitions. Other versions of Linux use partitioning schemes appropriate to their respective architectures. And the limit on partitions is no longer 15. Major, minor, were "byte" size, ie, up to 255 max. I believe this is no longer true. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)