在製作之前,我們先思考兩件事情:
1.備份用的系統 --> clonezilla
2.製作選單 --> grub
假設我們的硬碟已規劃,規劃 sda1 -->備份區
sda2 -->Windows
sda3 -->Works
已將寫好的menu.lst放在隨身碟sdb1中。
1. 下載clonezilla-live.iso後燒錄成光碟。
2. 置入於光碟機中,讓主機採光碟開機的方式開機進入clonezilla-live中。
3. 選擇第一個選項,進入clonezill live:選擇正體中文-臺灣、不要修改鍵盤對應、進入命令列、Enter command
line prompt。
4. sudo su --> 取得最高權限。
5. mkfs.reiserfs /dev/sda1 --> 格式化sda1成reiserfs格式。(此格式效能好很多)
6. cd /home/partimage --> 進入備份資料的預設目錄
7. mkdir win-img --> 隨便建一個資料夾好讓程式可以過
8. /opt/drbl/sbin/ocs-live-dev -d /dev/sda1 win-img --> 安裝至硬碟分割區 /
dev/sda1
9. cd /mnt
10. mkdir sda1 sdb1 --> 在/mnt目錄底下建立兩個資料夾sda1與sdb1
11. mount /dev/sda1 /mnt/sda1 --> 掛載硬碟分割區 sda1 至 /mnt/sda1
12. mount /dev/sdb1 /mnt/sdb1 --> 掛載隨身碟 sdb1 至 /mnt/sdb1 (若已插入隨身碟)
13. cd /mnt/sda1/home/partimage --> 至硬碟分割區sda1裡的備份資料預設目錄
14. rm -rf win-img --> 刪除之前建立隨便一個的資料夾
15. cd /mnt/sda1/boot/grub --> 至放置菜單的目錄底下
16. rm * --> 刪除裏面的預設全部
17. cp /mnt/sdb1/menu.lst /mnt/sda1/boot/grub --> 將隨身碟中預放的菜單 menu.lst
拷貝到 /mnt/sda1/boot/grub
18. echo | grub --batch --device-map=device.map --> 重新製作device.map (新版
本建議要做這一步,因為往往預設偵測到的裝置可能是錯的,造成grub安裝不起來。)
19. grub-install --root-directory=/mnt/sda1 '(hd0,0)' --> 安裝grub至/dev/
sda1分割區,如要安裝至MBR請將'(hd0,0)'更改為'(hd0)'
20. reboot --> 重新開機
menu.lst 的寫法:
default 0
timeout 6
color cyan/black white/black
#splashimage=/boot/grub/gimi8.xpm.gz
# since no network setting in the squashfs image, therefore if
ip=frommedia, the network is disabled.
title Windows
root (hd0,1)
makeactive
chainloader +1
title Windows Backup
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro boot=live config noswap
nolocales edd=on nomodeset noprompt ocs_live_run="ocs-live-restore"
ocs_live_extra_param="-q2 -c -j2 -z1p -i 2000 -p poweroff saveparts
win-img sda2" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang=""
ip=frommedia vga=788
initrd /boot/initrd.img
title Windows Restore
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro boot=live config noswap
nolocales edd=on nomodeset noprompt ocs_live_run="ocs-live-restore"
ocs_live_extra_param="-b -c -k -p poweroff restoreparts win-img sda2"
ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="" vga=788
ip=frommedia
initrd /boot/initrd.img
menu.lst 的參數會因版本更新而稍稍改變,再請使用時多留意...
以上。
Steven.
--
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
> 写道: >用clonezilla與DRBL好些年了,我的環境總是面對數十台的機器與不同機型。clonezilla與DRBL真的是很不錯的開源軟體。很多人 >希望可以利用來替代ghost.exe 與 ghost server。提供一下我所使用的方法: > >在製作之前,我們先思考兩件事情: > >1.備份用的系統 --> clonezilla >2.製作選單 --> grub > >假設我們的硬碟已規劃,規劃 sda1 -->備份區 > sda2 -->Windows > sda3 -->Works >已將寫好的menu.lst放在隨身碟sdb1中。 > >1. 下載clonezilla-live.iso後燒錄成光碟。 >2. 置入於光碟機中,讓主機採光碟開機的方式開機進入clonezilla-live中。 >3. 選擇第一個選項,進入clonezill live:選擇正體中文-臺灣、不要修改鍵盤對應、進入命令列、Enter command >line prompt。 >4. sudo su --> 取得最高權限。 >5. mkfs.reiserfs /dev/sda1 --> 格式化sda1成reiserfs格式。(此格式效能好很多) >6. cd /home/partimage --> 進入備份資料的預設目錄 >7. mkdir win-img --> 隨便建一個資料夾好讓程式可以過 >8. /opt/drbl/sbin/ocs-live-dev -d /dev/sda1 win-img --> 安裝至硬碟分割區 / >dev/sda1 >9. cd /mnt >10. mkdir sda1 sdb1 --> 在/mnt目錄底下建立兩個資料夾sda1與sdb1 >11. mount /dev/sda1 /mnt/sda1 --> 掛載硬碟分割區 sda1 至 /mnt/sda1 >12. mount /dev/sdb1 /mnt/sdb1 --> 掛載隨身碟 sdb1 至 /mnt/sdb1 (若已插入隨身碟) >13. cd /mnt/sda1/home/partimage --> 至硬碟分割區sda1裡的備份資料預設目錄 >14. rm -rf win-img --> 刪除之前建立隨便一個的資料夾 >15. cd /mnt/sda1/boot/grub --> 至放置菜單的目錄底下 >16. rm * --> 刪除�面的預設全部 >17. cp /mnt/sdb1/menu.lst /mnt/sda1/boot/grub --> 將隨身碟中預放的菜單 menu.lst >拷貝到 /mnt/sda1/boot/grub >18. echo | grub --batch --device-map=device.map --> 重新製作device.map (新版 >本建議要做這一步,因為往往預設偵測到的裝置可能是錯的,造成grub安裝不起來。) >19. grub-install --root-directory=/mnt/sda1 '(hd0,0)' --> 安裝grub至/dev/ >sda1分割區,如要安裝至MBR請將'(hd0,0)'更改為'(hd0)' >20. reboot --> 重新開機 > > > >menu.lst 的寫法: > >default 0 >timeout 6 >color cyan/black white/black >#splashimage=/boot/grub/gimi8.xpm.gz ># since no network setting in the squashfs image, therefore if >ip=frommedia, the network is disabled. > > >title Windows >root (hd0,1) >makeactive >chainloader +1 > > > >title Windows Backup >root (hd0,0) >kernel /boot/vmlinuz root=/dev/sda1 ro boot=live config noswap >nolocales edd=on nomodeset noprompt ocs_live_run="ocs-live-restore" >ocs_live_extra_param="-q2 -c -j2 -z1p -i 2000 -p poweroff saveparts >win-img sda2" ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="" >ip=frommedia vga=788 >initrd /boot/initrd.img > > > >title Windows Restore >root (hd0,0) >kernel /boot/vmlinuz root=/dev/sda1 ro boot=live config noswap >nolocales edd=on nomodeset noprompt ocs_live_run="ocs-live-restore" >ocs_live_extra_param="-b -c -k -p poweroff restoreparts win-img sda2" >ocs_live_keymap="NONE" ocs_live_batch="yes" ocs_lang="" vga=788 >ip=frommedia >initrd /boot/initrd.img > > >menu.lst 的參數會因版本更新而稍稍改變,再請使用時多留意... > >以上。 > >-- >您已訂閱「Google 網上論壇」的「再生龍clonezilla」群組,因此我們特別傳送這封郵件通知您。 >如要在此群組張貼留言,請傳送電子郵件至 ocs-clo...@googlegroups.com。 >如要取消訂閱此群組,請傳送電子郵件至 ocs-clonezill...@googlegroups.com。 >如需更多選項,請造訪此群組:http://groups.google.com/group/ocs-clonezilla?hl=zh-TW。 >
Ceasar Sun
On 3月21日, 上午10時15分, TeliuTe <teli...@163.com> wrote:
> 這個方法像是把 clonezilla 安裝到硬碟上了,請教一下 /opt/drbl/sbin/ocs-live-dev -d /dev/sda1 win-img 的命令用法,或者哪兒能找到 ocs-live-dev 命令的解讀
>
> TeliuTe.
>
On 3月21日, 上午10時15分, TeliuTe <teli...@163.com> wrote:
> 這個方法像是把 clonezilla 安裝到硬碟上了,請教一下 /opt/drbl/sbin/ocs-live-dev -d /dev/sda1 win-img 的命令用法,或者哪兒能找到 ocs-live-dev 命令的解讀
>
> TeliuTe.
>