mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-02-23 17:00:40 +01:00
65 lines
3.0 KiB
HTML
65 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" /> <!-- <meta http-equiv="refresh" content="60" /> --> <meta name="description" content="dd cheatsheet" /> <meta name="keywords" content="dd,usb,isohybrid,hybridiso,syslinux" /> <meta name="author" content="Mika Suomalainen" /> <link rel="canonical" href="http://mkaysi.github.com/articles/cheatsheets/dd.html">
|
|
<title>
|
|
dd cheatsheet
|
|
</title>
|
|
<link rel="stylesheet" type="text/css" href="../../tyyli.css" />
|
|
</head>
|
|
<body>
|
|
<hr/>
|
|
<a href="../../sitemap/sitemap.html">Sitemap</a>
|
|
<hr/>
|
|
|
|
<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>
|
|
<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>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/>
|
|
|
|
<div id="disqus_thread"></div>
|
|
<script type="text/javascript">
|
|
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
|
var disqus_developer = 0;
|
|
var disqus_url = 'http://mkaysi.github.com/articles/cheatsheets/dd.html';
|
|
var disques_title = 'dd cheatsheet';
|
|
var disqus_shortname = 'mkaysishomepage'; // required: replace example with your forum shortname
|
|
/* * * DON'T EDIT BELOW THIS LINE * * */
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async =
|
|
true;
|
|
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0])
|
|
.appendChild(dsq);
|
|
})();
|
|
</script>
|
|
<noscript>
|
|
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Dis qus.</a>
|
|
</noscript>
|
|
|
|
<p>
|
|
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus </span></a>
|
|
</p>
|
|
<!-- vim : set ft=html -->
|
|
</body>
|
|
</html>
|
|
|
|
|