From owner-freebsd-questions@FreeBSD.ORG Thu Dec 24 07:57:43 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 12DDD1065679 for ; Thu, 24 Dec 2009 07:57:43 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 969948FC0C for ; Thu, 24 Dec 2009 07:57:42 +0000 (UTC) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:64758 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1NNiZN-0004hZ-4V for freebsd-questions@freebsd.org; Thu, 24 Dec 2009 08:57:15 +0100 Received: (qmail 93273 invoked from network); 24 Dec 2009 08:57:11 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 24 Dec 2009 08:57:11 +0100 Received: (qmail 55305 invoked by uid 1001); 24 Dec 2009 08:57:11 +0100 Date: Thu, 24 Dec 2009 08:57:11 +0100 From: Erik Trulsson To: Giorgos Keramidas Message-ID: <20091224075711.GA55270@owl.midgard.homeip.net> References: <20091223230111.GA1188@bsd.remdog.net> <200912240021.47525.pieter@degoeje.nl> <20091223234013.GA1080@bsd.remdog.net> <87vdfwhoen.fsf@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vdfwhoen.fsf@kobe.laptop> User-Agent: Mutt/1.5.20 (2009-06-14) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1NNiZN-0004hZ-4V. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1NNiZN-0004hZ-4V d66a6e955e546bbe53855b6cb6f39a26 Cc: Pieter de Goeje , 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 07:57:43 -0000 On Thu, Dec 24, 2009 at 08:33:20AM +0200, Giorgos Keramidas wrote: > 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'. Wrong. Relative paths in symlinks start at the symlink is in, not the current directory. I.e. that the symlink is relative should not be a problem. (Under AmigaOS relative symlinks worked as you describe, which made them a PITA and fairly useless, but under Unix relative symlinks have a more sane behaviour.) -- Erik Trulsson ertr1013@student.uu.se