How do I extract the package prior to installing on Mac?

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
Tavvy
Posts: 3
Joined: 25 Mar 2019, 22:57

How do I extract the package prior to installing on Mac?

#1 Post by Tavvy »

Excuse if this question is a duplicate, I cannot at this point search through thousands of topics. Trying to install TestDisk stable version on Mac OS 10.11. TestDisk doc doesn’t include specific command line for extracting files on Mac, so used Linux command, which returns: tar: Error opening archive: Failed to open 'testdisk-7.0.mac_intel.tar.bz2' Tried Unarchiver but file is greyed out. Archive Utility extracts testdisk-7.0.mac_intel.tar.bz2.cpgz, but then extracts testdisk-7.0.mac_intel.tar.bz2 from that. Continuing continues that loop. The only experience I have with Terminal is a few instances of cut & pasted commands. Hours searching for how to extract a tarball on a Mac got me nowhere. Finally I found GUI Tar, which unpacked it, but the folder testdisk-7.0.mac_intel is empty. Any ideas would be appreciated.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: How do I extract the package prior to installing on Mac?

#2 Post by cgrenier »

I don't know what you have done... It seems you have created a cpgz file...
It may be a good idea to download again the archive from https://www.cgsecurity.org

Tavvy
Posts: 3
Joined: 25 Mar 2019, 22:57

Re: How do I extract the package prior to installing on Mac?

#3 Post by Tavvy »

Thanks for the reply. I downloaded a fresh WIP version, but get the same Terminal message: tar: Error opening archive: Failed to open 'testdisk-7.1-WIP.mac_intel.tar.bz2'
Unpacking with GUI Tar opensa an empty folder called testdisk-7.1-WIP.mac_intel

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: How do I extract the package prior to installing on Mac?

#4 Post by cgrenier »

I have been able to extract the files withut problem from the archive on the website
tar xvjf testdisk-7.1-WIP.mac_intel.tar.bz2

Tavvy
Posts: 3
Joined: 25 Mar 2019, 22:57

Re: How do I extract the package prior to installing on Mac?

#5 Post by Tavvy »

Thank you for your time. Getting the same result with the WIP file indicated that unpacking with GUI Tar was probably the issue. The following extracts the .bz2 on Mac (presuming the file is in Downloads). In Terminal move to Download directory with

Code: Select all

cd ~/Downloads
To extract

Code: Select all

tar -jxvf testdisk-7.1-WIP.mac_intel.tar.bz2
The file name above should be of the file you're working with. All obvious, except to a command line novice.

Locked