From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HkAJ0-0004Gc-BR for garchives@archives.gentoo.org; Sat, 05 May 2007 02:47:30 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l452k6Bd030811; Sat, 5 May 2007 02:46:06 GMT Received: from mailout1.igs.net (mailout1.igs.net [216.58.97.34]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l452feYl025917 for ; Sat, 5 May 2007 02:41:40 GMT Received: from waltdnes.org (i209-195-90-74.cia.com [209.195.90.74]) by mailout1.igs.net (Postfix) with SMTP id 65CC25FF8 for ; Fri, 4 May 2007 17:32:11 -0400 (EDT) Received: by waltdnes.org (sSMTP sendmail emulation); Fri, 4 May 2007 22:41:31 -0400 From: waltdnes@waltdnes.org Date: Fri, 4 May 2007 22:41:31 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Reducing disk usage Message-ID: <20070505024131.GB20036@waltdnes.org> References: <49bf44f10704260759g214dbb00o40c674ca7167cdd2@mail.gmail.com> <463A436E.8060506@gmail.com> <20070504020221.GA18552@waltdnes.org> <200705040915.47707.alan@linuxholdings.co.za> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705040915.47707.alan@linuxholdings.co.za> User-Agent: Mutt/1.5.13 (2006-08-11) X-Archives-Salt: c34ab36d-3381-4c79-8117-1088161ddea3 X-Archives-Hash: 72b134a0a3938ed104e0d60d9e9e0303 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 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