While trying to understand this other question, I encountered /dev/sda0
being mentioned.
I have some experience in Linux and I'm used to this scheme where sda
, sdb
, … are devices and sda1
, sda2
, … , sdb1
, sdb2
, … are partitions (each inside the respective device). In this scheme sda0
, sdb0
, … do not appear. I don't recall seeing sda0
ever.
Still sda0
appears on U&L SE, on Super User and elsewhere. Where it appears, it almost always seems to be the first partition, i.e. the partition I would expect to appear as sda1
in the scheme I'm used to.
On the other hand in Debian 10 I can see major,minor
numbers as 8,1
for sda1
, 8,2
for sda2
etc. Thus if anyone asked me what sda0
might be, I would say 8,0
which is already assigned to sda
. This reasoning would make sda0
equivalent to sda
, the whole device. I guess these numbers are specific to Linux and they may be different in a non-Linux Unix(-like) OS, so the reasoning may not apply there.
In the Internet I have found few appearances of sda0
used as a whole device. The examples are quite obscure though, they may be due to typos or somebody being wrong.
Anyway, the question is: is/was /dev/sda0
a standard thing? If so, what is/was it? (can/could it be a whole device?). Under what circumstances is/was it a standard thing? (e.g. specific OS, some old kernel, specific driver, inside a virtual machine, some obsolete(?) udev config or so).
I'm hoping for answers that will give me enough insight, so the next time I see /dev/sda0
I will be able to tell to myself: 'Oh, this guy is probably using …'; or maybe: 'Caution! Custom config ahead'.
Side note: I have also found mentions of /dev/hda0
and a scheme that starts enumerating from hda1
. I totally cannot tell if it's closely related (a parallel) to what I observed for /dev/sda*
or just a coincidence.
/dev/sdx
just to avoid people formatting their/dev/sda
in a bad copy-paste. – frostschutz Jun 07 '22 at 09:57sda1
but only a single occurrence ofsda0
- in a paste with lots of typos so probably OCR error or a bad serial connection. If it exists in any flavor of Unix, it should be more exotic... – frostschutz Jun 07 '22 at 10:13/dev/sdao
(lower case o , as in Oscar, letter) – Archemar Jun 07 '22 at 14:16/dev/sdX
or/dev/sdaX
to tell people to change the X – phuclv Jun 08 '22 at 01:03