Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Gloor

macrumors 65816
Original poster
Apr 19, 2007
1,079
827
256gb Sandisk USB drive with exFat. (i tried their recovery but that didn't work at all)

I have tried Disk Drill and that worked flawlessly but I don't want to buy full version just to recover 4 files.

So I'd like to try the script above to see what it can recover :)

Thank you so much for any help, much appreciated.

What kind of filesystem do you have one the USB drive? What kind of drive is it?
 
Version of Python and whether it’s even installed or not is dependent on version of macOS installed. Did you read the “Warning” on the GitHub project page?
 
I've missed that warning, let me check now. I do have this version (see pic)

Version of Python and whether it’s even installed or not is dependent on version of macOS installed. Did you read the “Warning” on the GitHub project page?
 

Attachments

  • Screenshot 2025-02-01 at 19.46.01.png
    Screenshot 2025-02-01 at 19.46.01.png
    79.2 KB · Views: 48
I can't seem to locate the warning you mentioned. (sorry, not familiar with github much, i usually use it to just download things but thats about it)

Also, do you know the solution?

My basic issue is I don't know where to even put the actual .py file. I have also tried the command with drag&drop location of the .py but that doesn't work either.

Do you mind sharing an example of the code ?

Here is one of examples that didn't work

sudo /Users/gloor/Desktop/run.py /dev/disk4s1 /Volumes/Kocourek/Recovery

Version of Python and whether it’s even installed or not is dependent on version of macOS installed. Did you read the “Warning” on the GitHub project page?
 
I can't seem to locate the warning you mentioned. (sorry, not familiar with github much, i usually use it to just download things but thats about it)
It's literally the third paragraph on the GitHub page.
"Warning: This is not meant to be a fool-proof guide. This is oriented towards the technically minded with some familiarity with Python and filesystems."

Can you answer the following?

Which version of macOS are you using? Which version of Python is installed?
 
It's literally the third paragraph on the GitHub page.
"Warning: This is not meant to be a fool-proof guide. This is oriented towards the technically minded with some familiarity with Python and filesystems."

Can you answer the following?

Which version of macOS are you using? Which version of Python is installed?
I've posted screenshot above to show the python version (3.9.6)
 
Try:
Bash:
sudo python3 /Users/gloor/Desktop/run.py /dev/disk4s1 /Volumes/Kocourek/Recovery
File "/Users/gloor/Desktop/run.py", line 7


<!DOCTYPE html>


^


SyntaxError: invalid syntax



I get this after inputing my password. I guess the code is wrong in the file on line 7?
 
take it to chatgpt. paste the code in, paste the website link, tell it what you are trying to do and it will guide you. just ask it dumb questions. chatgpt is amazing for this sort of thing
 
Thank you, didn't think of this. Ill give it a try, cheers

take it to chatgpt. paste the code in, paste the website link, tell it what you are trying to do and it will guide you. just ask it dumb questions. chatgpt is amazing for this sort of thing
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.