%PDF- %PDF-
Direktori : /proc/309157/task/309157/root/usr/share/doc/gddrescue/html/ |
Current File : //proc/309157/task/309157/root/usr/share/doc/gddrescue/html/Generate-mode.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15"> <title>Generate mode (GNU ddrescue Manual)</title> <meta name="description" content="Generate mode (GNU ddrescue Manual)"> <meta name="keywords" content="Generate mode (GNU ddrescue Manual)"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="makeinfo"> <link href="index.html" rel="start" title="Top"> <link href="Concept-index.html" rel="index" title="Concept index"> <link href="index.html" rel="up" title="Top"> <link href="Ddrescuelog.html" rel="next" title="Ddrescuelog"> <link href="Fill-mode.html" rel="prev" title="Fill mode"> <style type="text/css"> <!-- a.summary-letter {text-decoration: none} blockquote.indentedblock {margin-right: 0em} div.display {margin-left: 3.2em} div.example {margin-left: 3.2em} div.lisp {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} 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"> <span id="Generate-mode"></span><div class="header"> <p> Next: <a href="Ddrescuelog.html" accesskey="n" rel="next">Ddrescuelog</a>, Previous: <a href="Fill-mode.html" accesskey="p" rel="prev">Fill mode</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> [<a href="Concept-index.html" title="Index" rel="index">Index</a>]</p> </div> <hr> <span id="Generate-mode-1"></span><h2 class="chapter">13 Generate mode</h2> <span id="index-generate-Mode"></span> <p>When ddrescue is invoked with the ‘<samp>--generate-mode</samp>’ option it operates in "generate mode", which is different from the default "rescue mode". That is, if you use the ‘<samp>--generate-mode</samp>’ option, ddrescue does not rescue anything. It only tries to generate a <var>mapfile</var> for later use. </p> <p>So you didn’t read the manual and started ddrescue without a <var>mapfile</var>. Now, two days later, your computer crashed and you can’t know how much data ddrescue managed to save. And even worse, you can’t resume the rescue; you have to restart it from the very beginning. </p> <p>Or maybe you started copying a drive with <code>dd conv=noerror,sync</code><!-- /@w --> and are now in the same situation described above. In this case, note that you can’t use a copy made by dd unless it was invoked with the ‘<samp>sync</samp>’ conversion argument. </p> <p>Don’t despair (yet). Ddrescue can in some cases generate an approximate <var>mapfile</var>, from <var>infile</var> and the (partial) copy in <var>outfile</var>, that is almost as good as an exact <var>mapfile</var>. It makes this by simply assuming that sectors containing all zeros were not rescued. </p> <p>However, if the destination of the copy was a drive or a partition, (or an existing regular file and truncation was not requested), most probably you will need to restart ddrescue from the very beginning. (This time with a <var>mapfile</var>, of course). The reason is that old data may be present in the drive that have not been overwritten yet, and may be thus non-tried but non-zero. </p> <p>For example, if you first tried one of these commands: </p><div class="example"> <pre class="example">ddrescue infile outfile or dd if=infile of=outfile conv=noerror,sync </pre></div> <p>then you can generate an approximate mapfile with this command: </p><div class="example"> <pre class="example">ddrescue --generate-mode infile outfile mapfile </pre></div> <p>Note that you must keep the original offset between ‘<samp>--input-position</samp>’ and ‘<samp>--output-position</samp>’ of the original rescue run. </p> <hr> <div class="header"> <p> Next: <a href="Ddrescuelog.html" accesskey="n" rel="next">Ddrescuelog</a>, Previous: <a href="Fill-mode.html" accesskey="p" rel="prev">Fill mode</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> [<a href="Concept-index.html" title="Index" rel="index">Index</a>]</p> </div> </body> </html>