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 1RAoK4-00018c-EN for garchives@archives.gentoo.org; Mon, 03 Oct 2011 19:37:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DB9121C1F6; Mon, 3 Oct 2011 19:36:05 +0000 (UTC) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 828F321C11A for ; Mon, 3 Oct 2011 19:15:34 +0000 (UTC) Received: by yxk30 with SMTP id 30so5428401yxk.40 for ; Mon, 03 Oct 2011 12:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=ni4tnebgUrr+YP5/voLd0srALZz+q/x3JMUI7USuags=; b=pbt9bSzRREQlEGYWFAZXo3/nPiMVcKw4ESI5s7wYLlWa8xMAaxCYCaf7GTtcB4rVHo suVXJsZNpBDrz07gTks4IU8PQ7xAe7HUzTCVOku9IyMawiKNF3UIxh/A59ATlBLsj4d5 Cqc/WePNsQa5HXTayiNZYY46Vi5O2iltw6IY4= Received: by 10.236.155.1 with SMTP id i1mr2076070yhk.8.1317669333997; Mon, 03 Oct 2011 12:15:33 -0700 (PDT) Received: from [192.168.25.20] (173-8-195-225-Oregon.hfc.comcastbusiness.net. [173.8.195.225]) by mx.google.com with ESMTPS id m3sm38901154ang.0.2011.10.03.12.15.32 (version=SSLv3 cipher=OTHER); Mon, 03 Oct 2011 12:15:32 -0700 (PDT) Message-ID: <4E8A09D3.5090207@gmail.com> Date: Mon, 03 Oct 2011 12:15:31 -0700 From: Bill Longman User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110920 Lightning/1.0b3pre Lanikai/3.1.12 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Hard drives not detected in repeatable order. References: <4E8A067C.8070507@binarywings.net> In-Reply-To: <4E8A067C.8070507@binarywings.net> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: b56d46c6a0ce17aa47ef57582815421a On 10/03/2011 12:01 PM, Florian Philipp wrote: > Am 03.10.2011 20:40, schrieb Grant Edwards: >> 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? >> > > Mount by UUID or label. In /etc/fstab, specify UUID=foo or LABEL=bar > instead of /dev/sdx1. You can current UUIDs and labels with `ls -l > /dev/disk/by-uuid` and `ls -l /dev/disk/by-label`, respectively. Or, if they are ext, use tune2fs -l. One of its output lines will be: Filesystem UUID: 40ea622d-8265-4498-bc89-0c0f9020dffb