X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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 <cygwin@tlinx.org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: /bin/ gets deleted on error
References: <CAMZ6u3sxGACjd12x+_p75fX_dMDYLLj6KXOysq2T_iH6hoHNDw@mail.gmail.com>
In-Reply-To: <CAMZ6u3sxGACjd12x+_p75fX_dMDYLLj6KXOysq2T_iH6hoHNDw@mail.gmail.com>
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

