SOS!

Christopher Jones jonesc at hep.phy.cam.ac.uk
Mon Aug 20 17:17:49 UTC 2018



> On 20 Aug 2018, at 4:03 pm, Lee Bast <x-lists at asgarda.com> wrote:
> 
>> On Aug 20, 2018, at 1045 , William Parducci <bill at parducci.net <mailto:bill at parducci.net>> wrote:
>> 
>> I am guessing by the urgency of your request you do not have a backup. If that is the case you are going to need to find a utility that will locate unlinked files to “undelete” them since command line deletes have no concept of Trash.
> 
> 	Worth noting as well since he's running High Sierra that Time Machine does have a concept of local snapshots, even if no backup drive is attached (though it may have to be on first, I don't use TM myself since I prefer to use ZFS and rsync). If it's been less then 24 hours and is APFS formatted I'd suggest immediately entering TM and see what backups might be available if any. Worth a shot.
> 	After that agreed, time to look at undelete options. Also immediately stop using your system, boot off another drive to work on it, because once stuff starts getting overwritten it's definitely gone (though I've never tried recovering from an APFS drive anyway).
> 	And yeah, this comes up over and over forever but you need to run backups of some sort.
> 
>> For future reference NEVER issue sudo rm -rf in a multiline command. It is just asking for stuff like this to happen.
> 	The guide (and a lot of MacPorts in general I guess) is more aimed at devs and power users so it kind of assumes everyone is comfortable with the CLI and knows basic footguns, but looking at that page it might be a reasonable idea to not just tell people to run a copy-pasted multiline sudo rm -rf command. It's a dangerous enough thing and it's a low bar to not say "copy and run this" and change it to "here are a list of MacPorts' file and directory locations, delete them for a full manual removal", then leave it to users.

Whilst I have myself pointed people at that page myself in the past, perhaps a case could be made that having a public web page with instructions that start with “sudo rm -rf “ is perhaps not the best idea. If the user copies the command badly, and doesn’t appreciate how powerful it can be, they could (and it seems have) run into problems.

Perhaps we should not have that command explicitly written there. Better yet perhaps and official ‘uninstaller’ that does the equivalent in a control manner would be better.

Chris

> 
>> 
>> I have not used any of these but here are some places to start:
>> 
>> https://www.cleverfiles.com/undelete-mac.html?gclid=EAIaIQobChMItpOT9-373AIVEdbACh1umQgFEAAYASAAEgJ1y_D_BwE <https://www.cleverfiles.com/undelete-mac.html?gclid=EAIaIQobChMItpOT9-373AIVEdbACh1umQgFEAAYASAAEgJ1y_D_BwE>
>> https://www.ibeesoft.com/data-recovery-software/mac-data-recovery.html <https://www.ibeesoft.com/data-recovery-software/mac-data-recovery.html>
>> 
>> 
>> b
>> 
>>> On Aug 20, 2018, at 7:36 AM, LEYSAN GALIULLINA via macports-users <macports-users at lists.macports.org <mailto:macports-users at lists.macports.org>> wrote:
>>> 
>>> HELLO! i need y'all help so much!
>>> I have macOS High Sierra 10.13.6
>>> X Code  9.4.1
>>>  What i did is "2.4. Uninstall" following commands : https://guide.macports.org/chunked/installing.macports.uninstalling.html <https://guide.macports.org/chunked/installing.macports.uninstalling.html>
>>> I did Commands which starts as:  
>>> $ sudo rm -rf \
>>> /opt/local \
>>> etc.
>>> The problem is- i lost everything i had on my desktop, which i made and collect for years. It is real important files to me, i am DJ and now i  have nothing  to work with. Please help to fix my terrible mistake and get back everything i had (tones of music, pictures, documents,videos..etc) please! I hope it is possible! Please, say we can do it.
>>> Kind regards,
>>> Sunley
>>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180820/36db22b2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1910 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180820/36db22b2/attachment.bin>


More information about the macports-users mailing list