Skip to content

Wednesday, March 10th, 2010

New Linux User

EXPLAIN: Hard Drive Partition Names: HDA1/HDA2, etc.

October 5, 2005 by Jon  
Filed under General

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.

  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Reddit
  • Yahoo! Buzz
  • Slashdot
  • E-mail this story to a friend!

Comments

5 Responses to “EXPLAIN: Hard Drive Partition Names: HDA1/HDA2, etc.”
  1. aizatto says:

    Similiarly sata drives are labelled sd[x] :)

  2. Jon says:

    Sweet – thanks!

  3. Geoff says:

    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?

  4. Jon says:

    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!

Trackbacks

Check out what others are saying about this post...
  1. [...] 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? [...]



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


About Us | Advertise with us | Blog for EveryJoe | Privacy Policy | Terms of Use
Get This Theme | Sitemap


All content is Copyright © 2005-2010 b5media. All rights reserved.