From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-149653-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 41DDA1381F3
	for <garchives@archives.gentoo.org>; Fri, 16 Aug 2013 15:13:13 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 39471E0F71;
	Fri, 16 Aug 2013 15:13:03 +0000 (UTC)
Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1603FE0F62
	for <gentoo-user@lists.gentoo.org>; Fri, 16 Aug 2013 15:13:01 +0000 (UTC)
Received: by mail-we0-f170.google.com with SMTP id w60so1774403wes.15
        for <gentoo-user@lists.gentoo.org>; Fri, 16 Aug 2013 08:13:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=message-id:date:from:user-agent:mime-version:to:subject:references
         :in-reply-to:content-type:content-transfer-encoding;
        bh=0lltY47eoZ++NPM+t2pfDmnZOXWid0lU/K3jxZF9uZc=;
        b=qnISzdYXksKlKQxUGhYzq9ALOkhq0YYqbKu0MbGyxbaPO46PCtCCmWUxgmXy1PrHvS
         w4kW+G6ZAT3os1gJZ99yaWYxiSv++MWUVJMdVuQiNj64U1KKJzEhE2UoJn+5UV9PcTEj
         UjZyjvDRWM+7Tg/UVsjDOoqMmfTUvLYYpFMJEKlXklHKR+P5CYFYTk3+mVGyU8Xerjvj
         +02w/4Qwquhe7CA2r2HCtBnF4bJVs79IDBhgUGdepTchyHNn7cXzEo3g3fqdbgzMEBK3
         pnJ/IkZzASL+McKdaVwMVnGUp6KYBynuXsp6bdsDuY3oA4qm6BsXhZQ2oYK/+shAicaa
         oBjg==
X-Received: by 10.180.188.202 with SMTP id gc10mr1455874wic.3.1376665980423;
        Fri, 16 Aug 2013 08:13:00 -0700 (PDT)
Received: from [172.20.0.41] (196-210-127-234.dynamic.isadsl.co.za. [196.210.127.234])
        by mx.google.com with ESMTPSA id l7sm8960358wiw.4.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 16 Aug 2013 08:12:59 -0700 (PDT)
Message-ID: <520E40BB.70006@gmail.com>
Date: Fri, 16 Aug 2013 17:09:47 +0200
From: Alan McKinnon <alan.mckinnon@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130809 Thunderbird/17.0.8
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
To: gentoo-user@lists.gentoo.org
Subject: Re: How hard is it to move separate /usr to / partition? - WAS Re:
 [gentoo-user] Optional /usr merge in Gentoo
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> <CADPrc83b7h_XqhXmuV_VO4OZcLd+1DxFKYjbcKykDR_dowr7Bg@mail.gmail.com> <520E3F83.7030005@libertytrek.org>
In-Reply-To: <520E3F83.7030005@libertytrek.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Archives-Salt: 8af5e49f-6982-4a43-8d68-8154ebfee0a6
X-Archives-Hash: e6af6c83e5db6e6c9c32007599aa610f

On 16/08/2013 17:04, Tanstaafl wrote:
> Thanks for the reply Canek
> 
> On 2013-08-16 10:48 AM, Canek Peláez Valdés <caneko@gmail.com> wrote:
>> If you have physical access to the system,
> 
> I do.
> 
>> and a large enough /,
> 
> Well...
> 
> / is 19GB, with 18GB available.
> 
> /usr is 20GB, with 13GB used, with 7.9GB available.
> 
> I guess I'd be ok with going from 18GB available on / to just 5GB
> available...

You should be fine with that. A reasonably sane / is quite static, and
/usr tends not to change all *that* much.

There's some precautions I always take on server:

/var, /usr/local, /opt and /tmp are separate mount points
portage moves to /var, not /usr

With those dealt with, the balance of / shouldn't grow much.


> 
>> it's really easy. You boot from a livecd, mount /usr in another
>> directory,
> 
> Not exactly sure how to do this since /user in on lvm...
> 
>> copy all the files from it to /usr (be sure to preserve
>> links, permissions, attributes, etc.),
> 
> So, once I have it mounted
> 
> cp -rp ... ?
> 
>> change /etc/fstab, and off you go.
> 
> Currently:
> 
>> # NOTE: If your BOOT partition is ReiserFS, add the notail option to
>> opts.
>> /dev/sda1               /boot           ext2           
>> noauto,noatime  1 2
>> /dev/sda2               none            swap           
>> sw              0 0
>> /dev/sda3               /               ext3           
>> noatime         0 1
>> /dev/sda4               /backups        ext3           
>> noatime         0 2
>> /dev/vg2/home           /home           reiserfs       
>> noatime         0 0
>> /dev/vg2/usr            /usr            reiserfs       
>> noatime         0 0
>> /dev/vg2/var            /var            reiserfs       
>> noatime         0 0
>> /dev/cdroms/cdrom0      /mnt/cdrom      iso9660        
>> noauto,ro       0 0
>> /dev/fd0                /mnt/floppy     auto           
>> noauto          0 0
>>
>> # NOTE: The next line is critical for boot!
>> none                    /proc           proc           
>> defaults        0 0
> 
> So, just remove the line referencing /usr?
> 
>> And really, maybe you could try an initramfs? It will be much more
>> easy than any juggle of filesystems.
> 
> I always compile my kernels manually, by choice - so, no desire to use
> genkernel or dracut.
> 
> How would I then create one? I am *not* a programmer, just a reasonably
> competent general sys admin.
> 
> Is there a 'generic' one that I can use? Or is there a separate tool
> that will create one based on my system profile (or whatever)?

NAFC. I'm like you and don't built initramfses. The only ones I have are
ones that RH shipped :-)




> 
> Thanks again
> 


-- 
Alan McKinnon
alan.mckinnon@gmail.com