From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Advice about setting up split home directory
Date: Mon, 4 Aug 2008 02:55:32 -0400 [thread overview]
Message-ID: <20080804065532.GA15307@waltdnes.org> (raw)
In-Reply-To: <7bef1f890808032210o568c726p6b08087e4dc0b823@mail.gmail.com>
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>
next prev parent reply other threads:[~2008-08-04 6:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 12:00 [gentoo-user] Advice about setting up split home directory Alan E. Davis
2008-08-03 13:08 ` b.n.
2008-08-03 13:17 ` Volker Armin Hemmann
2008-08-03 15:24 ` Alan E. Davis
2008-08-03 19:02 ` Josh Cepek
2008-08-04 3:59 ` Norberto Bensa
2008-08-04 5:10 ` Alan E. Davis
2008-08-04 6:55 ` Walter Dnes [this message]
2008-08-10 14:36 ` Drew Tomlinson
2008-08-04 22:48 ` [gentoo-user] LVM Migration Example (was: Advice about setting up split home directory) Josh Cepek
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=20080804065532.GA15307@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