%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/Ddrescuelog.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>Ddrescuelog (GNU ddrescue Manual)</title> <meta name="description" content="Ddrescuelog (GNU ddrescue Manual)"> <meta name="keywords" content="Ddrescuelog (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="Invoking-ddrescuelog.html" rel="next" title="Invoking ddrescuelog"> <link href="Generate-mode.html" rel="prev" title="Generate 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="Ddrescuelog"></span><div class="header"> <p> Next: <a href="Invoking-ddrescuelog.html" accesskey="n" rel="next">Invoking ddrescuelog</a>, Previous: <a href="Generate-mode.html" accesskey="p" rel="prev">Generate 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="Ddrescuelog-1"></span><h2 class="chapter">14 Ddrescuelog</h2> <span id="index-ddrescuelog"></span> <p>Ddrescuelog is a tool that manipulates ddrescue mapfiles, shows mapfile contents, converts mapfiles to/from other formats, compares mapfiles, tests rescue status, and can delete a mapfile if the rescue is done. Ddrescuelog operations can be restricted to one or several parts of the mapfile if the domain setting options are used. </p> <p>When performing logic operations (AND, OR, XOR) on mapfiles of different extension, only the blocks present in both files are processed. </p> <p>Here are some examples of how to use ddrescuelog, alone or in combination with other tools. </p> <br> <p>Example 1: Delete the mapfile if the rescue is finished (all data have been recovered without errors left). </p> <div class="example"> <pre class="example">ddrescue -f /dev/sda /dev/sdb mapfile ddrescuelog -d mapfile </pre></div> <br> <p>Example 2: Rescue two ext2 partitions in /dev/sda to /dev/sdb and repair the file systems using badblock lists generated with ddrescuelog. File system block size is 4096.<br> Note: you do need to partition /dev/sdb beforehand. </p> <div class="example"> <pre class="example">fdisk /dev/sdb <-- partition /dev/sdb ddrescue -f /dev/sda1 /dev/sdb1 mapfile1 ddrescue -f /dev/sda2 /dev/sdb2 mapfile2 ddrescuelog -l- -b4096 mapfile1 > badblocks1 ddrescuelog -l- -b4096 mapfile2 > badblocks2 e2fsck -v -f -L badblocks1 /dev/sdb1 e2fsck -v -f -L badblocks2 /dev/sdb2 </pre></div> <br> <p>Example 3: Rescue a whole disc with two ext2 partitions in /dev/sda to /dev/sdb and repair the file systems using badblock lists generated with ddrescuelog. Disc sector size is 512, file system block size is 4096. Arguments to options ‘<samp>-i</samp>’ and ‘<samp>-s</samp>’ are the starting positions and sizes of the partitions being rescued.<br> Note: you don’t need to partition /dev/sdb beforehand, but if the partition table on /dev/sda is damaged, you’ll need to recreate it somehow on /dev/sdb. </p> <div class="example"> <pre class="example">ddrescue -f /dev/sda /dev/sdb mapfile fdisk /dev/sdb <-- get partition sizes ddrescuelog -l- -b512 -i63s -o0 -s767457s -b4096 mapfile > badblocks1 ddrescuelog -l- -b512 -i767520s -o0 -s96520s -b4096 mapfile > badblocks2 e2fsck -v -f -L badblocks1 /dev/sdb1 e2fsck -v -f -L badblocks2 /dev/sdb2 </pre></div> <hr> <div class="header"> <p> Next: <a href="Invoking-ddrescuelog.html" accesskey="n" rel="next">Invoking ddrescuelog</a>, Previous: <a href="Generate-mode.html" accesskey="p" rel="prev">Generate 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>