This file is indexed.

/usr/share/doc/gddrescue/html/Examples.html is in gddrescue 1.21-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GNU ddrescue Manual: Examples</title>

<meta name="description" content="GNU ddrescue Manual: Examples">
<meta name="keywords" content="GNU ddrescue Manual: Examples">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-index.html#Concept-index" rel="index" title="Concept index">
<link href="index.html#Top" rel="up" title="Top">
<link href="Direct-disc-access.html#Direct-disc-access" rel="next" title="Direct disc access">
<link href="Optical-media.html#Optical-media" rel="prev" title="Optical media">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<a name="Examples"></a>
<div class="header">
<p>
Next: <a href="Direct-disc-access.html#Direct-disc-access" accesskey="n" rel="next">Direct disc access</a>, Previous: <a href="Optical-media.html#Optical-media" accesskey="p" rel="prev">Optical media</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="Concept-index.html#Concept-index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="A-small-tutorial-with-examples"></a>
<h2 class="chapter">9 A small tutorial with examples</h2>
<a name="index-examples"></a>

<p>This tutorial is for those already able to use the dd command. If you
don&rsquo;t know what dd is, better search the net for some introductory
material about dd and GNU ddrescue first.
</p>
<p>A failing drive tends to develop more and more errors as time passes.
Because of this, you should rescue the data from a drive as soon as you
notice the first error. Be diligent because every time a physically
damaged drive powers up and is able to output some data, it may be the
very last time that it ever will.
</p>
<p>You should make a copy of the failing drive with ddrescue, and then try
to repair the copy. If your data is really important, use the first copy
as a master for a second copy, and try to repair the second copy. If
something goes wrong, you have the master intact to try again.
</p>
<p>If you are trying to rescue a whole partition, first repair the copy
with e2fsck or some other tool appropriate for the type of partition you
are trying to rescue, then mount the repaired copy somewhere and try to
recover the files in it.
</p>
<p>If the drive is so damaged that the file system in the rescued partition
can&rsquo;t be repaired or mounted, you will have to browse the rescued data
with an hex editor and extract the desired parts by hand or use a file
recovery tool like photorec.
</p>
<p>If the partition table is damaged, you may try to rescue the whole disc,
then try to repair the partition table and the partitions on the copy.
</p>
<p>If the damaged drive is not listed in /dev, then you cannot rescue it.
At least not with ddrescue.
</p>
<p>See <a href="Optical-media.html#Optical-media">Optical media</a>, for rescue examples of CD-ROMs and DVDs.
</p>
<br>
<p>Example 1: Rescue a whole disc with two ext2 partitions in /dev/hda to
/dev/hdb.<br>
Note: you don&rsquo;t need to partition /dev/hdb beforehand, but if the
partition table on /dev/hda is damaged, you&rsquo;ll need to recreate it
somehow on /dev/hdb.
</p>
<div class="example">
<pre class="example">ddrescue -f -n /dev/hda /dev/hdb mapfile
ddrescue -d -f -r3 /dev/hda /dev/hdb mapfile
fdisk /dev/hdb
e2fsck -v -f /dev/hdb1
e2fsck -v -f /dev/hdb2
</pre></div>

<br>
<p>Example 2: Rescue an ext2 partition in /dev/hda2 to /dev/hdb2.<br>
Note: you need to create the hdb2 partition with fdisk first. hdb2
should be of appropriate type and size.
</p>
<div class="example">
<pre class="example">ddrescue -f -n /dev/hda2 /dev/hdb2 mapfile
ddrescue -d -f -r3 /dev/hda2 /dev/hdb2 mapfile
e2fsck -v -f /dev/hdb2
mount -t ext2 -o ro /dev/hdb2 /mnt
  (read rescued files from /mnt)
</pre></div>

<br>
<p>Example 3: While rescuing the whole drive /dev/hda to /dev/hdb, /dev/hda
freezes up at position 12345678.
</p>
<div class="example">
<pre class="example">ddrescue -f /dev/hda /dev/hdb mapfile       &lt;-- /dev/hda freezes here
  (restart /dev/hda or reboot computer)
  (restart copy at a safe distance from the troubled sector)
ddrescue -f -i 12350000 /dev/hda /dev/hdb mapfile
  (then copy backwards down to the troubled sector)
ddrescue -f -R /dev/hda /dev/hdb mapfile
</pre></div>

<br>
<p>Example 4: While rescuing the whole drive /dev/hda to /dev/hdb, /dev/hdb
fails and you have to rescue data to a third drive, /dev/hdc.
</p>
<div class="example">
<pre class="example">ddrescue -f -n /dev/hda /dev/hdb mapfile1     &lt;-- /dev/hdb fails here
ddrescue -f -m mapfile1 /dev/hdb /dev/hdc mapfile2
ddrescue -f -n /dev/hda /dev/hdc mapfile2
ddrescue -d -f -r3 /dev/hda /dev/hdc mapfile2
</pre></div>

<br>
<p>Example 5: While rescuing the whole drive /dev/hda to /dev/hdb, /dev/hda
stops responding and disappears from /dev.
</p>
<div class="example">
<pre class="example">ddrescue -f -n /dev/hda /dev/hdb mapfile      &lt;-- /dev/hda fails here
  (restart /dev/hda or reboot computer as many times as needed)
ddrescue -f -n -A /dev/hda /dev/hdb mapfile
ddrescue -d -f -r3 /dev/hda /dev/hdb mapfile
</pre></div>


<hr>
<div class="header">
<p>
Next: <a href="Direct-disc-access.html#Direct-disc-access" accesskey="n" rel="next">Direct disc access</a>, Previous: <a href="Optical-media.html#Optical-media" accesskey="p" rel="prev">Optical media</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="Concept-index.html#Concept-index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>