Date: Thu, 23 Feb 2012 23:41:53 +0100 From: "deeptech71@gmail.com" <deeptech71@gmail.com> To: freebsd-current@freebsd.org Subject: "rm -rf /" fanclub Message-ID: <CAF6hrySTcrpFcXFjV1sQJPUqL4JRRRGV5hMGO1TFX9uct8oQEQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Well, I did not actually get a full membership to the "rm -rf /" fanclub, but I managed to remove all installed ports, basically requiring a full reinstall. Here's how it happened: Once upon a time, I did a full reinstall (not because of "rm -rf /"-like things). I kept the old installation's full filesystem hierarchy located in /old. I was then going through the old hierarchy to salvage important bits and delete the rest. At one point, I was in /old/usr, and did "rm -rf X11R6/ bin/ lib/ ...". I was a bit hasty, and forgot to remove the ending backslashes from the directory names, which were inserted by csh's autocompletion. And as it turns out, X11R6 is actually a symlink to /usr/local, and not usr/local or .usr/local! Also, /home is a symlink to /usr/home, and not usr/home or ./usr/home, but I managed to stay clear of that deathtrap. In a web search, I found that someone was about to fix the /home symlink in 2004 [1]. Uhm, any time soon? BTW, is the existence of the X11R6 symlink still required for some compatibility? [1] http://lists.freebsd.org/pipermail/freebsd-hackers/2004-January/005391.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6hrySTcrpFcXFjV1sQJPUqL4JRRRGV5hMGO1TFX9uct8oQEQ>