From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BE9BD1381F4 for ; Mon, 10 Dec 2012 13:31:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B201421C003; Mon, 10 Dec 2012 13:30:48 +0000 (UTC) Received: from mail-da0-f53.google.com (mail-da0-f53.google.com [209.85.210.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3E58521C003 for ; Mon, 10 Dec 2012 13:29:37 +0000 (UTC) Received: by mail-da0-f53.google.com with SMTP id x6so1132635dac.40 for ; Mon, 10 Dec 2012 05:29:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=KlvJIazTsp5gvtg4XuVsGvAGGSEmyIxVFhKdQeDDieA=; b=jGzPN9EVMb8j2pTZprHoKp1b4wssRV973NearRyOHaSJY7zdzdl1l/gU19b/hhIGMm bSWk6fdT9qWvhCHLy8zjk8mrhJLCY7utloTMcla/e7fASDPscycrhOjHEgNFLFR6vecn Fzoll/SYGSxDUFM57EVeT6gPS1W3qFTNvtIuhLCOQSpTNKLubeYBClrbV3UPX667IqXh 25Ns7NpWrSDtzJHvqn54eFZaGd/bhteK8E/NrtymmImewcBh7XVm6QlUCXxvQyGtHjDv W/glflK3TqOPoIMo/DX2zng423AxGzU07JwikXCiRwzUO0VHW5dLBYdwkKIWtrqW4Cy1 OpvQ== Received: by 10.66.85.39 with SMTP id e7mr27366474paz.63.1355146176984; Mon, 10 Dec 2012 05:29:36 -0800 (PST) Received: from pacific.net.au (ppp5915.dsl.pacific.net.au. [125.255.25.21]) by mx.google.com with ESMTPS id ug6sm11872953pbc.4.2012.12.10.05.29.33 (version=SSLv3 cipher=OTHER); Mon, 10 Dec 2012 05:29:35 -0800 (PST) Date: Tue, 11 Dec 2012 00:29:30 +1100 From: Gregory Shearman To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] hard disk name changes within initramfs Message-ID: <20121210132929.GA11462@pacific.net.au> Mail-Followup-To: gentoo-user@lists.gentoo.org References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: ff2f38fc-6d65-410a-b108-3c813b1ac60e X-Archives-Hash: e3bb583e9b5ec56464586673b7750c63 In linux.gentoo.user, you wrote: > * Helmut Jarausch [121206 09:27]: >> Hi, >> >> on one of several machines I have a problem with initramfs. >> >> The machine has a single SATA drive. When the kernel boots it shows >> that it is called /dev/sda,.... >> Now, within the init script of my initramfs it tries to mount /dev/sda2 >> as root but fails. >> Since the initramfs spawns a shell (busybox) I can see the device files >> for /dev/sda? >> but fdisk /dev/sda fails. >> As it turns out, the harddisk is now named /dev/sdb with /dev/sdb? >> partition names. > [..] > > I can't tell you why it changed but after my device names got messed > around with (after an upgrade) and the next boot mounted /home on /tmp > and an initscript blew away a bunch of home directories before I caught > it I switched to mounting via UUID. Once you find the UUID to use it's > easy and alleviates lots of problems in the future. > > Todd All of the partitions of my HDD (including the root partition) are LVM partitions so I don't have to worry about this problem at all. -- Regards, Gregory.