Gentoo Archives: gentoo-dev

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: locations of binaries and separate /usr
Date: Sun, 08 Jan 2012 11:49:42
Message-Id: 20120108114812.GA15828@waltdnes.org
In Reply to: Re: [gentoo-dev] rfc: locations of binaries and separate /usr by Enrico Weigelt
1 On Sat, Jan 07, 2012 at 08:01:17PM +0100, Enrico Weigelt wrote
2
3 > Great. Perhaps you could create some unusual setups (perhaps in a
4 > full-VM), so we can build an test platform on it.
5 >
6 > IIRC the main problem are scenarios where /usr is not available
7 > at boot, eg. has to be mounted from somewhere else (eg. NFS).
8 > So, our test platform should have such setups.
9
10 I run with an "interesting" setup at home which could be a "torture
11 test" for mounting. fdisk shows...
12
13 Device Boot Start End Blocks Id System
14 /dev/sda1 63 976768064 488384001 5 Extended
15 /dev/sda5 126 996029 497952 83 Linux
16 /dev/sda6 996093 8819684 3911796 82 Linux swap / Solaris
17 /dev/sda7 8819748 976768064 483974158+ 83 Linux
18
19 sda1 is the entire harddrive
20 sda5 is the 250 megabyte / partition using ext2fs (YES!)
21 sda6 is the swap partition
22 sda7 is the rest of the harddrive using reiserfs
23
24 /opt, /var, /usr, and /tmp are are bindmounted from /home like so...
25
26 /dev/sda5 / ext2 noatime,nodiratime,async 0 1
27 /dev/sda7 /home reiserfs noatime,nodiratime,async,notail 0 1
28 /home/bindmounts/opt /opt auto bind 0 0
29 /home/bindmounts/var /var auto bind 0 0
30 /home/bindmounts/usr /usr auto bind 0 0
31 /home/bindmounts/tmp /tmp auto bind 0 0
32
33 This allows me to...
34 * use a really small / partition, without resorting to LVM
35 * not worry about running out of space in other partitions
36 * I started using it years ago when I had not decided which distro to
37 use. I could wipe the contents of /opt, /var, /usr, and /tmp but keep
38 my data, emails, etc, in my user directory and install another distro
39 without blowing away my data.
40
41 --
42 Walter Dnes <waltdnes@××××××××.org>