This is a brief tutorial for the use and installation of Scalpel on OSX
- The first thing to do is to download the TRE (regex) library (here)
- open your download folder via a terminal and type in :
$ tar -xzvf tre-0.8.0.tar.gz $ cd tre-0.8.0/ $ sudo ./configure $ sudo ./make $ sudo ./make install $ cd ..
- Once the TRE library installed download scalpel (here)
- Type in the following commands :
$ tar -xzvf scalpel-2.0.tar.gz $ cd scalpel-2.0/ $ sudo ./configure $ sudo make
And that’s it, Scalpel should be installed.
Now that scalpel has been installed, open the “scalpel.conf” file and edit the lines of the type of files you want to recover.
For example, delete the comment ’#’ before each type of file you want to recover.
Finally to use it against a usb drive, enter the following line :
sudo scalpel -v -o Test /dev/disk1
In this case the following options are used :
- -v for verbose
- -o for the directory to place the recovered files
- and finally the path to the USB drive
And that’s how you can use scalpel
By the way, a last tip : To list the partitions you can use the following command on Mac OSX.
$ diskutil list
And That’s it.
{ 9 } Comments
I’m getting an error on install of Scalpel about tre not being available, I have installed tre via macports and manually and still get the same error.
Did you do this on Lion?
This is the error:
checking for regcomp in -ltre… no
configure: error: Scalpel requires libtre and libtre-dev. See http://laurikari.net/tre/.
Thx.
Hi,
Yup, I did it on Lion, but I did everything by hand, I’m not that keen
on macports, because usually it gives a bunch of errors.
Did you try to recompile is such as mentioned above ? let me know about the outcome
Hi,
I’m also running into problem in lion, the exact same error as isa56K.
Any progresses so far?
Thank you.
Did you also use MacPort to install TRE ?
Yes because after installing it the way you did in your post it didn’t work.
I just followed my steps back on a macbook air with lion and it works fine. I’ve no idea why it doesn’t work for you.
EDIT : hummm I might have omitted
I feel the most dumb person in the world now… also add the “make install” to the post on the Scalpel part.
Thank you and have a nice day.
Hi,
Just a tip for everyone, to list the partitions and disks in OSX similar to “fdisk -l” in linux just issue:
diskutil list
Add this to the main post with my blessing!
Thanks, I’ll add that
Post a Comment