From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-148072-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 299BA1381F3 for <garchives@archives.gentoo.org>; Fri, 7 Jun 2013 05:31:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 577BBE09E2; Fri, 7 Jun 2013 05:31:24 +0000 (UTC) Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 25F59E09CB for <gentoo-user@lists.gentoo.org>; Fri, 7 Jun 2013 05:31:22 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id 17so9606615iea.31 for <gentoo-user@lists.gentoo.org>; Thu, 06 Jun 2013 22:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=QGrRRBmAQnS7MYh6AzKCfi2ZpB5wiD9BUfEBB6HCgsg=; b=L4Om4o0xFTRGp0Cq1c29Hs7ZOaA7ObqvIV2DvaPPIBBJH/BCRODT4swAMOpbouvtg0 2EVgET683iqAwMrDt2Mn+W0nv5LgcfipMz7lsaGfNIGaLvElzvjTwXKQWusv1zvMVONE rLLCgQJEAIN2RE+QpZaEYbBAwLo5tkjCN3cPS/o20APZVdKLSJKUJfb5ZJ/pgikae8nv Rqi5P9r0mXEw77FAJjei53xtJC4Y4CbDq+46u8zOh0vrRhPqeuPnVk+C55gS0V+U46ge gncwYbsUefovyyCmTZM8aLQspGRknBLkxOGgsvflY3RuW1MqV4r9poDKYmJho1UTkD4G sieg== Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.43.1.134 with SMTP id nq6mr16499290icb.55.1370583082355; Thu, 06 Jun 2013 22:31:22 -0700 (PDT) Received: by 10.42.42.66 with HTTP; Thu, 6 Jun 2013 22:31:22 -0700 (PDT) In-Reply-To: <CAPi0psvtcWe8ak-H0ULnXSJxXHAm6k1+ejF-PpDMeYX7qJCskQ@mail.gmail.com> References: <CAPi0psvtcWe8ak-H0ULnXSJxXHAm6k1+ejF-PpDMeYX7qJCskQ@mail.gmail.com> Date: Thu, 6 Jun 2013 22:31:22 -0700 Message-ID: <CAK2sGBWKtyz33LYy_rfR98NFMohA0ddWAVZbxMqWd4jmAk5VBQ@mail.gmail.com> Subject: Re: [gentoo-user] Who/what names hard drives /dev/sda, /dev/sdb, etc From: Fast Turtle <fturtle@gmail.com> To: Gentoo User List <gentoo-user@lists.gentoo.org> Content-Type: multipart/alternative; boundary=bcaec5161985c250b704de89bdae X-Archives-Salt: bbe10400-4d06-4a60-8ceb-b86d5fe19d19 X-Archives-Hash: 12d3d6c849fc701de096cfd17763e06b --bcaec5161985c250b704de89bdae Content-Type: text/plain; charset=UTF-8 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 > > --bcaec5161985c250b704de89bdae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>The /dev/ (h/s)da is actually from the kernel it= self 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). <br> <br></div>The (S) designation is due to the change in the kernel hardware s= ubsystem, where they started moving all of the various drive types to a sin= gle, simpler uniform setup based around the scsi code. It's also why wh= en manually configuring a kernel, if you enable usb storage (flash/sd/mmc) = you're told you need scsi support in the help.<br> <br></div>All of these changes have been implemented by the kernel team com= prised 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 becom= ing 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 s= eries compared to the 3.8 you see lots of things have and are being moved.<= br> </div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Thu,= Jun 6, 2013 at 9:16 PM, Chris Stankevitz <span dir=3D"ltr"><<a href=3D"= mailto:chrisstankevitz@gmail.com" target=3D"_blank">chrisstankevitz@gmail.c= om</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">Hello,<br> <br> Who or what decides to name a hard drive /dev/sda vs /dev/sdb?<br> <br> How does it decide what order to enumerate the drives on my computer?<br> <br> When in the boot process does is a disk given a name like "/dev/sda&qu= ot;?<br> <br> Thank you,<br> <br> Chris<br> <br> </blockquote></div><br></div> --bcaec5161985c250b704de89bdae--