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 1S7NnN-0001Tu-BU for garchives@archives.gentoo.org; Tue, 13 Mar 2012 09:13:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CA18E0AE0; Tue, 13 Mar 2012 09:13:18 +0000 (UTC) Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com [209.85.213.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 6CC45E0963 for ; Tue, 13 Mar 2012 09:12:02 +0000 (UTC) Received: by yhjj72 with SMTP id j72so359365yhj.40 for ; Tue, 13 Mar 2012 02:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=frxdAo8nqE8XL+03rCPpKenXFqNVLEmstbrDX69wp2c=; b=VYSiHUenAkwqzGjhhYI6g2AlSxwqzadNI9LG57uY6EezGZXu4pdbUM+X37TB7PTDzx Qw51VNymRqEBmGTUf1dwR0oOOAb5IRnV31+e10AnyPiDUp0o6q0Tlmi1oAg/a/cq4U0B 8okWm/LFXL1SH4fqfqgP4NFyOA99j/CfJ839MlZ/nwuMZ8tUrqK1pDw55lw8/TwazAxF 3yI/Ku4zJc11Y+9CUpWFrkhN0Gzy59jEySV+Jq8OCNnCKdGs+iI6NhJVfo7eNKsW4hMt RDNQl6jXA/Oh5BxwticeEq3lT928kNGOdm9CZtyv1HnPQSeahzp2+Ah84F+Rz/QYDwmH G5YQ== 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.68.203.74 with SMTP id ko10mr5536171pbc.125.1331629921443; Tue, 13 Mar 2012 02:12:01 -0700 (PDT) Received: by 10.68.197.41 with HTTP; Tue, 13 Mar 2012 02:12:01 -0700 (PDT) In-Reply-To: References: <20120313085938.5b359cfd@khamul.example.com> Date: Tue, 13 Mar 2012 03:12:01 -0600 Message-ID: Subject: Re: [gentoo-user] bindmount or symlink? From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Cc: Alan McKinnon Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 757829fa-86fc-48a8-bcd5-7b11342ae6b0 X-Archives-Hash: efbe11971554434d09d43be438b09d7d On Tue, Mar 13, 2012 at 3:00 AM, Pandu Poluan wrote: > On Tue, Mar 13, 2012 at 15:15, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >> >> You are; but in an incredible complicated and convulted way. >> >> If I'm understanding you, you want: >> >> fstab: >> /dev/XX =C2=A0 /mnt/p1 =C2=A0 ... >> /dev/YY =C2=A0 /mnt/p2 =C2=A0 ... >> >> and then >> >> /usr/portage -> /mnt/p1 >> /usr/src -> /mnt/p2 >> >> (or using bindmounting, whatever). >> >> This makes no sense at all (at least not to me), when you can simply: >> >> fstab: >> /dev/XX =C2=A0 /usr/portage =C2=A0 ... >> /dev/YY =C2=A0 /usr/src =C2=A0 ... >> >> and get the same split filesystem, but without all the complication >> you are proposing. >> >> Unless there is something I don't understand, in which case I'm not >> following your reasoning. >> > > The point is: It's not just 2 (two) directories, but several of them, > and I just can't see myself creating a partition (or an LV) for each > and everyone of them. > > So, here's my thoughts: > > There are 2 filesystems that are suitable for different purposes: > * reiserfs =3D for space efficiency (w/o notail option) and/or no inode# > limitation > * ext4 =3D for general purpose > > The directories I'm going to split: > > /usr/share =3D=3D> ext4 > /usr/portage =3D=3D> reiserfs > /usr/portage/packages =3D=3D> ext4 > /usr/portage/distfiles =3D=3D> ext4 > /usr/src =3D=3D> reiserfs > /var/cache/rtorrent (don't ask) =3D=3D> reiserfs > /var/spool/postfix =3D=3D> ext4 > /var/lib/postgresql =3D=3D> ext4 > > Now, I create 2 partitions: > > /dev/sdc1 (reiserfs) --> /mnt/Persistent1 > /dev/sdd1 (ext4) --> /mnt/Persistent2 > > Then I create subdirectories: > > /mnt/Persistent1/portage > /mnt/Persistent1/src > /mnt/Persistent1/rtorrent > > /mnt/Persistent2/share > /mnt/Persistent2/packages > /mnt/Persistent2/distfiles > /mnt/Persistent2/postfix > /mnt/Persistent2/postgresql > > Finally, I need to redirect the directories-I-want-to-split to the > above subdirs under /mnt/Persistent[12] > > SO. > > mount -o bind ... or ln -s ? OK, now I understand. I still think is kinda crazy, but to each its own. I would definitely use symlinks. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico