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 1SCuih-0003oz-Cb for garchives@archives.gentoo.org; Wed, 28 Mar 2012 15:23:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 100D9E0C4E; Wed, 28 Mar 2012 15:23:17 +0000 (UTC) Received: from smtp.cs.nyu.edu (SMTP.CS.NYU.EDU [128.122.49.97]) by pigeon.gentoo.org (Postfix) with ESMTP id 5CE7FE0E86 for ; Wed, 28 Mar 2012 15:20:58 +0000 (UTC) Received: from ajglap.localdomain (ool-182de1a5.dyn.optonline.net [24.45.225.165]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.14.4) with ESMTP id q2SFKvhx026956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 28 Mar 2012 11:20:57 -0400 (EDT) Received: by ajglap.localdomain (Postfix, from userid 1502) id 0254C701DF; Wed, 28 Mar 2012 11:20:25 -0400 (EDT) From: Allan Gottlieb To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] InitRAMFS - boot expert sought References: <1332844604.4130.0@numa-i> <4F71BE44.3080206@kutulu.org> <4F71E865.30800@hadt.biz> <4F71F182.5010709@gmail.com> <4F7224B8.1050806@gmail.com> <4F723842.4000501@gmail.com> <20120328001421.7c65a401@khamul.example.com> Date: Wed, 28 Mar 2012 11:20:25 -0400 In-Reply-To: <20120328001421.7c65a401@khamul.example.com> (Alan McKinnon's message of "Wed, 28 Mar 2012 00:14:21 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) 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 X-Archives-Salt: b3f3b242-0ad1-44c6-9920-2f3d513b90b3 X-Archives-Hash: a96ddb3dbc2a2889e251df08da2868a3 On Tue, Mar 27 2012, Alan McKinnon wrote: > All you need is a decent amount of free disk space as you will shuffle > things around just like in that 15 pieces game. This sounds encouraging. My disk is less than half full so space is not an issue. > Assuming / is the first (or second) partition on a disk: Question. For me, / is actually /dev/sda5 (sda4 is the extended partition, the three in front are one dell's special, and two for windows, the latter only used when contacting dell for diagnostics). But I think this difference is not material. > Measure how much data is on the file system. > Measure how much data is on the /usr file system. Right > Move partitions after / on the disk out of the way creating enough free > space to contain current / and /usr. Question. /dev/sda7 is LVM and that is used for /usr, /local, et al. How do I move an LVM partition? I could make plain partitions and just copy /usr, /opt, et al., each to a separate partition. Is that the way? > Enlarge / partition, enlarge the file system on it, copy contents > of /usr there. / is ext3, which I believe can be extended live. Or do you recommend using a gentoo install CD (or equivalent)? > Arrange the rest of your disk the way you want it (either with or > without LVM, both are easy enough to do). > Move the rest of your data back to it's final destination. > Delete any last remnants of the old /usr partition. This part seems straight forward and not scary since I still would have the newly created and copied /usr, /opt, et al. partitions in case something goes wrong. So the result would be / (including /usr) on one partition (not LVM) /local, /opt et al., each as separate LVs on my recreated LVM partition I believe this is one of the configurations others have adopted, which I consider a plus. The other favored configuration is to keep the current partition scheme and use an initramfs via genkernel, dracut, or Neil's "in kernel config" soln. I would suspect there are second order improvements such as moving /usr/portage and /usr/src to LVM with symlinks left behind in /usr, but I am now just concerned to see if I have the basic plan correct. Have I? thanks, allan