From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A66A51381F3 for ; Tue, 10 Sep 2013 16:57:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3E43E0B08; Tue, 10 Sep 2013 16:57:21 +0000 (UTC) Received: from smtp.cs.nyu.edu (SMTP.CS.NYU.EDU [128.122.49.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C3002E0AB9 for ; Tue, 10 Sep 2013 16:57:20 +0000 (UTC) Received: from newlap.localdomain (ool-182de1a5.dyn.optonline.net [24.45.225.165]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.14.4) with ESMTP id r8AGvAA6029649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 10 Sep 2013 12:57:14 -0400 (EDT) Received: by newlap.localdomain (Postfix, from userid 1000) id 4912CA007F; Tue, 10 Sep 2013 12:57:10 -0400 (EDT) From: gottlieb@nyu.edu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] why does revdep-rebuild object to mounting /var on /mnt/var ? References: <87ob81hlq7.fsf@nyu.edu> <87ioy9fx7e.fsf@nyu.edu> <522E4F68.4040909@gmail.com> Date: Tue, 10 Sep 2013 12:57:10 -0400 In-Reply-To: <522E4F68.4040909@gmail.com> (Alan McKinnon's message of "Tue, 10 Sep 2013 00:44:56 +0200") Message-ID: <87sixcd389.fsf@nyu.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 2e606b14-5702-47f7-98c3-999c33b82801 X-Archives-Hash: 64e1fb66e4e6c321c0bc91357a233ec3 On Mon, Sep 09 2013, Alan McKinnon wrote: > On 10/09/2013 00:26, gottlieb@nyu.edu wrote: >> On Mon, Sep 09 2013, Canek Pel=C3=A1ez Vald=C3=A9s wrote: >>=20 >>> On Mon, Sep 9, 2013 at 1:51 PM, wrote: >>>> In fstab I have >>>> /dev/vg/var /mnt/var ext4 defaults 0 2 >>>> I also have >>>> lrwxrwxrwx 1 root root 7 Aug 31 16:13 /var -> mnt/var >>>> >>>> This has worked ok but revdep-rebuild is not happy >>> >>> I think it's the symlink the thing that is making revdep-rebuild >>> unhappy. Have you tried to bind mount /mnt/var into /var? >>> >>> mount -o bind /mnt/var /var >>=20 >> Works great. Thanks. To make it permanent I put >> /mnt/var /var ext4 bind 0 0 >> right under >> /dev/vg/var /mnt/var ext4 defaults 0 2 >> in /etc/fstab > > I'm curious as to why you do that, I can't see any benefit at all. > > The "var" filesystem is an LV and is only useful if it is mounted at > /var where packages expect it to be. Why add the extra complexity of > mounting it somewhere else and then bind mounting it to the pnly place > it can be useful? An old habit/belief that mounts go in /mnt. Since both revdep-rebuild and you believe this is a bad habit, I now mount directly on /var /opt. > There's rules of thumb about this that will always work: > > No object in /tmp can be expected to survive successive invocations of > the program that created the object, and never survive a reboot; > No object in /var/tmp can be expected to survive a reboot > > The best place for temp files, ironically, is ~ I set tmpwatch and wipe_tmp so that files survive in /tmp and /var/tmp for a month. I don't like ~ for temp files since on some, admittedly rare, occasions I actually use the gnome gui file manager and don't want a huge ~. I have long ago created ~/tmp (also cleaned after a month by tmpwatch) so the only problem is breaking the habit of placing short-term files in /tmp instead of ~/tmp. I realize that habit is bad for my (system's) health, but still find it hard to break. I shall try again. Perhaps this is very mild form of what intelligent smokers feel :-). allan