1 |
On Tue, Mar 13, 2012 at 12:11, Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
> On Mon, Mar 12, 2012 at 11:04 PM, Pandu Poluan <pandu@××××××.info> wrote: |
3 |
>> I am seriously thinking of splitting the storage of directories under /usr, |
4 |
>> e.g., /usr/portage and /usr/source actually living somewhere else, on |
5 |
>> different partition and different filesystem. Let's say something mounted on |
6 |
>> /mnt/Persistent. |
7 |
>> |
8 |
>> My question: should I use bindmount or symlinks to do that? What's the |
9 |
>> drawbacks/benefits for either? |
10 |
> |
11 |
> I'm sorry, I don't understand. What's the problem of having the |
12 |
> following in /etc/fstab? |
13 |
> |
14 |
> LABEL=Portage /usr/portage ext4 noatime,auto 0 2 |
15 |
> LABEL=Source /usr/source ext4 noatime,auto 0 2 |
16 |
> |
17 |
> (Replace LABEL=Portage with /dev/sda7, if you want to.) |
18 |
> |
19 |
> Why do you need to bindmount or link the directories when you can |
20 |
> mount them wherever you want? |
21 |
> |
22 |
|
23 |
Because I am avoiding "single partition per directory". And a slight |
24 |
mistake in my original email, it's not just /usr but also /var (and |
25 |
other root-based directories that will not interfere with boot-up / |
26 |
operations) |
27 |
|
28 |
Let me give an example: |
29 |
|
30 |
Let's say I have /dev/sdc and /dev/sdd, both having single partition |
31 |
each (/dev/sdc1 and /dev/sdd1). |
32 |
|
33 |
/dev/sdc1 will be formatted reiserfs mounted into /mnt/Persistent1 |
34 |
|
35 |
/dev/sdd1 will be formatted ext4 mounted into /mnt/Persistent2 |
36 |
|
37 |
Directories not really necessary for daily operations, such as |
38 |
/usr/src, /usr/portage, /var/db/pkg, and so on and so forth, will each |
39 |
be a subdir under either /mnt/Persistent1 or /mnt/Persistent2 |
40 |
according to each directory's nature. |
41 |
|
42 |
Let's take the example of /usr/src ... I can either make /usr/src a |
43 |
symlink to /mnt/Persistent1/src, or bindmount /mnt/Persistent1/src to |
44 |
/usr/src |
45 |
|
46 |
What will be the benefits/drawbacks for bindmount vs symlink? |
47 |
|
48 |
Rgds, |
49 |
-- |
50 |
FdS Pandu E Poluan |
51 |
~ IT Optimizer ~ |
52 |
|
53 |
• LOPSA Member #15248 |
54 |
• Blog : http://pepoluan.tumblr.com |
55 |
• Linked-In : http://id.linkedin.com/in/pepoluan |