From owner-freebsd-questions@FreeBSD.ORG Thu Dec 24 06:33:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF66B1065676 for ; Thu, 24 Dec 2009 06:33:25 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 45B848FC08 for ; Thu, 24 Dec 2009 06:33:25 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 45BEEEB47E6; Thu, 24 Dec 2009 08:33:24 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 6FB0744FE1; Thu, 24 Dec 2009 08:33:24 +0200 (EET) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MH1hT4u0hPm7; Thu, 24 Dec 2009 08:33:24 +0200 (EET) Received: from kobe.laptop (ppp-94-64-197-154.home.otenet.gr [94.64.197.154]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 1EDE244FDF; Thu, 24 Dec 2009 08:33:24 +0200 (EET) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id nBO6XMMj015840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Dec 2009 08:33:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id nBO6XLQJ015837; Thu, 24 Dec 2009 08:33:21 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Pieter de Goeje References: <20091223230111.GA1188@bsd.remdog.net> <200912240021.47525.pieter@degoeje.nl> <20091223234013.GA1080@bsd.remdog.net> Date: Thu, 24 Dec 2009 08:33:20 +0200 In-Reply-To: <20091223234013.GA1080@bsd.remdog.net> (Rem P. Roberti's message of "Wed, 23 Dec 2009 15:40:13 -0800") Message-ID: <87vdfwhoen.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: What happened to /home? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 06:33:25 -0000 On Wed, 23 Dec 2009 15:40:13 -0800, Rem P Roberti wrote: >On 2009.12.24 00:21:47 +0000, Pieter de Goeje wrote: >>On Thursday 24 December 2009 00:01:11 Rem P Roberti wrote: >>> Today I booted my laptop and discovered that /home was gone. >>> Well...not exactly..but for all intents and purposes. The system >>> isn't seeing it although I can see it when I cd to /. But if I try >>> and cd to /home from there the system tells me "home:Not a >>> directory." What happened, and what can I do about it? >> >> Usually /home is a symlink to /usr/home. Perhaps the symlink is >> busted? What it the output of `ls -ld /home' ? If you can still login >> as a regular user, what does `pwd -P' say just after you are logged >> in? > > I can still login as regular user, and when I run 'pwd -P' the output is > / and then it goes back to the prompt. Output of 'ls -ld /home is: > > lrwxr-xr-x 1 root wheel 8 Dec 18 12:08 /home -> usr/home That's your problem right there. /home does not point to the absolute path of '/usr/home' but to a *relative* path starting at whatever happens to be your current directory when you access '/home'. Try replacing your current /home symlink with a link to /usr/home instead: # cd / # rm -f home # ln -s /usr/home home Then the symlink should start working in a more useful manner.