X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=U8DWk7erOBdo2u3kui5HHuqcFzxKmHl0DyOQEa9h8tf Wifia+BNEq/sFt0SiFeU0aXz3tkpwKUoYv+iXgIXOQ7rz0h3vQyJ+mO5aoNuuGAO vxvZZu69xvVNXNPuvOSq2bEBlAVdBXqQf4XDDJ4Mq5j0BIkVOPQ8LnXgIfFxQan0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=qgGX7Yv8PxQVdsq0L6SaDe0U92E=; b=xmaDC/z1Ekmjlsee2 wwaZCV+Z2oZJ+WUx+DpcgbAJDxqWMs7HEGZW2LitgIVDyK4UmR72dZO75nXCrrGh nkkoluydeQm8et1DEJ2J48oTi1DPCQJTGRx53HVYWiekBYGgiCyWmyboAf1mDc7M t7ghDMpJ9m2vhKiseWCEChUvSQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=BAYES_05,GIT_PATCH_2,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*r:8.14.7, grief, dear, lucky X-HELO: Ishtar.sc.tlinx.org Message-ID: <58EFB88A.5090807@tlinx.org> Date: Thu, 13 Apr 2017 10:42:34 -0700 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: /bin/ gets deleted on error References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Felipe Vieira wrote: > Dear cygwin mailing list, > > For the second time this week my /bin/ folder gets obliterated on an > error during normal usage. It is equivalent of doing the infamous "rm > -rf /bin" . > ---- That's different. I take it trying to restore previous copies from the windows menu was "greyed out" and nothing was in the recyclebin? While it isn't likely that files deleted by cygwin would be in the Recyclebin, you might find it in the previous versions unless you have system protection turned off for the disk it was on (its on a tab under "System Properties" called "System Protection"). (i.e.) in explorer browse to root & right click on /bin (if it isn't there, create it first, either in explorer or in cmd.exe). If you're lucky you should see "Restore previous versions" as an option -- which can easily allow you to restore entire directories. (my cygwin bin is < 1GB, so it would easily fit in my protection-space setting of 3% (~28G). Even if restoring from a restore point doesn't work due to Winbugs, the "previous versions" feature often will, as it only targets the directories or files that you've selected and not all system files. A way of, perhaps, saving some grief in the future -- create a 2nd dir "/.bin" and in it create hard-links to all of your files in /bin. Only downside is to keep it updated, but if it happens again, should make restoring /bin easier...(and doesn't use extra disk space!) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple