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 1RAoJL-0000t2-Em for garchives@archives.gentoo.org; Mon, 03 Oct 2011 19:36:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02F3321C1F5; Mon, 3 Oct 2011 19:35:59 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 36D7E21C1C6 for ; Mon, 3 Oct 2011 19:18:26 +0000 (UTC) Received: by wyf19 with SMTP id 19so4557699wyf.40 for ; Mon, 03 Oct 2011 12:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=hEb6zntQ1d5160gy5TU8APdeX9otg390MVIVXpgp/0s=; b=FaStl/sqwfd2ZR5gBp/cXUCB+x+RdKwCgFEcag/8w7F7Gy4nIVZm+uqRIGVi/3h91K 99Ji9Kl3iUsaAzsQOTMLH/iCK1Eo0HNIblrosUi1JlajTiZg4D91KxxmPTObkaHVQtjX /J0rU8MWz2WoWOgPAfw6XRciilP9Wd4E0qKa8= 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 Received: by 10.216.179.7 with SMTP id g7mr7791wem.64.1317667623464; Mon, 03 Oct 2011 11:47:03 -0700 (PDT) Received: by 10.216.132.80 with HTTP; Mon, 3 Oct 2011 11:47:03 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Oct 2011 11:47:03 -0700 Message-ID: Subject: Re: [gentoo-user] Hard drives not detected in repeatable order. From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: ae83ab27b8e6795d477a6d67f5a03fff On Mon, Oct 3, 2011 at 11:40 AM, Grant Edwards wrote: > Just recently I've run in to problems because my hard drives are not > detected in a predictable order, so my fstab that mount /dev/sdb1 and > /dev/sdc1 sometimes result in directory trees in the wrong places > (/dev/sda seems consistent, but I don't know why). > > What's the recommended way to fix this? You can set labels to all the partitions, and set /etc/fstab to use them: my fstab looks like: LABEL=3DGentoo / ext4 noatime 0 1 LABEL=3DSwap none swap sw 0 0 shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 tmpfs /tmp tmpfs defaults,nosuid 0 0 I believe this is the recommended way to use fstab in distros like Fedora and OpenSUSE, because of your use case exactly. You can set labels to ext[234] partitions with e2label, and for NTFS partitions you can use ntfslabel, and to swap partitions with mkswap. I suppose every filesystem in the world has a similar tool to set its label. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico