mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-02-23 08:50:43 +01:00
dd: use ddrescue to backup broken device instead of dd
This commit is contained in:
parent
db8151753a
commit
d54dbaf62e
@ -12,20 +12,25 @@ dd cheatsheet
|
||||
<a href="../../sitemap/sitemap.html">Sitemap</a>
|
||||
<hr/>
|
||||
|
||||
<h1 id="figuring-out-what-is-the-usb-stick">Figuring out what is the USB stick</h1>
|
||||
<h1 id="introductiom">Introductiom</h1>
|
||||
<p>Programs used / Debian packages</p>
|
||||
<p>isohybrid dd ddrescue / syslinux coreutils gddrescue</p>
|
||||
<p>Finding out what is the USB drive in /dev/sd*</p>
|
||||
<p>Start by mounting the stick which should be automatic in GUI.</p>
|
||||
<pre><code>mount|grep /dev/sd</code></pre>
|
||||
<p>should tell what is the /dev/USBSTICK</p>
|
||||
<h2 id="creating-bootable-usb-stick">Creating bootable USB stick</h2>
|
||||
<pre><code>isohybrid image.iso
|
||||
dd if=image of=/dev/USBSTICK bs=1024</code></pre>
|
||||
dd if=image of=/dev/USBSTICK bs=1024;</code></pre>
|
||||
<h2 id="creating-.iso-from-cddvd">Creating .iso from CD/DVD</h2>
|
||||
<p>First unmount the CD/DVD and then</p>
|
||||
<pre><code>dd if=/dev/DRIVE of=image.iso</code></pre>
|
||||
<p>DRIVE can be /dev/dvd /dev/cdrom or /dev/scd0 depending on the CD/DVD.</p>
|
||||
<h2 id="backing-up-scratched-cddvd">Backing up scratched CD/DVD</h2>
|
||||
<pre><code>dd if=/dev/DRIVE (see above) of=IMAGE.iso conv=noerror</code></pre>
|
||||
<p>maybe ddrescue should be used instead of dd.</p>
|
||||
<pre><code>ddrescue /dev/device /where/to/create/the/file.iso /path/to/logfile.log</code></pre>
|
||||
<p>The logfile.log is used to keep track of what has been recovered. You can use same logfile for multiple clones.</p>
|
||||
<p>Usage: You have two broken copies of same device. First you clone the other and then give same command to other, different source, but same destination and log file. If the device isn't broken on same part as the another, ddrescue will build a complete file.</p>
|
||||
<p>I would also use ddrescue with backing up large devicces instead of dd.</p>
|
||||
<!-- vim : set ft=html -->
|
||||
<hr/>
|
||||
|
||||
|
@ -15,7 +15,13 @@
|
||||
[Sitemap](../../sitemap/sitemap.html)
|
||||
<hr/>
|
||||
|
||||
# Figuring out what is the USB stick
|
||||
# Introductiom
|
||||
|
||||
Programs used / Debian packages
|
||||
|
||||
isohybrid dd ddrescue / syslinux coreutils gddrescue
|
||||
|
||||
Finding out what is the USB drive in /dev/sd*
|
||||
|
||||
Start by mounting the stick which should be automatic in GUI.
|
||||
|
||||
@ -29,7 +35,7 @@ should tell what is the /dev/USBSTICK
|
||||
|
||||
```
|
||||
isohybrid image.iso
|
||||
dd if=image of=/dev/USBSTICK bs=1024
|
||||
dd if=image of=/dev/USBSTICK bs=1024;
|
||||
```
|
||||
|
||||
## Creating .iso from CD/DVD
|
||||
@ -45,10 +51,14 @@ DRIVE can be /dev/dvd /dev/cdrom or /dev/scd0 depending on the CD/DVD.
|
||||
## Backing up scratched CD/DVD
|
||||
|
||||
```
|
||||
dd if=/dev/DRIVE (see above) of=IMAGE.iso conv=noerror
|
||||
ddrescue /dev/device /where/to/create/the/file.iso /path/to/logfile.log
|
||||
```
|
||||
|
||||
maybe ddrescue should be used instead of dd.
|
||||
The logfile.log is used to keep track of what has been recovered. You can use same logfile for multiple clones.
|
||||
|
||||
Usage: You have two broken copies of same device. First you clone the other and then give same command to other, different source, but same destination and log file. If the device isn't broken on same part as the another, ddrescue will build a complete file.
|
||||
|
||||
I would also use ddrescue with backing up large devicces instead of dd.
|
||||
|
||||
<!-- vim : set ft=html -->
|
||||
<hr/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user