Commit fdd39416 authored by sajolida's avatar sajolida
Browse files

Merge branch 'web/15120-improve-command-line-presentation'

parents 4c91bfe6 d66d5d7c
......@@ -24,18 +24,17 @@
1. Execute the following command:
diskutil list
<p class="pre command">diskutil list</p>
It returns a list of the storage devices on the system. For example:
$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS MacDrive 250.0 GB disk0s2
3: EFI 134.1 GB disk0s3
4: Microsoft Basic Data BOOTCAMP 115.5 GB disk0s4
<p class="pre command-output">/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS MacDrive 250.0 GB disk0s2
3: EFI 134.1 GB disk0s3
4: Microsoft Basic Data BOOTCAMP 115.5 GB disk0s4</p>
<div class="step-image">[[!img install/inc/infography/plug-first-usb.png link="no" alt=""]]</div>
......@@ -43,23 +42,22 @@
1. Execute again the same command:
diskutil list
<p class="pre command">diskutil list</p>
Your USB stick appears as a new device in the list. Check
that its size corresponds to the size of your USB stick.
$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS MacDrive 250.0 GB disk0s2
3: EFI 134.1 GB disk0s3
4: Microsoft Basic Data BOOTCAMP 115.5 GB disk0s4
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.0 GB disk1
1: Apple_HFS Untitled 1 8.0 GB disk1s1
<p class="pre command-output">/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme &lowast;500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS MacDrive 250.0 GB disk0s2
3: EFI 134.1 GB disk0s3
4: Microsoft Basic Data BOOTCAMP 115.5 GB disk0s4
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.0 GB disk1
1: Apple_HFS Untitled 1 8.0 GB disk1s1</p>
1. Take note of the *device name* of your USB stick.
In this example, the USB stick is 8.0 GB and its device name is <span class="code">/dev/disk1</span>.
......@@ -77,7 +75,7 @@
Replace:
- <span class="code">[tails.iso]</span> with the path to the ISO image
- <span class="command-placeholder">tails.iso</span> with the path to the ISO image
<div class="tip">
<p>If you are unsure about the path to the ISO image, you can insert the
......@@ -86,19 +84,19 @@
Terminal</span>.</p>
</div>
- <span class="code">[device]</span> with the device name found in step 5
- <span class="command-placeholder">device</span> with the device name found in step 6
<div class="tip">
<p>You can try adding <span class="code">r</span> before <span class="code">disk</span> to make the installation faster.</p>
</div>
<pre>diskutil unmountDisk [device]</pre>
<p class="pre command">diskutil unmountDisk <span class="command-placeholder">device</span></p>
<pre>dd if=[tails.iso] of=[device] bs=16m && sync</pre>
<p class="pre command">dd if=<span class="command-placeholder">tails.iso</span> of=<span class="command-placeholder">device</span> bs=16m && sync</p>
You should get something like this:
dd if=/Users/me/tails-amd64-3.0.iso of=/dev/rdisk9 bs=16m && sync
<p class="pre command-example">dd if=/Users/me/tails-amd64-3.0.iso of=/dev/rdisk9 bs=16m && sync</p>
If no error message is returned, Tails is being copied on the USB
stick. The copy takes some time, generally a few minutes.
......@@ -107,12 +105,12 @@
<p>If you get a <span class="guilabel">Permission denied</span> error, try
adding <code>sudo</code> at the beginning of the command:</p>
<pre>sudo dd if=[tails.iso] of=[device] bs=16m && sync</pre>
<p class="pre command">sudo dd if=<span class="command-placeholder">tails.iso</span> of=<span class="command-placeholder">device</span> bs=16m && sync</p>
<p>If you get an <span class="guilabel">invalid number ‘16m’</span> error, try
using <code>16M</code> instead:</p>
<pre>dd if=[tails.iso] of=[device] bs=16M && sync</pre>
<p class="pre command">dd if=<span class="command-placeholder">tails.iso</span> of=<span class="command-placeholder">device</span> bs=16M && sync</p>
</div>
......
......@@ -1120,6 +1120,30 @@ div.bug pre, div.caution pre, div.next pre, div.note pre, div.tip pre, div.troph
max-width: 34em;
}
/* Command lines */
p.command, p.command-example, p.command-output {
margin: 0px;
}
p.command::before, p.command-example::before {
content: '$ ';
}
p.command-example, p.command-output {
white-space: pre;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
span.command-placeholder {
color: #ec407a;
font-style: italic;
font-weight: bold;
}
/* Inlined icons */
img.symbolic, img.symbolic-22 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment