mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2025-02-23 08:50:43 +01:00
add dd cheatsheet
This commit is contained in:
parent
36df317a7f
commit
db8151753a
59
articles/cheatsheets/dd.html
Normal file
59
articles/cheatsheets/dd.html
Normal file
@ -0,0 +1,59 @@
|
||||
<!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="figuring-out-what-is-the-usb-stick">Figuring out what is the USB stick</h1>
|
||||
<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>dd if=/dev/DRIVE (see above) of=IMAGE.iso conv=noerror</code></pre>
|
||||
<p>maybe ddrescue should be used 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>
|
||||
|
||||
|
81
articles/cheatsheets/dd.html.md
Normal file
81
articles/cheatsheets/dd.html.md
Normal file
@ -0,0 +1,81 @@
|
||||
<!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/>
|
||||
[Sitemap](../../sitemap/sitemap.html)
|
||||
<hr/>
|
||||
|
||||
# Figuring out what is the USB stick
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
## 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.
|
||||
|
||||
<!-- 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>
|
Loading…
x
Reference in New Issue
Block a user