From d54dbaf62e7e1f2c8e7ecbf0db4b93ffb273a493 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 10 Dec 2012 17:48:52 +0200 Subject: [PATCH] dd: use ddrescue to backup broken device instead of dd --- articles/cheatsheets/dd.html | 13 +++++++++---- articles/cheatsheets/dd.html.md | 18 ++++++++++++++---- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/articles/cheatsheets/dd.html b/articles/cheatsheets/dd.html index a63cc83..4490e6a 100644 --- a/articles/cheatsheets/dd.html +++ b/articles/cheatsheets/dd.html @@ -12,20 +12,25 @@ dd cheatsheet Sitemap
-

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.

mount|grep /dev/sd

should tell what is the /dev/USBSTICK

Creating bootable USB stick

isohybrid image.iso
-dd if=image of=/dev/USBSTICK bs=1024
+dd if=image of=/dev/USBSTICK bs=1024;

Creating .iso from CD/DVD

First unmount the CD/DVD and then

dd if=/dev/DRIVE of=image.iso

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
-

maybe ddrescue should be used instead of dd.

+
ddrescue /dev/device /where/to/create/the/file.iso /path/to/logfile.log
+

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.


diff --git a/articles/cheatsheets/dd.html.md b/articles/cheatsheets/dd.html.md index 5ea2e67..0d89fba 100644 --- a/articles/cheatsheets/dd.html.md +++ b/articles/cheatsheets/dd.html.md @@ -15,7 +15,13 @@ [Sitemap](../../sitemap/sitemap.html)
-# 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.