From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 07:00:08 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 55C63250 for ; Thu, 30 Oct 2014 07:00:08 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 14A42C0F for ; Thu, 30 Oct 2014 07:00:07 +0000 (UTC) Received: from [89.15.239.107] (helo=unixarea.DDR.dd) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1Xjji9-0001Vy-FY for freebsd-questions@freebsd.org; Thu, 30 Oct 2014 07:59:58 +0100 Received: from unixarea.DDR.dd (localhost [127.0.0.1]) by unixarea.DDR.dd (8.14.9/8.14.3) with ESMTP id s9U6xoLT001805 for ; Thu, 30 Oct 2014 07:59:51 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by unixarea.DDR.dd (8.14.9/8.14.3/Submit) id s9U6xlad001804 for freebsd-questions@freebsd.org; Thu, 30 Oct 2014 07:59:47 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: unixarea.DDR.dd: guru set sender to guru@unixarea.de using -f Date: Thu, 30 Oct 2014 07:59:46 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: /usr/X11R6 sym link Message-ID: <20141030065945.GA1778@unixarea.DDR.dd> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.15.239.107 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 07:00:08 -0000 Hello, I wanted to update one of my laptops with my usual procedure: - boot from a well prepared USB key with 11-CURRENT, packages, src, ... - wipe out with newfs(8) all file systems, but not /usr - mount the (old) /usr as /mnt/usr - rm -rf everything in /mnt/usr, but not /mnt/usr/home - install 'make installworld ...' into /mnt - ... A pity that I overlooked that the old /usr/X11R6 was a sym link to (fully qualified) /usr/local: $ ls -l /mnt/usr total 58 lrwxr-xr-x 1 root wheel 10 7 abr 2011 X11R6 -> /usr/local drwxr-xr-x 2 root wheel 7680 1 ago 2012 bin drwxr-xr-x 2 root wheel 512 12 abr 2011 compat drwxr-xr-x 2 root wheel 512 18 abr 2011 games ... This (rm -rf /mnt/usr/X11R6) damaged the system I was sitting on, i.e. the USB key :-( Ofc, I have had an image of the key and could recreate the key in a few minutes. And of course, I could have seen this and ofc I will keep my eyes wider open next time, but I'm curious: what piece of old package could have created such a symlink in this older (9-CURRENT) system? Any idea? matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign