Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Partitioning strategy...?
Date: Sat, 26 Nov 2011 18:23:46
Message-Id: 201111261822.52744.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Partitioning strategy...? by Walter Dnes
1 On Friday 25 Nov 2011 20:08:01 Walter Dnes wrote:
2 > On Fri, Nov 25, 2011 at 11:12:42PM +0700, Pandu Poluan wrote
3 >
4 > > Everytime I read some guide on LVM, my eyes becomes blurry, the room
5 > > starts spinning, and I can hear wolves howling ... :D
6 > >
7 > > Seriously, LVM looks mighty nice, but it also looks (and is!) mighty
8 > > complex.
9 > >
10 > > So, I want to start from something simple.
11 > >
12 > > Aaaanyways, after reviewing my production boxes, I decided to
13 > > implement the following strategy:
14 > >
15 > > / == 800 MiB
16 > > /boot == 20 MiB
17 > > /usr == 1800 MiB
18 > > /usr/portage == 2000 MiB
19 > > /var == 4000 MiB
20 > > /var/lib/postgresql == 1000 MiB
21 > >
22 > > Comments, suggestions, are welcome :)
23 >
24 > I have my own weird approach that's even weirder than my mdev setup<G>.
25 > I start with...
26 > * 250 megabytes for / as ext2fs (No that is not a typo)
27 > * 4 gigs for swap
28 > * the rest of the drive is /home as one huge reiserfs partition
29 >
30 > And I do *NOT* use LVM. "fdisk -l" shows...
31 >
32 > Device Boot Start End Blocks Id System
33 > /dev/sda1 2048 976773167 488385560 5 Extended
34 > /dev/sda5 4096 516095 256000 83 Linux
35 > /dev/sda6 518144 8906751 4194304 83 Linux
36 > /dev/sda7 8908800 976773167 483932184 83 Linux
37 >
38 > "df" shows
39 >
40 > Filesystem 1K-blocks Used Available Use% Mounted on
41 > rootfs 247919 29315 205804 13% /
42 > /dev/root 247919 29315 205804 13% /
43 > devtmpfs 10240 0 10240 0% /dev
44 > rc-svcdir 1024 44 980 5% /lib/rc/init.d
45 > mdev 10240 0 10240 0% /dev
46 > shm 1551308 0 1551308 0% /dev/shm
47 > /dev/sda7 483917384 251951296 231966088 53% /home
48 >
49 > The secret is that I bindmount /opt, /var, /usr, and /tmp onto the
50 > large reiserfs partition.
51 >
52 ###########################################################################
53 > ### /dev/sda5 / ext2 noatime,nodiratime,async
54 > 0 1 /dev/sda7 /home reiserfs
55 > noatime,nodiratime,async,notail 0 1 /home/bindmounts/opt /opt auto
56 > bind 0 0 /home/bindmounts/var /var
57 > auto bind 0 0 /home/bindmounts/usr /usr
58 > auto bind 0 0 /home/bindmounts/tmp
59 > /tmp auto bind 0 0 /dev/sda6
60 > none swap sw 0 0 /dev/cdrom
61 > /mnt/cdrom iso9660 noauto,users,ro 0 0 /dev/cdrom1
62 > /mnt/cdrom1 auto noauto,user,ro 0 0 /dev/sdb1
63 > /mnt/extb auto noauto,user,noatime,async 0 0 /dev/sdc1
64 > /mnt/extc auto noauto,user,noatime,async 0 0
65 >
66 > # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
67 > # POSIX shared memory (shm_open, shm_unlink).
68 > # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
69 > # use almost no memory if not populated with files)
70 > shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
71 >
72 ###########################################################################
73 > ###
74
75 I recall your interesting mounting approach, but never really understood the
76 benefit of it. Would you please explain why you use bindmount?
77
78 --
79 Regards,
80 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Partitioning strategy...? Pandu Poluan <pandu@××××××.info>