【Shell】dd用法


dd的seek用法,有一個seek參數比較少用

  1. seek=blocks
    在拷貝之前,跳過輸出檔案的前blocks塊,每塊大小為obs-byte字節。(MBR是第 0sector/0block)
    ex.
    dd if=file(image) of=dest_disk(/dev/sdc) seek=16
  2. 查看dd進度
    ex.
    $dd if=/dev/zero of=/dev/null& pid=$!
    $kill -USR1 $pid; sleep 1; kill $pid

【參考】

  1. http://manpages.ubuntu.com/manpages/karmic/zh_TW/man1/dd.1.html
  2. http://phorum.study-area.org/index.php?topic=45328.0
  3. dd進度 http://linuxcommando.blogspot.com/2008/06/show-progress-during-dd-copy.html
 

Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com