TShopping

 找回密碼
 註冊
搜索
查看: 2317|回復: 3

[教學] 把 Client 端磁碟讀到DRBL Server內(製作 image 檔)

[複製鏈接]
發表於 2009-2-4 15:46:33 | 顯示全部樓層 |閱讀模式
 
Push to Facebook Push to Plurk Push to Twitter 
無論是要製作或還原 image 檔,首先要到 DRBL Server 啟動管理程式(dcs),準備好「工作環境」。Client 端才可開始連線開機,若沒什麼問題,應會自動執行。 
一、DRBL Server 端啟用再生龍(Clonezilla),進入 clent 端決定模式1.以一般 user 登入 DRBL Server 在 ubuntu 8.04 底下,本來就只允許一般 user 登入。而且,經筆者測試,就算您可以成功的以 root 身分登入執行 DRBL Server 提供的任何指令,也都無法正常顯示中文(除非已對 root 身份做部分調整)。
 另外,我們可以用 ssh 遠端登入 drbl server 下相關指令即可。不必真的跑到機器前面,打開終端機操作。
2.啟動 dcs 在製作 image file 時,筆者採用 unicast(單點)、並選由 client 端自行決定製作或還原。這樣做的好處是,不必去猜 client端上的硬碟是 hda 或 sda ,及 image 名稱要如何取等困擾。因為待 client 開機,並選要製作 image file 時,系統會根據 client 上的硬體狀況,給正確的參數。在上述的前題之下,詳細步驟如下:
  • 執行 dcs
    user@drbl:~$ sudo /opt/drbl/sbin/dcs
  • 執行畫面示例











二、Client 端
  • 網路開機 etherboot
  • 執行畫面示例
DRBL (http://drbl.nchc.org.tw, http://drbl.sf.net

Clonezilla: choose save or restore later
Local operating system (if available)
Memory test using Memtest86+




網路開機的畫面,請選 Clonezilla: choose save or restore later 這一項

(略)



  1. Clonezilla

  2. *Clonezilla is free(GPL) software, and comes with ABSOLUTE NO WARRANTY*
  3. ///Hint! From now on, if multiple choices are available, you have to press space key to mark your selection. A star sign (*) will be shown when the selection is done///
  4. Two modes are available, you can
  5. (1) save disk/partition to an image or restore an image to  disk/partition
  6. (2) disk to disk or partition to partition clone.
  7. Chose the Mode:


  8. device-image disk/partition to/from image(製作 image檔)
  9. device-device disk/partition to disk/partition(硬碟直接對烤)
複製代碼







  1. Clonezilla: Choose the mode

  2. *Clonezilla is free(GPL) software, and comes with ABSOLUTE NO WARRANTY*
  3. This software will overwrite the data on your harddrive when restoring!
  4. It is recommemded to backup important files before you restoring!***
  5. ///Hint! From now on, if multiple choices are available, you have to press space key to mark your selection. A star sign (*) will be shown when the selection is done///
  6. Chose the Mode:


  7. savedisk     Save_local_disk_as_an_image (把磁碟存成 image 檔)
  8. restoredisk   Restore_an_image_to_local_disk(把 image file還原回去)
  9. saveparts     Save_local_partitions_an_image(把分割區存成 image 檔)
  10. restoreparts  Restore_an_image_to_local_partitions(還原 image file)
  11. exit            Exit. Enter command line prompt(離開本程式, 下指令)
複製代碼







  1. Clonezilla: advanced extra parameters

  2. Which clone pargram(s) and what priority do you prefer ? The listed program(s) and priority mean that if the file system is not supported, the next program will be used. Ex. if you choose "Priority: ntfscloen > partimage > dd", then if the file system is xfs, clonezilla will try to use ntfsclone firest, and of course, xfs is not supported by ntfsclone, then clonezilla will try to use partimage.
  3. The default settings are optimized. If you have no idea, keep the default value, i.e. do NOT change anything, then say "OK" and continue.


  4. -q  Priority: ntfsclone > parrtimage >dd                  
  5. -q1  Priority: Only dd (support all filesystem, but inefficient)   
  6. -q2  Priority: ntfsclone, partclone( experimental) > partimage >dd
  7.   Priority: partimage > dd (no ntfsclone)                     









  8. Clonezilla: advanced extra parameters

  9. Set advanced parameters (multiple choices available). If you have no idea, keep the default value, i.e. do NOT change anything. Just press Enter.:



  10. -c                 Client waits for confirmation before cloning
  11. [ ] -nogui             Do NOT show GUI of partimage, use text only
  12. [ ] -a                 Do NOT force to turn on HD DMA
  13. [ ] -rm-win-swap-hib   Remove page and hibernation files in Win if exists
  14. [ ] -ntfs-ok           Assume NTFS integrity is OK, skip checking(for ntfs only)







  15. Clonezilla: advanced extra parameters

  16. Choose the commpression option. If you have no idea, keep the default value, i.e. do NOT change anything. ///NOTE/// -z3 (lzop) is fastest for compressing image and the image size is good enough (slight larger than that of gzip). However, it is not recommended when saving the image in (1) a network-based directory (2) a machine with bad quality of memory (RAM). Its algorithm requires good quality network and RAM. If the network quality or RAM is not good enough, your saved image will be broken!


  17. -z1  Use gzip compression (fast but samller image)   
  18. -z2  Use bzip2 compression(slowest but smallest image)      
  19. -z3  Use lzo compression(faster, image size ~ gzip         
  20. -z4 Without compression(fastest but largest image)           

複製代碼






  1. Clonezilla- Opensource Clone System(OCS)

  2. Input a name to save the image(自訂 image 的檔名)


  3. 2008-08-08-winxp-img




複製代碼






  1. Clonezilla- Opensource Clone System(OCS)

  2. Choose local disk as source.
  3. The disk name is the device name in GNU/Linux. The first disk in the system is "hda" or "sda", the 2nd disk is "hdb" or "sdb"...:



  4. sda 82.0GB_Maxtor_6Y080L0___Y2EYE82E  (硬碟型號)



複製代碼









     Press "Enter" to continue...



     The following step is to save the harddisk/partition(s) in this machine as image:
     **************************************.
     sda (82.0GB_Maxtor_6Y080L0___Y2EY82E)
     sda1 (82.0GB_Maxtor_6Y080L0___))
     **************************************.
     -> "/home/partimag/2008-08-08-winxp-img".
     Are you sure you want to continue ? ? (y/N) y



     Now you can choose to:
     (0) Poweroff
     (1) Reboot
     (2) Enter command line prompt
     [2] 0

 
     製作完 image 檔,記得還要關閉再生龍才可以
三、DRBL Server 關閉再生龍 這個動作很重要,若沒關閉再生龍,Client 端以網卡開機主動連線進來開機後,會再度執行再生龍所下的指令,造成困擾。
  • 執行 dcs
    user@drbl:~$ sudo /opt/drbl/sbin/dcs
  • 執行畫面






 

臉書網友討論
發表於 2013-11-9 00:59:43 | 顯示全部樓層
說的不錯  

版主招募中

您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2016-12-3 20:49 , Processed in 0.062312 second(s), 23 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表