瀏覽代碼

dd command with sync

Bob Mottram 7 年之前
父節點
當前提交
0061deff3f
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1
    1
      doc/EN/armbian.org
  2. 2
    2
      website/EN/armbian.html

+ 1
- 1
doc/EN/armbian.org 查看文件

@@ -20,7 +20,7 @@ If you have a single board ARM computer which isn't one of the supported ones th
20 20
 Download the Armbian image for your board. It must be version 9 (Stretch), otherwise it won't work. Extract the image from its archive, then copy it to a microSD card:
21 21
 
22 22
 #+begin_src bash
23
-sudo dd if=[Armbian .img file] of=/dev/sdX
23
+sudo dd bs=1M if=[Armbian .img file] of=/dev/sdX conv=fdatasync
24 24
 #+end_src
25 25
 
26 26
 Where */dev/sdX* is the path for the microSD drive on your system.

+ 2
- 2
website/EN/armbian.html 查看文件

@@ -3,7 +3,7 @@
3 3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5 5
 <head>
6
-<!-- 2017-09-20 Wed 20:03 -->
6
+<!-- 2017-09-21 Thu 11:11 -->
7 7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9 9
 <title>&lrm;</title>
@@ -256,7 +256,7 @@ Download the Armbian image for your board. It must be version 9 (Stretch), other
256 256
 </p>
257 257
 
258 258
 <div class="org-src-container">
259
-<pre class="src src-bash">sudo dd <span class="org-variable-name">if</span>=[Armbian .img file] <span class="org-variable-name">of</span>=/dev/sdX
259
+<pre class="src src-bash">sudo dd <span class="org-variable-name">bs</span>=1M <span class="org-variable-name">if</span>=[Armbian .img file] <span class="org-variable-name">of</span>=/dev/sdX <span class="org-variable-name">conv</span>=fdatasync
260 260
 </pre>
261 261
 </div>
262 262