From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-82840-garchives=archives.gentoo.org@lists.gentoo.org>) id 1KPtyc-00036b-Tb for garchives@archives.gentoo.org; Mon, 04 Aug 2008 06:55:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37AF2E02F0; Mon, 4 Aug 2008 06:55:29 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by pigeon.gentoo.org (Postfix) with ESMTP id 28896E02F0 for <gentoo-user@lists.gentoo.org>; Mon, 4 Aug 2008 06:55:29 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvUKAOVElkhMCrY2/2dsb2JhbACBUokVo0iBeg X-IronPort-AV: E=Sophos;i="4.31,303,1215403200"; d="scan'208";a="25103001" Received: from 76-10-182-54.dsl.teksavvy.com (HELO waltdnes.org) ([76.10.182.54]) by ironport2-out.teksavvy.com with SMTP; 04 Aug 2008 02:55:28 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Mon, 4 Aug 2008 02:55:32 -0400 From: "Walter Dnes" <waltdnes@waltdnes.org> Date: Mon, 4 Aug 2008 02:55:32 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Advice about setting up split home directory Message-ID: <20080804065532.GA15307@waltdnes.org> References: <7bef1f890808030500s3f6ccf52sa9e06be69f6bacd@mail.gmail.com> <489600C1.3010700@usa.net> <20080804005900.gtjw03k1wg800g0g@mail.bensa.ar> <7bef1f890808032210o568c726p6b08087e4dc0b823@mail.gmail.com> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7bef1f890808032210o568c726p6b08087e4dc0b823@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: e449ce97-ae79-4f28-81e3-9a0257bfee8c X-Archives-Hash: fc976e48e1246e1473700e01854d00ae On Mon, Aug 04, 2008 at 03:10:37PM +1000, Alan E. Davis wrote > Norberto and Josh: > > Thank you for the suggestion. It's on the back burner. I have the space to > experiment with it now. I have balked for the time being on basis of, > partly, my need to be able to swap drives in and out, and have it clear in > mind which partitions belong to what. Also my main drive is a 10000 RPM > faster drive, and I'd like to keep the partitions or directories that are > mainly for storage separated. I really do notice a difference in the > performance of the drive. this is somewhat of a conundrum: how to keep the > current projects focused on the faster drive. There's another approach with bind mounts to reduce wasted space. The following example is not a joke (notwithstanding the opinions of some posters here <g>). I used a 500 megabyte / partition, playing it safe because it was my first try, but I could've gotten away with 200 megs. Here's what "fdisk -l" and "df" show... [d530][root][~] fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xd0000000 Device Boot Start End Blocks Id System /dev/sda1 1 60801 488384001 5 Extended /dev/sda5 1 62 497952 83 Linux /dev/sda6 63 549 3911796 82 Linux swap / Solaris /dev/sda7 550 60801 483974158+ 83 Linux [d530][root][~] df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 482186 30376 426913 7% / udev 10240 152 10088 2% /dev /dev/sda7 483959368 100296316 383663052 21% /home shm 1031872 0 1031872 0% /dev/shm I create empty /opt /tmp /usr and /var directories in the 500 meg main partition (sda5). Except for swap, the rest of the drive is allocated to sda7, which is mounted as /home. I create /home/bindmounts and then /home/bindmounts/opt /home/bindmounts/tmp /home/bindmounts/usr and /home/bindmounts/var. Then I bindmount them to their equivalants on the / partition. I have a script to set up the correct permissions. The result is that you can run with a 200 meg main partition, without using LVM. Under /home is /home/misc, where I put /home/misc/movies/ /home/misc/music and /home/misc/photos. This may not be ideal for a production server, but I like it at home, because I don't have to screw around with multiple partitions. -- Walter Dnes <waltdnes@waltdnes.org>