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 1S6nVQ-00085V-Bv for garchives@archives.gentoo.org; Sun, 11 Mar 2012 18:28:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34E1EE0963; Sun, 11 Mar 2012 18:28:23 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 03D86E0955 for ; Sun, 11 Mar 2012 18:26:47 +0000 (UTC) Received: by dady25 with SMTP id y25so4645844dad.40 for ; Sun, 11 Mar 2012 11:26:47 -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:content-transfer-encoding; bh=x3vLNTOVqLk0jw+YeVSWC1+y6tBKXmnO2CNwKqfA2bU=; b=jFrWqPbAqfjdOPgktaNM6iHebFwO3UUkfbRm01JvsSGvl6tT4LR8AQwkEXRdpIbDIf UNp9tKQl3ycyDipS/RR8vX8jo5uCuB0+0vNRb0FegN37wdizx+VSN2huPX5Zk2ZMtBNm aa3IEwCgpFoks3i7wQWy+jIT5YKCYEi/0Oq7HPnqtX2pIz97/RPVDj2PsTg6TLpsWUIx cmT1V8RG+SUpWtl9CXmFkTT+O+QJ2qSrAohXfDejiALqQqUTbXUO6e0+3xgGot9YBf3X uJX8L1RXu7+TYsITdP/KytA7CHgXAA4BMA3v15QiYfngybQPkPPLuY0a+NYg8BlZjlVp wfGQ== 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.68.195.3 with SMTP id ia3mr15354332pbc.20.1331490407169; Sun, 11 Mar 2012 11:26:47 -0700 (PDT) Received: by 10.68.59.231 with HTTP; Sun, 11 Mar 2012 11:26:47 -0700 (PDT) In-Reply-To: References: <4F5AC0F6.6000804@gmail.com> <4F5B33CA.2020705@coolmail.se> <20120310153540.5194cd7c@digimed.co.uk> <4F5BBE7A.8040802@coolmail.se> <4F5C724C.1010708@coolmail.se> Date: Sun, 11 Mar 2012 12:26:47 -0600 Message-ID: Subject: Re: [gentoo-user] LVM, /usr and really really bad thoughts. 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: 0d9a0736-177d-40f0-a2fc-6b3cc432ee3a X-Archives-Hash: 10c2467b091906ba3e573618d9c93c03 2012/3/11 Jorge Mart=C3=ADnez L=C3=B3pez : > Hi! > > I had some struggle with a separate /usr on top of LVM and the dracut > thing. I noticed that udev was complaining at boot that it could not > find some scripts. > > The usmount dracut module did not work for me because it could not > find /usr. So what I did was to include the fstab-sys smodule in > dracut: > > /etc/dracut.conf > > # Dracut modules to omit > omit_dracutmodules+=3D"usrmount" > > # Dracut modules to add to the default > add_dracutmodules+=3D"fstab-sys" > > Then I created /etc/fstab.sys with just the /usr partition > > /dev/disk/by-uuid/90d82b02-e6c2-4011-940e-783d12b0c4fe =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0/usr =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ext4 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0noatime =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 2 > > Dracut could only find the partition by using the uuid (use blkid to > find it easily). > The next step was to remove /usr from /etc/fstab to prevent /usr from > being mounted twice (the boot process does not like it). Mmmh. Could you try to use LABEL=3D in /etc/fstab (not /etc/fstab), and see if that way it gets mounted, and only once? The udev developers recommend using either UUID or LABEL; and LABEL it's easier (and prettier) to set. > The last obstacle is /etc/mtab. By the time /usr is mounted I believe > / is mounted as read only, so mount cannot update /etc/mtab. The > trivial solutions is to delete /etc/mtab and make it a symlink to > /proc/mounts . In that case it is always up to date. I think the link is to /proc/self/mounts; /proc/mounts it's a link to it, actually. > Of course, YMMV. Be careful when changing things that can prevent your > machine from booting and make sure you have a live CD at hand. Good advice. 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