From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S7KTz-00040M-Tw for garchives@archives.gentoo.org; Tue, 13 Mar 2012 05:41:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35C6DE0B07; Tue, 13 Mar 2012 05:41:07 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 787A9E0C63 for ; Tue, 13 Mar 2012 05:39:55 +0000 (UTC) Received: from mail-vx0-f181.google.com ([209.85.220.181]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1S7KSi-003GXS-6l for gentoo-user@lists.gentoo.org; Tue, 13 Mar 2012 12:39:56 +0700 Received: by vcge1 with SMTP id e1so264171vcg.40 for ; Mon, 12 Mar 2012 22:39:52 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.52.17.82 with SMTP id m18mr16248094vdd.89.1331617192748; Mon, 12 Mar 2012 22:39:52 -0700 (PDT) Received: by 10.220.58.200 with HTTP; Mon, 12 Mar 2012 22:39:52 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Mar 2012 12:39:52 +0700 Message-ID: Subject: Re: [gentoo-user] bindmount or symlink? From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: ba38da40-7478-49b3-9eec-838acf76ff16 X-Archives-Hash: 823858a7ec5aa6aba9c77b9ef73ea4ec On Tue, Mar 13, 2012 at 12:11, Canek Pel=C3=A1ez Vald=C3=A9s wrote: > On Mon, Mar 12, 2012 at 11:04 PM, Pandu Poluan wrote: >> I am seriously thinking of splitting the storage of directories under /u= sr, >> e.g., /usr/portage and /usr/source actually living somewhere else, on >> different partition and different filesystem. Let's say something mounte= d on >> /mnt/Persistent. >> >> My question: should I use bindmount or symlinks to do that? What's the >> drawbacks/benefits for either? > > I'm sorry, I don't understand. What's the problem of having the > following in /etc/fstab? > > LABEL=3DPortage =C2=A0 /usr/portage =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0ext4 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0noatime,auto =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 2 > LABEL=3DSource =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/usr/source =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ext4 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0noatime,auto =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A00 2 > > (Replace LABEL=3DPortage with /dev/sda7, if you want to.) > > Why do you need to bindmount or link the directories when you can > mount them wherever you want? > Because I am avoiding "single partition per directory". And a slight mistake in my original email, it's not just /usr but also /var (and other root-based directories that will not interfere with boot-up / operations) Let me give an example: Let's say I have /dev/sdc and /dev/sdd, both having single partition each (/dev/sdc1 and /dev/sdd1). /dev/sdc1 will be formatted reiserfs mounted into /mnt/Persistent1 /dev/sdd1 will be formatted ext4 mounted into /mnt/Persistent2 Directories not really necessary for daily operations, such as /usr/src, /usr/portage, /var/db/pkg, and so on and so forth, will each be a subdir under either /mnt/Persistent1 or /mnt/Persistent2 according to each directory's nature. Let's take the example of /usr/src ... I can either make /usr/src a symlink to /mnt/Persistent1/src, or bindmount /mnt/Persistent1/src to /usr/src What will be the benefits/drawbacks for bindmount vs symlink? Rgds, --=20 FdS Pandu E Poluan ~ IT Optimizer ~ =C2=A0=E2=80=A2 LOPSA Member #15248 =C2=A0=E2=80=A2 Blog : http://pepoluan.tumblr.com =C2=A0=E2=80=A2 Linked-In : http://id.linkedin.com/in/pepoluan