EXPLAIN: Hard Drive Partition Names: HDA1/HDA2, etc.
Unlike Windows, which uses letters to designate drives and drive partitions, GNU/Linux uses terms to name drives and partitions.
Hard drives are named hd(x) where (x) is a letter starting with ‘a’.
The first hard drive on your system will be named hda. The first partition of the first hard drive will be named hda1, the second partition will be named hda2, the third hda3 and so on.
The second hard drive on your system, if present, will be namd hdb. The first partition of the second hard drive will be named hdb1, the second hdb2, and so on.
The same convention follows for the following types of drives:
- Floppy drives: the first will be named fd0, the second fd1, and so on.
- SCSI drives: the first SCSI drive will be named sda. The first partition on that drive will be sda1, the second sda2, and so on. Note that on my Debian systems, my USB stick is also named with this convention.
- CDRoms follow the same convention as hard disks. My CDRom is named hdc.
Note that this naming convention is different from mounting the drive. You cannot access the data on a drive by its device name. Mounting is described in another article coming shortly.
Related Stories
POSTED IN: General
5 opinions for EXPLAIN: Hard Drive Partition Names: HDA1/HDA2, etc.
aizatto
Oct 6, 2005 at 8:10 am
Similiarly sata drives are labelled sd[x] :)
Jon
Oct 6, 2005 at 2:12 pm
Sweet - thanks!
Geoff
Oct 11, 2005 at 12:56 pm
Why do floppy drives begin with “0″ while the others start with “1?”
I’m sure I saw hda0 somewhere (during boot, maybe?).
On that note, where do I look to find all that text that passes along the screen during boot?
Jon
Oct 11, 2005 at 1:33 pm
I’ve never seen a hda0, but that doesn’t mean there isn’t one. I noticed as well that the floppy drives end with 0’s and the hdd’s end with >0. I’ve never looked into it, but you can bet I will now!
I think the command ‘dmesg’ is what you’re looking for to see the boot up info.
You may want to ‘man dmesg’ to see what parameters you can use to get more information out of it. I’ve never really used it, but you’ve given me another thing to look into :)
Thanks!
New Linux User » EXPLAIN: Why is There no HDA0 or SDA0?
Oct 12, 2005 at 7:36 am
[...] Reader Geoff is breaking by b**ls these days by bringing up questions that I have no idea how to answer. In this case, he brought up a good question about drive naming convention. More specifically, why do hard drives start their naming at 1 (as in HDA1)? Why is there no HDA0? [...]
Have an opinion? Leave a comment: