From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RBRZO-0006Cd-Oe for garchives@archives.gentoo.org; Wed, 05 Oct 2011 13:31:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3806F21C0FD; Wed, 5 Oct 2011 13:31:21 +0000 (UTC) Received: from mx2.ll.mit.edu (MX2.LL.MIT.EDU [129.55.12.46]) by pigeon.gentoo.org (Postfix) with ESMTP id 16C2B21C0E6 for ; Wed, 5 Oct 2011 13:30:02 +0000 (UTC) Received: from LLE2K7-HUB01.mitll.ad.local (LLE2K7-HUB01.mitll.ad.local) by mx2.ll.mit.edu (unknown) with ESMTP id p95DU2PS021508 for ; Wed, 5 Oct 2011 09:30:02 -0400 Subject: Re: [gentoo-user] Re: Hard drives not detected in repeatable order. From: "Michael A. Koerber" To: In-Reply-To: <4E8B2D7D.4060107@binarywings.net> References: <1317736959.20875.12.camel@tartarus> <4E8B2D7D.4060107@binarywings.net> Content-Type: multipart/alternative; boundary="=-gvXFX5RLJlbSn9horPQ8" Date: Wed, 5 Oct 2011 08:29:32 -0500 Message-ID: <1317821372.5014.2.camel@tartarus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Mailer: Evolution 2.32.2 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.211,0.0.0000 definitions=2011-10-05_05:2011-10-05,2011-10-05,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=4 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1110050054 X-Archives-Salt: X-Archives-Hash: ca33a40fbdde78de7e05bf80e3a0da6e --=-gvXFX5RLJlbSn9horPQ8 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable > > > I have found that use of LABEL=3DFOO in /etc/fstab doesn't alwa= ys solve > > > the problem of disks being reassigned during boot. > >=20 > > That's because fstab isn't used during boot. What "root=3D" sett= ing is > > passed to your kernel by your bootloader? Is that using /dev/sda= 1 or > > a label? In order to use a label, I _think_ you need some specia= l magic > > in an initrd (at least that used to be the case according to what= I've > > googled). > >=20 > >=20 > > That's my doubt. Last time I've read about, you needed some script to > > "load" the labels. > >=20 > > Claudio Roberto Fran=E7a Pereira (a.k.a. Spidey) >=20 > You cannot use labels with the root=3D parameters. That was provided as > some kind of hack a few years ago but has been removed since. You eithe= r > need to use an initramfs for labels or resort to UUIDs. See > http://git.kernel.org/?p=3Dlinux/kernel/git/torvalds/linux-2.6.git;a=3D= commitdiff;h=3Db5af921ec02333e943efb59aca4f56b78fc0e100 Just tried root=3DPARTUUID=3D.... failed. Checked my genblk.c and the changes don't appear in the 2.6.36 or 2.6.39 kernels on my system. When did (does) the PARTUUID syntax support get released? =20 tnx, Mike --=-gvXFX5RLJlbSn9horPQ8 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit
>     > I have found that use of LABEL=FOO in /etc/fstab doesn't always solve
>     > the problem of disks being reassigned during boot.
> 
>     That's because fstab isn't used during boot.  What "root=" setting is
>     passed to your kernel by your bootloader?  Is that using /dev/sda1 or
>     a label?  In order to use a label, I _think_ you need some special magic
>     in an initrd (at least that used to be the case according to what I've
>     googled).
> 
> 
> That's my doubt. Last time I've read about, you needed some script to
> "load" the labels.
> 
> Claudio Roberto França Pereira (a.k.a. Spidey)

You cannot use labels with the root= parameters. That was provided as
some kind of hack a few years ago but has been removed since. You either
need to use an initramfs for labels or resort to UUIDs. See
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b5af921ec02333e943efb59aca4f56b78fc0e100
Just tried root=PARTUUID=....  failed.  Checked my genblk.c and the changes don't appear in the 2.6.36 or 2.6.39 kernels on my system.  When did (does) the PARTUUID syntax support get released? 

tnx,

Mike --=-gvXFX5RLJlbSn9horPQ8--