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 F02481381F3 for ; Mon, 30 Sep 2013 10:22:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 102DFE0BEC; Mon, 30 Sep 2013 10:22:25 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id CB300E0BB6 for ; Mon, 30 Sep 2013 10:22:23 +0000 (UTC) Received: from digimed.co.uk (shooty.digimed.co.uk [192.168.1.8]) by mail.digimed.co.uk (Postfix) with ESMTPA id 04B7523CD9 for ; Mon, 30 Sep 2013 11:22:16 +0100 (BST) Date: Mon, 30 Sep 2013 11:22:14 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01 Message-ID: <20130930112214.32cb6f63@digimed.co.uk> In-Reply-To: <20130930100127.GA10894@TranscendTheRubicon.fritz.box> References: <20130927222109.GD23408@server> <5246079E.7090406@gmail.com> <20130927223916.GE23408@server> <52460D42.2080109@gmail.com> <52461056.9020604@gmail.com> <5246BE35.3010408@libertytrek.org> <5246E1F5.9050302@gmail.com> <5248B859.4040207@sporkbox.us> <20130930005712.14024dc7@digimed.co.uk> <20130930100127.GA10894@TranscendTheRubicon.fritz.box> Organization: Digital Media Production X-Mailer: Claws Mail 3.9.2-71-gace330 (GTK+ 2.24.21; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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: multipart/signed; micalg=pgp-sha1; boundary="Sig_/kRtSpM3XxkYYdUfl6zU+=HW"; protocol="application/pgp-signature" X-Archives-Salt: ece74e02-8cc4-49c2-9e97-151e94df5939 X-Archives-Hash: 859212e23c3f1d8d8cf1b74f66bcf14a --Sig_/kRtSpM3XxkYYdUfl6zU+=HW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 30 Sep 2013 12:01:27 +0200, Hinnerk van Bruinehsen wrote: > > mount /usr -o remount,ro > > mkdir /newusr > > rsync -a /usr/ /new/usr/ > > Comment out /usr line in /etc/fstab > > mv /usr /oldusr > > mv /newusr /usr > > reboot > > rmdir /oldusr > > > > What you do with the old partition is up to you. In this case the > > discussion was about /usr on LVM, so you just delete it and allocate > > the space elsewhere when needed. > You can even leave out the step of creating a new directory and moving > it later if you bind-mount you rootfs somewhere, e.g. /mnt/gentoo. Good point. > You may want to add some parameters to the call to rsync, though (e.g. > those that preserve permissions, xattrs (especially for SELinux or > XT-PaX) and owner/group (should be -pogX), -a covers most if not all of those. > possibly -x aswell (if you > have other filesystems under /usr (e.g. a discrete FS for the portage > tree). Another good point, one of those things you think of immediately after hitting Send :( --=20 Neil Bothwick Middle-age - because your age starts to show at your middle. --Sig_/kRtSpM3XxkYYdUfl6zU+=HW Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iEYEARECAAYFAlJJUNcACgkQum4al0N1GQNwNQCgnJKRol6ZeSZckh5EhX1u6Lgs L1QAoIqGh+a/dgTar8TWN6LISRgxqPOg =RKNe -----END PGP SIGNATURE----- --Sig_/kRtSpM3XxkYYdUfl6zU+=HW--