DRBL 企鵝龍

Diskless Remote Boot in Linux
DRBL logo DRBL/Clonezilla進階使用 DRBL logo
Print all this session
Clonezilla : 有關Clonezilla的進階使用說明
  1. Clonezilla live與Clonezilla SE (Server Edition)原理與架構介紹
  2. Clonezilla box mode介紹
  3. Unicast, multicast, broadcast clone介紹與注意事項
  4. 利用virtualbox來做Clonezilla開發與測試環境
  5. PXE開啟Clonezilla live作法
  6. 我要怎麼自己從無到有做一個Clonezilla live ?
  7. 客製化Clonezilla live製作
  8. 有沒有可能把Clonezilla Live放到硬碟中來執行?
  9. 利用Clonezilla live作為Clonezilla SE用戶端的作業系統
  10. 使用Clonezilla live的開機參數來預先植入相關指令與動作
我要怎麼自己從無到有做一個Clonezilla live ?
  1. 下載clonezilla live 2.2.1-1 i686-pae版
  2. 用上述版本來開機(建議要有512 MB的記憶體),之後選擇好語言與鍵盤後,選擇"Start_Clonezilla" -> "device-image",然後掛載一個空間夠的分割區(必須是Linux的檔案系統,例如ext3, reiserfs等,不可用FAT或是NTFS的分割區)成為/home/partimag目錄來當工作目錄,建議選用local_dev,因為NFS之類的網路磁碟目錄和aufs/squashfs等相容性有些問題,製作的時候可能會失敗.
  3. 在選擇要備份硬碟/分割區或者還原的時候,選擇"exit",進入命令列
  4. 執行"sudo -i"或者"sudo su -"來轉換成root身份
  5. 如果網路還沒設定,可以執行"ocs-live-netcfg"來設定網路,以便待會製作Debian Live程式需要.
  6. cd /home/partimag/
  7. 如果/tmp/目錄可用空間少於500 MB,建議調整到至少500 MB,可以用類似這樣的指令來調整:
    mount -t tmpfs -o "nosuid,size=60%,mode=1777" tmpfs /tmp
    或者
    mount -t tmpfs -o "nosuid,size=524288000,mode=1777" tmpfs /tmp
  8. apt-get purge drbl clonezilla
  9. apt-get update
  10. 不要執行"apt-get dist-upgrade"或者"apt-get upgrade"來升級任何套件,要不然後續的步驟會無法繼續。
  11. apt-get -y install drbl clonezilla
  12. apt-get -y install live-build=3.0.5-1.drbl5 debootstrap genisoimage
  13. 如果你要使用debian sid來當Clonezilla的OS,使用的drbl live儲藏庫是experimental (-l e),使用的drbl 儲藏庫是unstable (-b unstable) 可以這樣執行:
    create-debian-live -l e -b unstable -d sid -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -i customized
    更長的例子,例如:
    create-debian-live -bt debootstrap -a 'firmware-linux-free live-boot=3.0.1-1.drbl4 live-config=3.0.23-1.drbl2 syslinux=3:6.02+dfsg-drbl2 extlinux=3:6.02+dfsg-drbl2 syslinux-common=3:6.02+dfsg-drbl2' -f 686-pae -l unstable -b unstable -d sid -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -g http://free.nchc.org.tw/drbl-core -k 3.11-2 -i customized
    其他執行的例子:
    如果你要特別版本的核心,只要確認Debian套件庫中有的話,例如你要3.11-1的核心,就這樣執行:
    create-debian-live -l u -b unstable -d unstable -k 3.11-1 -m http://free.nchc.org.tw/debian -s http://free.nchc.org.tw/debian-security -i customized
    或是你不要指定儲藏庫與核心的話,
    create-debian-live -l e -b unstable -i customized
    (-l u是說要使用DRBL套件庫中live-unstable (就同時包含了live-stable, live-testing, live-unstable分類的程式), -b unstable表示要使用DRBL套件庫中的unstable(也就包含stable, testing分類)。套件庫中的程式可以參考這裡http://free.nchc.org.tw/drbl-core/pool/drbl/).
    如果你要加入其他程式的話,例如firmware-bnx2,但是它是在Debian的non-free的分項中,你可以加入參數-a firmware-bnx2 -c "main non-free",也就是這樣執行:
    create-debian-live -l e -b unstable -a firmware-bnx2 -c "main non-free" -i customized
    順利的話,執行完後就會產生檔名為debian-live-for-ocs-customized.iso的Debian live。這個Debian Live我們就可以用來製作Clonezilla live.
    如果你不要選用特別版本的核心,而是讓程式自動選的話,就不需要下"-k $k_ver"參數,也就是執行:
    create-debian-live -l u -b unstable -d wheezy -i customized
    或者選用不同的儲藏庫分類
    create-debian-live -d wheezy -i customized
    更多create-debian-live的參數可以經由執行"create-debian-live --help"來查詢.
  14. 執行:
    ocs-iso -s --extra-boot-param "quiet" -j debian-live-for-ocs-customized.iso -i customized
    ocs-live-dev -c -s --extra-boot-param "quiet" -j debian-live-for-ocs-customized.iso -i customized
    就可以分別產生clonezilla-live-customized.iso與clonezilla-live-customized.zip的Clonezilla live了.
Print this page

Last modified: November 16 2018 09:16:38.