From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-149649-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5D8D41381F3 for <garchives@archives.gentoo.org>; Fri, 16 Aug 2013 14:48:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5EDE4E0F3E; Fri, 16 Aug 2013 14:48:29 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2802EE0F32 for <gentoo-user@lists.gentoo.org>; Fri, 16 Aug 2013 14:48:27 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id z5so1499662lbh.23 for <gentoo-user@lists.gentoo.org>; Fri, 16 Aug 2013 07:48:26 -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=30esG5xGlF3rZ1TJjIypwnWwcMf9CJm7fHqatIsn9wc=; b=jG9V4qMhEn/2/asJoTw7zBo72uzNSEHB5NYx4FIhN3Rm1YhmvS+miXdK0piAD3bGEl eMm0bqxBSk4wUFDV+INIjw+J3prPj5bDTJ4hh8HEjJdqQS8+RC2ROkcnzdjEelauC4hq kfiA1PJxnR+gn//rotI0UUS5PvggzA39tlKEMq0NQrK1kZj02lB4aFEm5w9FHSInScGh wBf/i3yqZQxvtkS6krLmPXGJj38Z8HcTNvn/5X965p71M59G81JdUIJK2MxQFee60mKw k67VbbX66UwXkZxYAdBUeyp8eeC04eghlzUiFcYsilkVaocuG4ip4cQTgEk3AyEuG2Hz Z23g== Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.112.64.36 with SMTP id l4mr2616523lbs.15.1376664506378; Fri, 16 Aug 2013 07:48:26 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Fri, 16 Aug 2013 07:48:26 -0700 (PDT) In-Reply-To: <520E38AC.4030500@libertytrek.org> References: <CAGbLXuV1PpjP5=M8zPD6qiEdMBjQjaZh8y-HyA+ZwYE-PHSrEg@mail.gmail.com> <CAKxh67V_JadMwkY2nZDOeDSQzA6OYq6Fv915U1HKVJUe4wy2-Q@mail.gmail.com> <CAGbLXuWKvg+wjQ807pDm1iPH_nWLeYvKbap3E5Ssocd7uSMT+Q@mail.gmail.com> <520A5446.1050001@mail.ru> <CAGbLXuWdtU+Y+jjqfbMAhzfTdBJOV9yaUzLcCoTAHVEenkFeNg@mail.gmail.com> <520DA782.4050803@sporkbox.us> <CAGbLXuVwFkRD+iQMvUXkWqhn4TyyZ9Zp5zgiXz+Wke=6vv8OAQ@mail.gmail.com> <520E1C9E.70202@libertytrek.org> <CADPrc83DNbnAvk3gHoNW1yDhhNB_e95yd_95wW06-y_+uZLmLA@mail.gmail.com> <520E38AC.4030500@libertytrek.org> Date: Fri, 16 Aug 2013 09:48:26 -0500 Message-ID: <CADPrc83b7h_XqhXmuV_VO4OZcLd+1DxFKYjbcKykDR_dowr7Bg@mail.gmail.com> Subject: Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= <caneko@gmail.com> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 03b4346f-e439-4d64-bc1a-f186514d2830 X-Archives-Hash: 9c5efd07f4c07f18914e3596cfdb2b4d On Fri, Aug 16, 2013 at 9:35 AM, Tanstaafl <tanstaafl@libertytrek.org> wrot= e: > So, in order to fix a system I'd rather not reinstall from scratch... > > Is this possible? Easy? Recommended? If you have physical access to the system, and a large enough /, it's really easy. You boot from a livecd, mount /usr in another directory, copy all the files from it to /usr (be sure to preserve links, permissions, attributes, etc.), change /etc/fstab, and off you go. If you need to resize / then it's a little more difficult, but not so much. You need again to boot with a livecd, and somewhere (a external or internal disk with enough free space) to put the contents of / and /usr while repartitioning an reformatting the drive that contains them. Afterwards you just change /etc/fstab and you are good to go. If it's a remote system then it gets hairy; any changes to how /usr is handled should not be done while the system is running. And really, maybe you could try an initramfs? It will be much more easy than any juggle of filesystems. 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