public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Fast Turtle <fturtle@gmail.com>
To: Gentoo User List <gentoo-user@lists.gentoo.org>
Subject: Re: [gentoo-user] Who/what names hard drives /dev/sda, /dev/sdb, etc
Date: Thu, 6 Jun 2013 22:31:22 -0700	[thread overview]
Message-ID: <CAK2sGBWKtyz33LYy_rfR98NFMohA0ddWAVZbxMqWd4jmAk5VBQ@mail.gmail.com> (raw)
In-Reply-To: <CAPi0psvtcWe8ak-H0ULnXSJxXHAm6k1+ejF-PpDMeYX7qJCskQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1494 bytes --]

The /dev/ (h/s)da is actually from the kernel itself with the (H) being
deprecated as it's from the old ide/pata setup (hda was always ide 0-0
(same setup grub uses) designated as master) while 0-1 was the slave. 1-0
would then be hdb while 0-1 would have been hdc with hdd being 1-1 (the
last two being slaves).

The (S) designation is due to the change in the kernel hardware subsystem,
where they started moving all of the various drive types to a single,
simpler uniform setup based around the scsi code. It's also why when
manually configuring a kernel, if you enable usb storage (flash/sd/mmc)
you're told you need scsi support in the help.

All of these changes have been implemented by the kernel team comprised of
Linus Torvald and all of the maintainers for the express purpose of
simplifying the code base while reusing as much of the existing code as
possible in a far more modular manner - easier to fix/maintain and by
becoming more modular, it's easier to add new features to the kernel as
they're developed, which is why if you look at the configuration of a 3.4
series compared to the 3.8 you see lots of things have and are being moved.


On Thu, Jun 6, 2013 at 9:16 PM, Chris Stankevitz
<chrisstankevitz@gmail.com>wrote:

> Hello,
>
> Who or what decides to name a hard drive /dev/sda vs /dev/sdb?
>
> How does it decide what order to enumerate the drives on my computer?
>
> When in the boot process does is a disk given a name like "/dev/sda"?
>
> Thank you,
>
> Chris
>
>

[-- Attachment #2: Type: text/html, Size: 1915 bytes --]

  reply	other threads:[~2013-06-07  5:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07  4:16 [gentoo-user] Who/what names hard drives /dev/sda, /dev/sdb, etc Chris Stankevitz
2013-06-07  5:31 ` Fast Turtle [this message]
2013-06-07  9:43 ` Philip Webb
2013-06-07 16:32   ` Chris Stankevitz
2013-06-07 16:45     ` staticsafe
  -- strict thread matches above, loose matches on Subject: below --
2013-06-07  5:58 Thomas Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK2sGBWKtyz33LYy_rfR98NFMohA0ddWAVZbxMqWd4jmAk5VBQ@mail.gmail.com \
    --to=fturtle@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox