DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46CHOiIt2518082 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=lIu4w7nF X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FBFC3831C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1720805083; bh=gyaCo1fuyaujuKEAhy1L8yZYFFdcqwRJ1qCU35h4QWA=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=lIu4w7nFz6r3MaU0K5wfhzemBZPoWeOFve+5g2eXguAYcBh2ZjkYGGjLKj7RKIX3Q mmoOA1O1w40uh4WcX8UGXYXzxVTz6ue9s5OpbRJ8FKl0NZ0pVn5Q5QWQShYWiDNW4i cvHzTm3n6DA/ktH4K1rIqTSPJopue6E2tiSgz8+M= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ACC8538319C3 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ACC8538319C3 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720805018; cv=none; b=o3PZ/b3AxTVYjXbG2N0p4n8YXPPNk7Xc8RPB7hrJ9zlWJWGuQcP9LB+/0P3+9KXCv33dczFkw8B5PlM2ms+ZFybv1gevmkCbQiV8iZeIGfIUctZE5txuFHoAFNdAu8Wp3Y9lvb7TxTcj+F3nW/d9IP2URD0GhCLRPrtMIJWurtA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720805018; c=relaxed/simple; bh=qbjSWcql0uUYQ8ODhZcJc6Nviv0jTewqnXaoYX9YLMg=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=Gw2HldlpFoxHBbhpGr8pS8YRlh0SqNzJLQqbM6pqt0qlebgDMX76Kw3tXo2bpU+6hzv03BTHvZA0nJ5uc1HupQZWJr/PpoztQ4wM8bRjjIrY8SuH/NOBOGfhFc1H2mv0lqRg1a8MoiSPfVMk5KbVJRnFXy8cVIV+Jz2juU3fzG0= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: <20f87410-ef55-4106-9850-20aee54e0259@SystematicSW.ab.ca> Date: Fri, 12 Jul 2024 11:23:28 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: How to use '$RECYCLE.BIN' to recover files? Content-Language: en-CA To: cygwin AT cygwin DOT com References: <665b9323-b71b-4cf2-badf-bb82d7b5230b AT TomLegrady DOT com> Autocrypt: addr=Brian DOT Inglis AT Shaw DOT ca; keydata= xjMEXopx9BYJKwYBBAHaRw8BAQdAPq8FIaW+Bz7xnfyJ1gHQyf2EZo5sAwSPy/bRAcLeWl/N I0JyaWFuIEluZ2xpcyA8QnJpYW4uSW5nbGlzQFNoYXcuY2E+wpYEExYIAD4WIQTG63sbl+cr 2nyOuZiKvQKcH1E27wUCXopx9AIbAwUJCWYBgAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAK CRCKvQKcH1E276DmAP91Bt8kfJhKHYb9b2sao2fxwJFsl1GlRi516WKI0OkphQEA+ULITsPs blfzSq+GgI7q4LPfRfTLy4Oo3gorlnhnfgnOOAReinH0EgorBgEEAZdVAQUBAQdAepgIsLwm GQicfoIBaB9xHp63MQJqVCPbgPzESTg7EEwDAQgHwn0EGBYIACYWIQTG63sbl+cr2nyOuZiK vQKcH1E27wUCXopx9AIbDAUJCWYBgAAKCRCKvQKcH1E27+zoAP4u2ivMQBAqaMeLOilqRWgy nV2ATImz1p2v1H5P4kBiDwD3caPK1cxU5lijzuSDCjgtIpgF/avHbjA32fxJdIRwAA== Organization: Systematic Software In-Reply-To: <665b9323-b71b-4cf2-badf-bb82d7b5230b@TomLegrady.com> X-Rspamd-Queue-Id: 435C440 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Stat-Signature: xxawafq3j6y8a1khptghipikybfjj86g X-Rspamd-Server: rspamout08 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1+PCyQsy/PhjmyQz3Kx6/8pg4PyyGKs7eo= X-HE-Tag: 1720805009-430204 X-HE-Meta: U2FsdGVkX19cYpBheT3IBVXSffjeL7nFTSbINWLjR+oSP5jF3njrpok+8mOvOUmGFuSPbE+SSBlONjDtiUvMMoSQV3inlt02j+58kDfyWuQxAOSlYiKNIYPboQm1PXzG2UnELu9u26+e68Oa9f+nB8Aflnfw79kiaLpTXbOaeWcEcFwpq6Ri9MOO8DmDlalVj4vObA9KQSrWo+nmXuMMKgBxEl6PhsGcETPD56c/nU0ahDY+9a3oJMzcQL2/witFdLEAqvIwoVURgDztUVJy1a0WwthPMnGEVHEQj+r7LDplpGRqBySH2BJgoN1kcsMMskaqhKSkgnmF7HGYCH3lLlCiOlzV0qcm8Wn4frYjDN8i/F5tEMI7D7uuCjd27tzae5MJCQpzx3o= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 46CHOiIt2518082 On 2024-07-12 10:33, Tom Legrady via Cygwin wrote: > Using cygwin on Windows 11, I ran a command that was over-enthusiastic in > deleting files. Now files I would like to have are in the $RECYCLE.BIN, with > names like '$I0BEVIM.pdf'. > > How can I restore these files' original name and path? See: https://en.wikipedia.org/wiki/Trash_(computing)#Microsoft_Windows https://superuser.com/a/1736690 for low level details for Vista onwards: original file or directory hard linked in /proc/cygdrive/D/\$Recycle.Bin/S-1-5-21-*-*-*-UID/\$RXXXXXX.type and metadata saved in /proc/cygdrive/D/\$Recycle.Bin/S-1-5-21-*-*-*-UID/\$IXXXXXX.type where UID is often 1000 or 1001 with personal desktop local accounts, and you only have access to your own, unless elevated as admin, e.g. $ ls -glort /proc/cygdrive/d/\$Recycle.Bin/S-1-5-21-*-*-*-1001/ total 3 -rwx------+ 1 129 Apr 2 2020 desktop.ini drwxr-xr-x 1 0 Dec 12 2021 '$RVW0RM1' -rw-r--r--+ 1 0 Oct 22 2023 '$RQWOLZK.ini-save' -rwx------+ 1 254 Oct 22 2023 '$IQWOLZK.ini-save' -rwx------+ 1 82 Oct 22 2023 '$IVW0RM1' $ xxd -c8 -g8 /proc/cygdrive/d/\$Recycle.Bin/S-1-5-21-*-*-*-1001/\$IVW0RM1 00000000: 0200000000000000 ........ # header (le) 00000008: 0000000000000000 ........ # file size (le) 00000010: e04bc8060b05da01 .K...... # deleted time (le 100ns Windows) 00000018: 1b00000044003a00 ....D.:. # path length(le 4) path (4+ UCS-2) 00000020: 5c00760061007200 \.v.a.r. 00000028: 5c00630061006300 \.c.a.c. 00000030: 680065005c007300 h.e.\.s. 00000038: 6500740075007000 e.t.u.p. 00000040: 5c00650074006300 \.e.t.c. 00000048: 5c0070006b006900 \.p.k.i. 00000050: 0000 .. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple