From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38817 invoked by alias); 13 Apr 2017 17:42:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 38759 invoked by uid 89); 13 Apr 2017 17:42:37 -0000 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 Received: from ishtar.tlinx.org (HELO Ishtar.sc.tlinx.org) (173.164.175.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Apr 2017 17:42:36 +0000 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id v3DHgYqp041702 for ; Thu, 13 Apr 2017 10:42:36 -0700 Message-ID: <58EFB88A.5090807@tlinx.org> Date: Thu, 13 Apr 2017 18:43:00 -0000 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin@cygwin.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 X-SW-Source: 2017-04/txt/msg00160.txt.bz2 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