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 CA4C11381F3 for ; Wed, 2 Oct 2013 23:30:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C47CFE0A99; Wed, 2 Oct 2013 23:29:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB0A3E09E0 for ; Wed, 2 Oct 2013 23:29:56 +0000 (UTC) Received: from [192.168.1.97] (pool-173-71-200-251.clppva.fios.verizon.net [173.71.200.251]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jcallen) by smtp.gentoo.org (Postfix) with ESMTPSA id A09B333ED13 for ; Wed, 2 Oct 2013 23:29:55 +0000 (UTC) Message-ID: <524CAC2F.2010800@gentoo.org> Date: Wed, 02 Oct 2013 19:28:47 -0400 From: Jonathan Callen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 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: [gentoo-user] Re: separate / and /usr to require initramfs 2013-11-01 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> <20130930112214.32cb6f63@digimed.co.uk> In-Reply-To: <20130930112214.32cb6f63@digimed.co.uk> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 1590fba2-83a4-4e1e-8d83-14c77ae655cb X-Archives-Hash: fbb74477dfe1bf26a13e96636ef8ec02 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 09/30/2013 06:22 AM, Neil Bothwick wrote: > 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 :( > > Specifically, I would use -axAHX (-rlptgoD are implied by -a, but -HAX are not). - From rsync(1): - -a archive mode; equals -rlptgoD (no -H,-A,-X) - -r recurse into directories - -l copy symlinks as symlinks - -p preserve permissions - -t preserve modification times - -g preserve group - -o preserve owner - -D preserve device files and special files - -H preserve hard links - -A preserve ACLs (implies -p) - -X preserve extended attributes - -x don't cross filesystem boundaries - -- Jonathan Callen -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJSTKwvAAoJELHSF2kinlg4w5kP+wXTGhMSgTFReacg44Ryn8bu bSvq3qZURGbGu5s8Q/Ejg42sZ/0fXdfDD57ZhSpVRWMZ/KZIETZAD2oCkktjr6Vj OELOhz5Pm+UswC201nl6K39PYMijdI+4Mho6QQVoMixa1NI5ZBF7pLBRi+RtJzOx ilEBPmMqE9jt1hdiHnvucq6YEOSANsLRz5rhqnae9BJurrgAMCBOtxvATZiP5YwD 6P8OyNy0UeKdYYrvzjmAjY9cmZ78r6rIekF1eDchGklIJfuj/mlwG8r0JlusSc34 q7OK4YHdDeNBbMESpuJjeZAYfUycUk90Ag5g+8vx9UqxxJj6FxeeVt3oaPi7sLgj j4HXS2d5FcH9ItO5SToWIccZHp+C0/3w1S7DOT0pNe1SaOMOwSBDpZTtLhseW1C8 VVr+G4wGrhQmmBXSePa8ICWJ7Xr8NM16km/h8JrHjtvUisV4AtOuQ0mzv0FGmjVG cgcDqtAjBD00YjVQPQ5VSxb8ZGBjFecMBPhZk2Q1Ea2uUTpb8RdeH0ZvVMXg8N0u g+otGVC56PecjLReYCWnHuM18+f5tKdTvUo+u0GG6epoe2icNi5BPjC9oQjLI6nd hdhfrAKzje5T0vAUZNMO6uYcuSL4zmB/T53Dkl1aIem5kV2I9SVt0ku3WsSCywD+ bNu/HzR0SlB4FyFvEEJl =ef8P -----END PGP SIGNATURE-----