public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: waltdnes@waltdnes.org
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  Re: Reducing disk usage
Date: Fri, 4 May 2007 22:41:31 -0400	[thread overview]
Message-ID: <20070505024131.GB20036@waltdnes.org> (raw)
In-Reply-To: <200705040915.47707.alan@linuxholdings.co.za>

On Fri, May 04, 2007 at 09:15:47AM +0200, Alan McKinnon wrote
> On Friday 04 May 2007, waltdnes@waltdnes.org wrote:
> > I accomplish this by moving /tmp /usr and /var to the /home
> > partition.
> 
> Surely you meant "move the /tmp, /usr and /var to the / partition"?

  Let me rephrase myself...
  - *PHYSICALLY* moving /tmp /usr and /var to the /home partition.
  - bind mount (or symlink) these directories to the / partition

> It won't work moving them to /home unless you put symlinks in and
> that would just be ... odd

  It may be "odd", but it gets the job done.  The files end up
*PHYSICALLY* residing in the /home partition, but *LOGICALLY* on /tmp,
/usr and /var.  Here's how I implement it.  I set up /tmp /usr and /var
in /home/bindmounts/ (note the permissions on /home/bindmounts/tmp).

[m450][root][~] ll /home/bindmounts/
total 20
drwxr-xr-x  5 root root 4096 Apr 29 13:36 .
drwxr-xr-x  7 root root 4096 May  1 00:08 ..
drwxrwxrwt 10 root root 4096 May  4 22:00 tmp
drwxr-xr-x 15 root root 4096 Apr 29 03:53 usr
drwxr-xr-x 14 root root 4096 Apr 28 20:36 var


I create *EMPTY* directories named /tmp /usr and /var on /.  And then I
bind mount the directories.  Here's a snippet from /etc/fstab

/home/bindmounts/var    /var            auto            bind 0 0
/home/bindmounts/usr    /usr            auto            bind 0 0
/home/bindmounts/tmp    /tmp            auto            bind 0 0

  Symlinks would normally work, too.  However, if for some reason, the
/home partition is unavailable at bootup, the system would complain
about symlinks.  With empty directories, you at least get a basic system
booting up with fewer complaints.

  Let me repeat the reason for the "oddness".  The stripped-down /
partition is going to be pretty constant, so I don't have to allow lots
of empty space as a safety margin.  The wildcards, in terms of filespace
are...
  - /var (logs and other stuff)
  - /usr (/usr/bin for all my apps, and /usr (share, portage, libs))
  - /tmp (this is where big temporary files go)

-- 
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
Q. Mr. Ghandi, what do you think of Microsoft security?
A. I think it would be a good idea.
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2007-05-05  2:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 14:59 [gentoo-user] Reducing disk usage Grant
2007-04-26 15:16 ` Uwe Thiem
2007-04-26 15:16 ` Nelson, David J
2007-04-26 15:38 ` Hemmann, Volker Armin
2007-04-27  2:00   ` W.Kenworthy
     [not found]     ` <200704271212.49816.volker.armin.hemmann@tu-clausthal.de>
2007-04-28  1:09       ` William Kenworthy
2007-04-27 21:52   ` Grant
2007-04-26 17:45 ` fire-eyes
2007-04-26 18:36   ` Neil Bothwick
2007-04-26 21:57   ` [gentoo-user] " Alexander Skwar
2007-04-26 22:58     ` Hemmann, Volker Armin
2007-05-03 20:17       ` Csányi András
2007-05-03 20:37         ` Pongracz Istvan
2007-05-04  2:02         ` waltdnes
2007-05-04  7:15           ` Alan McKinnon
2007-05-05  2:41             ` waltdnes [this message]
2007-05-07  9:52               ` Alan McKinnon
     [not found]     ` <20070428095901.GA3742@ark.in-berlin.de>
2007-04-28 10:40       ` Neil Bothwick
2007-04-28 15:41       ` [gentoo-user] " Alexander Skwar
2007-05-04  7:52 ` [gentoo-user] " Florian Philipp
2007-05-08  2:18 ` Troy Curtis Jr
  -- strict thread matches above, loose matches on Subject: below --
2007-04-27  5:08 [gentoo-user] " Adam Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070505024131.GB20036@waltdnes.org \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox