You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python comes preinstalled on macOS and most Linux distribution. It can also be installed under Windows.
14
+
Python comes preinstalled on macOS and most Linux distributions. It can also be installed under Windows.
15
15
The Python program `sort-PhotorecRecoveredFiles <https://github.com/tfrdidi/sort-PhotorecRecoveredFiles>`_
16
16
17
17
* sorts all files by file extensions into own folders.
@@ -21,27 +21,37 @@ The Python program `sort-PhotorecRecoveredFiles <https://github.com/tfrdidi/sort
21
21
Renaming files using exiftool
22
22
*****************************
23
23
exiftool can use meta-data from several popular file formats to rename files.
24
-
All Linux distributions comes with a package for exiftool (perl-Image-ExifTool for RedHat, CentOS and Fedora) but otherwise it is available for Windows, Linux and macOS from http://www.sno.phy.queensu.ca/~phil/exiftool/
24
+
All Linux distributions comes with a package for :command:`exiftool` (file:`perl-Image-ExifTool` for Red Hat, CentOS and Fedora) but otherwise it is available for Windows, Linux and macOS from https://www.sno.phy.queensu.ca/~phil/exiftool/
exiftool -r -ext mp3 '-FileName<mp3/${artist;} - ${Album;} - ${Title;}%-c.%e' -if 'not defined $Track and defined $Title and $Title ne ""' mp3/f*.mp3
35
+
exiftool -r -ext mp3 '-FileName<mp3/${artist;} - ${Title;}%-c.%e' -if 'not defined $Track and not defined $Album and defined $Title and $Title ne ""' mp3/f*.mp3
36
+
exiftool -r -ext mp3 '-FileName<mp3/${artist;} - ${Album;}%-c.%e' -if 'not defined $Track and (not defined $Title or $Title eq "")' mp3/f*.mp3
exiftool -r -ext ogg '-FileName<ogg/${artist;} - ${Album;} - ${Title;}%-c.%e' -if 'not defined $Track and defined $Title and $Title ne ""' ogg/f*.ogg
39
+
exiftool -r -ext ogg '-FileName<ogg/${artist;} - ${Title;}%-c.%e' -if 'not defined $Track and not defined $Album and defined $Title and $Title ne ""' ogg/f*.ogg
40
+
exiftool -r -ext ogg '-FileName<ogg/${artist;} - ${Album;}%-c.%e' -if 'not defined $Track and (not defined $Title or $Title eq "")' ogg/f*.ogg
Copy file name to clipboardexpand all lines: compilation_env.rst
+3-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Compilation environment
2
2
***********************
3
-
testdisk uses several libraries if available:
3
+
TestDisk uses several libraries if available:
4
4
5
5
* libncurses - Required, TestDisk and PhotoRec use a text user interface, Ncurses library and development files must be available.
6
6
* Ext2fs library - Optional, used by TestDisk to list files from ext2/ext3/ext4 partition and by PhotoRec to be able to carve the free space from an ext2/ext3 partition instead of the whole partition
Cygwin https://cygwin.com/ is a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows, it includes the gcc compiler.
32
-
A DLL (cygwin1.dll) provides substantial POSIX API functionality, such functions may be required by some libraries that TestDisk or PhotoRec can use.
30
+
Cygwin https://cygwin.com/ is a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows, it includes the GCC compiler.
31
+
A DLL (:file:`cygwin1.dll`) provides substantial POSIX API functionality, such functions may be required by some libraries that TestDisk or PhotoRec can use.
Copy file name to clipboardexpand all lines: ddrescue.rst
+11-11
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,29 @@
1
1
DDRescue: data recovery from damaged disk
2
2
=========================================
3
3
4
-
A bad sector is a sector on a computer's disk drive that is either inaccessible or unwriteable due to permanent damage, such as physical damage to the disk surface.
4
+
A bad sector is a sector on a computer's disk drive that is either inaccessible or unwritable due to permanent damage, such as physical damage to the disk surface.
5
5
Flash memory may also have "bad sectors" (even if technically there is no sector in flash memory) due to permanent damage like failed flash memory transistors.
6
6
7
7
Instead of working directly on the damaged disk, it's recommended to create a copy and to work on the clone.
8
8
Two possibilities: create a disk image (a file) or overwrite a new/empty disk.
9
9
10
-
ddrescue can be found for Linux or macOS. If your computer is using another operating system, no problem, create a Linux LiveUSB! (See :ref:`live-usb`)
10
+
ddrescue can be found for Linux or macOS. If your computer is using another operating system, no problem, create a Linux Live USB! (See :ref:`live-usb`)
11
11
12
12
ddrescue on Linux
13
13
*****************
14
-
drescue is available on all Linux distribution.
14
+
ddrescue is available on all Linux distribution.
15
15
16
16
* CentOS: ``yum install ddrescue``
17
17
* Debian/Ubuntu: ``apt install gddrescue``
18
18
* Fedora: ``dnf install ddrescue``
19
19
20
-
Use ``lsblk`` or ``testdisk -lu`` to identify all the disks.
20
+
Use :command:`lsblk` or :command:`testdisk -lu` to identify all the disks.
21
21
22
22
ddrescue on macOS
23
23
*****************
24
24
To install ddrescue:
25
25
26
-
* Press Command+Space and type ``Terminal`` and press enter/return key.
26
+
* Press Command+Space and type :command:`Terminal` and press enter/return key.
Copy file name to clipboardexpand all lines: dftt_fat16_undelete.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This test image is a 6MB FAT16 file system with six deleted files and two delete
6
6
7
7
To undelete all files manually,
8
8
9
-
* run `testdisk 6-fat-undel.dd`
9
+
* run :command:`testdisk 6-fat-undel.dd`
10
10
* Choose `Proceed`.
11
11
* A non partitioned media is detected automatically, press Enter to confirm.
12
12
* Choose `Undelete`.
@@ -27,7 +27,7 @@ All files are copied.
27
27
* Choose [Quit] until you have exited all menus
28
28
29
29
The usual filenames for a FAT filesystem are composed of 8 chars for the name and 3 for the extension.
30
-
When a file is deleted, the first character of the filename is overwritten. TestDisk represents the lost char by a underscore `_` (e.g. `_RAG1.DAT` instead of `FRAG1.DAT`)
30
+
When a file is deleted, the first character of the filename is overwritten. TestDisk represents the lost char by a underscore `_` (e.g. :file:`_RAG1.DAT` instead of :file:`FRAG1.DAT`)
31
31
If a long filename (> 8 characters) is present, it will be use instead. A benefit is that the whole filename can be displayed (e.g. `System Volume Information`)
32
32
33
33
All files are recovered successfully except the 3 fragmented files.
Copy file name to clipboardexpand all lines: dftt_ntfs_undelete.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@ Download the small `NTFS filesystem <https://sourceforge.net/projects/dftt/files
4
4
5
5
To undelete all files manually,
6
6
7
-
* run `testdisk 7-ntfs-undel.dd`
7
+
* run :command:`testdisk 7-ntfs-undel.dd`
8
8
* Choose `Proceed`.
9
9
* A non partitioned media is detected automatically, press Enter to confirm.
10
10
* Choose `Undelete`.
11
11
12
-
TestDisk lists all lost files successfully. The alternate data stream is listed as `./mult1.dat:ADS`, alternate streams are not listed in Windows Explorer, and their size is not included in the file's size. Malware has used alternate data streams to hide code. As a result, malware scanners and other special tools now check for alternate data streams. Forensics analyst should also search for them as they may be used to hide documents.
12
+
TestDisk lists all lost files successfully. The alternate data stream is listed as :file:`./mult1.dat:ADS`, alternate streams are not listed in Windows Explorer, and their size is not included in the file's size. Malware has used alternate data streams to hide code. As a result, malware scanners and other special tools now check for alternate data streams. Forensics analyst should also search for them as they may be used to hide documents.
13
13
14
14
* Press 'C' (uppercase) to copy all selected files and directories.
15
15
* Choose a destination to copy all the files: use the arrow keys (up, down, left, right) to navigate, you can also use the enter key to enter into a directory.
0 commit comments