瀏覽代碼

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
 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:
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
 #+begin_src bash
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
 #+end_src
24
 #+end_src
25
 
25
 
26
 Where */dev/sdX* is the path for the microSD drive on your system.
26
 Where */dev/sdX* is the path for the microSD drive on your system.

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

3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
4
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
5
 <head>
5
 <head>
6
-<!-- 2017-09-20 Wed 20:03 -->
6
+<!-- 2017-09-21 Thu 11:11 -->
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
8
 <meta name="viewport" content="width=device-width, initial-scale=1" />
9
 <title>&lrm;</title>
9
 <title>&lrm;</title>
256
 </p>
256
 </p>
257
 
257
 
258
 <div class="org-src-container">
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
 </pre>
260
 </pre>
261
 </div>
261
 </div>
262
 
262