clonezilla tutorial.v13 (1)

52
Clonezilla 實務課程 孫振凱 蔡育欽 http://drbl.nchc.org.tw, http://drbl.sourceforge.net http://clonezilla.nchc.org.tw, http://clonezilla.org 國家高速網路與計算中心 National Center for High-Performance Computing (NCHC) Q3, 2014

Upload: jhao17

Post on 07-Jan-2016

77 views

Category:

Documents


0 download

DESCRIPTION

Clonezilla Tutorial

TRANSCRIPT

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 1/52

Clonezilla 實務課程

孫振凱 蔡育欽

http://drbl.nchc.org.tw http://drbl.!o"rce#orge.nethttp://clonezilla.nchc.org.tw http://clonezilla.org

$%&'()*+,-ational Center #or 0igh12er#or3ance Co3p"ting 4C0C5

67 89;

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 2/52

2<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Outline (Day 1)

Time: 09:30 B 16:30 – Clonezilla D / EFGH

 – Clonezilla IJK程LM / NOPDQ

 –

Clonezilla unicast, multicast, broacast cloneDQ*

RSTU

 – Clonezilla On!t"e!#ly 實V

 – WX / YZ[\]^*實務_H

 – `WOPf實務

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 3/52

3<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Outline (Day 2)

● Time: 09:30 B 16:30

 – jkf $ino%s m]^*

 – jkf &inu'/ni' m]^*

 – Clonezilla &ie qsX ( uvE*+ sX , xy 12 -+ { )

 – ` Clonezilla &ie |}~•€v

 – ‚ƒ„Clonezilla &ie

X*…†`

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 4/52

.<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise Index 

=et"p Clonezilla =‡

=aˆe/‰e!tore i3age ˆia Clonezilla =‡

 – =elect1in1client/Š"ltica!t

‹igger !ize hard1driˆe re!tore : ;9Œ

Œ2arted re!ize/create partition n1the1#lŽ:di! to di! di! to re3oˆe di!

jkf indow!: ‘‰‹>1winroll

jkf >in"’/“ni’ ”dˆanced re!tore #or d"alboot

Clonezilla on “=‹ #la!h

Clonezilla >iˆe ‚ƒ„

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 5/52<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

ollin

–—˜™š()›Huœ

ž` >in"’ žŸœ¡`œ¢£¤`œ

ž`¥WXEFvœ

ž¦§` Clonezilla =‡ ¨ Clonezilla >iˆe ¨

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 6/526<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

©ª«¬

D+&/Clonezilla…†` – "tt://rblnc"cort%/aance

● Clonezilla &ie «¬

 – "tt://clonezillanc"cort%/clonezilla!lie/oc/

● Clonezilla m«®*¯° – "tt://clonezillanc"cort%/relate4article/

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 7/52

 

Clonezilla4±²³ 5D /EFGH

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 8/525<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

±²³ Clonezilla

Clonezilla OC* (Oensource Clone *ystem)7 – Clonezilla´µ¶·WX¸¹º·v»¼½ 8"ost(*ymantec)š

embo(c;uire by <+- Tioli so#t%are)/ cronis(True <mae)

 – ¶¾ artclone("tt://artcloneor/),artimae ("tt://%%%artimaeor), nt#sclone *ucast1 ("tt://ucastlinu'lu/)

● _H¿¬ÀÁÂ

 – 實ø¹ :ÄÅZ¸¹Æ&=-2

 – ÇÈ (+<O* > -+:..6>6.>2Æ?@<>8T)

 – ÉÊYZ

● ËÌ (bare material)ÍG»ÎÏË

 – *PÐ|ÑÒ·EFÓÔÂ[ÕEFÆÖÕEF

 – ÍG×ØÔ

● ÙÚÛÜÝÞ

 – &ie eition¾ßÆàá`»|EFÆÍGß´¤`

 – *erer eition (*?)Ââ¾jkãäÍG»-Ô›H»å–—˜™›HÆjkܲæç

è:`é =erˆer edition

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 9/529<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Terminology @Aê

Raw copying* –  A possibility to perform sector-by-sector copying of a whole partition

● Smart copying*

 –  A possibility to distinguish which portions of the partition really contain

data and to copy these only● Live copying*

 –  A drive or volume can be copied/imaged while it is in use, avoiding theneed for booting into a separate operating system or Live C!

Smart copy full dis" –  A possibility to distinguish which portions of the dis" really contain data

and to copy these only

 – #ossible to s"ip swap, pagefile !!!!

* $he descriptions are from http%//en!wi"ipedia!org/wi"i/Comparison&of&dis"&cloning&software

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 10/5210<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

±²³ Clonezilla

8&● ë€ìí*ÍGÎÏîIJ PÐIJ 7

 – 8A/&inu' e't2/3/., reiser#s3/., '#s, B#s, btr#s17 , -* $ino%s @T, AT@*, e'@T7,-ac O* @*>7, @ree +*D @*7, =-$are ?*(i) =-@*(3,)7, -ini' [Minix](2013)

 – *uorts &=-2

 – ïðñòóPÐIJ (e': z#s,)` ● +locE base EFÓÔ

 – ôEFõ`óZö»÷&EFÍGøù

 – *mart coyin

● ë€8rub 1/2 (úûÆx )

● ë€ serial console

● PÐÔLMóüýPÂþÔÿ透Æ公Æ標準þÔ;易Ë彈\調¶

● ë€-ulticast1:â¾jkf

● ù結¾`&ie eition1

è:`é =erˆer edition

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 11/5211<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

$"atFs Ae%

@it t"e roram at" %it" &inu' concet● !E1 !ics otion #or bi source to small ist (%it" !C #or

 artclone )

● ost!action %it" T< : o%ero##/reboot/cm/rerun1

-ini' suort● -ultiat" eices, e /e/cciss/c00, are no% suorte natiely

 Ao more linEin t"em to /e/sa!z7 T"ere#ore no% &=- on ccisseice are suorte

● more in#ormation about "ar%are an artition ia lsblE an

 arte comman %it"in Cloneizlla imae

● en isE (/e/'a!z7) %as ae as a suorte eice

● T"ree lo #iles, /ar/lo/clonezillalo, /ar/lo/ocs!netc#lo an/ar/lo/ocs!mountlo are use to sae t"e los

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 12/5212<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

±²³ Clonezilla –限ƒ

● 目·WX ( ÄÅZ ) j小至少需等Ë ( šjË )來源WX( ÄÅZ )

● Îë€[Õ (Di##erential1) EF / ÖÕ (<ncremental1) EF

Îë€ç{ (Online) EF /回覆● ε全ë€ *o#t%are <D/@irm%are(@aEe) <D2

 – 需額外手動步驟調¶

● üýPïðë€Ä片回í

 – 需先將Ä片PоéÏ´ìÊ!

註 1: http://en.wikipedia.org/wiki/Incremental_backup註 2:http://en.wikipedia.org/wiki/RAID 

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 13/5213<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

mv

● 8arte

 – @ree artition eitor #or ra"ically manain isE an artition

 – "tt://artesource#orenet

● Tu'boot

 – "#$x%q·*+sX»&ë€Clonezilla lie, D+& lie, 8arte

lie * Tu'2lie

 – "tt://tu'bootnc"cort%/

● D+&!%inroll

 – jkf-G %ino%s

IJ·動'()#v(1)

ÍG*動+,-G$ino%s·¤-. ,/0 ,(*<D)(2) 12來至D+& serer ·34  serer ·

34

 – "tt://rbl!%inrollnc"cort%/

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 14/52

1.<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Clonezilla SE

實V56

eth'dhcp

Clonzilla client 

(etwor" lin"

)ateway- +nternet

eth.!0!.1!.12

eth'.!0!.1!3

*erer site● buntu

● Clonezilla *? enable

● =irtualbo'

Client site● O*!installe/?

 bootin/CD/*+ rie

● &inu'/$ino%s

● =irtualmac"ine(maybe)

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 15/52

1<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise?a!

 –

¦§Clonezilla =‡● 78()● f Clonezilla =‡ 56

=cenario

 – ‘‰‹> ==9/Clonezilla #"ll 3ode – ` !erˆer : – ‘0C2 "!e range 3ode

 – ; !"do drbl;i3p 1r 1z 9 1p < 41 85

; !"do drbl!rˆ 1i

; !"do drblp"!h 1i lient : 實ä

 hec point

 – 78 client ù Clonezilla !elect1in1client ØÔ=

 – 0int: "!e dc!

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 16/52

16<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

±²³¢£¤Ý{·>ÚØÔClonezilla *?: @ull/+o'/&ie moe

@ullClonezilla Clonezilla+o' Clonezilla&ie

/etc, /ar, /root o#client

 A@*!base Tm#s!base se s;uas"#s

@iles in /etc an /ar

o# client a#ter reboot

Het 8one 8one

?'tra sace inserer/client

I 0 !100-+J

0 0

-a' client K/et"ernetcar in serer 

23 23 23

/Dis

qà?'( client0@ /Server AÇB

Server AÇBC / ïðà?'(  client 0@

Server AÇDC ,B易EËÕF clientWÃ56 / udpcastG¬ÝÞqùÎÏ

J eens on t"e acEaes installe in t"e serer 

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 17/52

1L<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise

?a!

 – 確認以 <"ll Clonezilla 模式

● /etc /ˆar /root 等檔案系統格式

 – 以 dc! 切換 Clonezilla ‹o’ 模式 – 確認以 Clonezilla bo’ 模式

● /etc /ˆar /root 等檔案系統格

式 Chec point

 – 確認 client 能以 Clonezilla !elect1in1

client 模式開啟

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 18/52

 

ClonezillaGHLM/WOPDQ

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 19/52

19<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Clonezilla EFK程

Start

Parse partition table

End

NO

Find the flesystem o

device

 YES

Smart copying?

Decidedeviceimagingengine

 YESUse dd to

saveimage to

stdot

NO

Decidecompressingengine

Save stdin as fle inthe image dir

Save !"#$%P& data

Save partition table

Save hard'are ino

partclone

ntsclone

partimage

Save device imageto stdot

g(ip

)(

l(ip

l(ma

b(ip*

Find theDevice

+partition$,-.

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 20/52

20<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise =et"p Clonezilla =‡

=aˆe/‰e!tore i3age ˆia lonezilla =‡

 –=elect1in1client/Š"ltica!t

“!e Clonezilla liˆe on =‡

‰"n Clonezilla liˆe ˆia 2H‡

‹igger !ize hard1driˆe re!tore Œ2arted re!ize/create partition

n1the1#lŽ:di! to di! di! to re3oˆe di!

jkf indow!: ‘‰‹>1winroll

jkf >in"’/“ni’ ”dˆanced re!tore #or d"alboot

Clonezilla on “=‹ #la!h

Clonezilla >iˆe ‚ƒ„

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 21/52

21<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

root4debian%56 ls -al7h /home/partimag/trusty-img/

-rw-r--r-- root root 108 9 

月 2 '2%81 bl"dev!list-rw-r--r-- root root .2 9

 月 2 '2%81 bl"id!list

-rw-r--r-- root root 22. 9 月 2 '2%1' clone:illa-img

-rw-r--r-- root root 2 9 月 2 '2%2 dis"

-rw-r--r-- root root 021 9  月 2 '2%2 +nfo-dmi!t3t

-rw-r--r-- root root 1 9 月 2 '2%2 +nfo-lshw!t3t

-rw-r--r-- root root 1' 9 

月 2 '2%2 +nfo-lspci!t3t-rw-r--r-- root root 9. 9  月 2 '2%2 +nfo-pac"ages!t3t

-rw-r--r-- root root 0. 9 月 2 '2%1' +nfo-saved-by-cmd!t3t

-rw-r--r-- root root 1 9  月 2 '2%2 parts

-rw------- root root !9) 1 月 .9 '.%2. sda!e3t2-ptcl-img!g:!aa

-rw-r--r-- root root 8 9  月 2 '2%81 sda-chs!sf 

-rw-r--r-- root root '20'2 9 

月 2 '2%81 sda-hidden-data-after-mbr -rw-r--r-- root root 1. 9  月 2 '2%81 sda-mbr 

-rw-r--r-- root root 801 9 月 2 '2%81 sda-pt!parted

-rw-r--r-- root root 82 9 月 2 '2%81 sda-pt!parted!compact

-rw-r--r-- root root 8' 9 月 2 '2%81 sda-pt!sf 

-rw-r--r-- root ceasar 18 9 月 2 '2%2 swappt-sda1!info

Clonezilla NOPIJ –  -+!tye

;ardware/softwareinformation

image name

real data ofpartition sda

partition info fromparted and sfdis"

<se dd to save=>R and otherhidden data

dis" C!;!S! value

<<+ and label info ofsda. ?swap partition@

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 22/52

22<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

6 ls -al .'2-'-'-Acer!#21/

!!!

-rw------- root root 8' un ' .'%89 parts

-rw------- root root 89 un ' .'%' sda-chs!sf 

-rw------- root root 92'0 un ' .'%' sda-gpt-st

-rw------- root root 802 un ' .'%' sda-gpt-.nd

-rw------- root root 9.' un ' .'%' sda-gpt!gdis"

-rw------- root root 00 un ' .'%' sda-gpt!sgdis"

-rw------- root root 1. un ' .'%' sda-mbr -rw------- root root 9 un ' .'%' sda-pt!parted

-rw------- root root 9'8 un ' .'%' sda-pt!parted!compact

-rw------- root root .1' un ' .'%' sda-pt!sf 

-rw------- root root .99'99 un ' .'%' sda!ntfs-ptcl-img!g:!aa

-rw------- root root .81'099 un ' .'%' sda.!vfat-ptcl-img!g:!aa

-rw------- root root 1221'2 un ' .'%' sda8!dd-img!aa

!!!

Clonezilla NOPIJ –  8T!tye

)#$ partition infofrom gdis"

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 23/52

23<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

B ls -l centos!1!32/-rw-r--r-- root root 9 1

 

月 . ''%8 +nfo-saved-by-cmd!t3t-rw-r--r-- root root .00 1  月 . ''%. lvm&logv!list-rw-r--r-- root root 10 1  月 . ''%. lvm&vg&dev!list-rw------- root root 9'2 1

 月 . ''%. lvm&Dol)roup!conf -rw-r--r-- root root ' 1

 月 . ''%8' parts-rw------- root root .12910 1

 月 . ''%. sda!e3t2-ptcl-img!g:!aa

-rw-r--r-- root root 8 1 

月 . ''%. sda-chs!sf -rw-r--r-- root root '20'2 1

 月 . ''%. sda-hidden-data-after-mbr -rw-r--r-- root root 1. 1

 月 . ''%. sda-mbr -rw-r--r-- root root 8.1 1

 月 . ''%. sda-pt!parted-rw-r--r-- root root .0 1

 月 . ''%. sda-pt!parted!compact-rw-r--r-- root root .1 1

 月 . ''%. sda-pt!sf -rw-r--r-- root root 18 1

 月 . ''%8' swappt-Dol)roup-lv&swap!info

-rw------- root root ..09 1 

月 . ''%8' Dol)roup-lv&root!e3t2-ptcl-img!g:!aa!!!

Clonezilla NOPIJ –  &=-

LD= information

image name

real data of LD

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 24/52

2.<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Clonezilla ÍGK程

Start

#ead image

/reate partition table

Find theimage

o device

/reate ,- i ,- imageond in image dir

End

 YES

#estore theimage o

device to device

 &ne the flefle system si(e

to ft partition si(e

#einstall grbi assigned

NODecide

deviceimagingengine

partclone

ntsclone

partimage

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 25/52

2<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise =et"p Clonezilla =‡

=aˆe/‰e!tore i3age ˆia lonezilla =‡

 –=elect1in1client/Š"ltica!t

“!e Clonezilla liˆe on =‡

‰"n Clonezilla liˆe ˆia 2H‡

‹igger !ize hard1driˆe re!tore Œ2arted re!ize/create partition

n1the1#lŽ:di! to di! di! to re3oˆe di!

jkf indow!: ‘‰‹>1winroll

jkf >in"’/“ni’ ”dˆanced re!tore #or d"alboot

Clonezilla on “=‹ #la!h

Clonezilla >iˆe ‚ƒ„

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 26/52

26<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

WXj小ÎÏ·_HÓÔ

GKÂ目·ÄÅZLM等ËšjË來源ÄÅZ● 小WX !M jWXÂ

 – *GNWXÄÅZOPÏÂQ_H*RSN!

 – TUVWjÂôâË -+ ÄÅþÔ»Îâ 8T

● jWX !M 小WXÂ

 – (XFÄÅZ回覆*Y

● estore artition

 – 需Z¶[WX restore

● T先調¶來源ÄÅZj小Â 8arte, artition maic,?*?* artition -aster 

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 27/52

2L<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise =et"p Clonezilla =‡ =aˆe/‰e!tore i3age ˆia Clonezilla =‡

 – =elect1in1client/Š"ltica!t “!e Clonezilla liˆe on =‡/ˆia 2H‡

‘i##erent !ize hard driˆe re!toring

 –=3all to bigger:3an"allŽ/

proportionallŽ

 –‹ig to !3aller: Œ2arted re!ize/create

partition

n1the1#lŽ:di! to di! di! to re3oˆe di! jkf indow!: ‘‰‹>1winroll

jkf >in"’/“ni’ ”dˆanced re!tore #or d"alboot Clonezilla on “=‹ #la!h Clonezilla >iˆe ‚ƒ„

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 28/52

25<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Clone without image

se clone on!t"e!#ly

*erer : OC* !M select in client Client : select NDeice!eice\

ÙÚ eice to eice ÓÔÂ

Deice to local eice78  source/estination eice

Deice to remote eice

1 '(]來源^

2 目·^…È console 78() Ocs!ont"e#ly !s source i7 !t eice i7

G ocs!ont"e#ly !s 19216511 !t sa

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 29/52

29<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Clonezilla *? ia D+& &ie

● `D+& &ie

x_±²³¢£¤

 – Î需Z¦§»ô需Z`_(*aq`±²³¢£¤ÝÞbù

● Do%nloa:

 – "tt://rblnc"cort%  cÇ

 – D+& lie <*O P (CD/D=D ) »šd zi P (*+ sXšWX )

● `

 – &ie CD

 – eQf±²³¢£¤g

 – hÇüOPìí!

 – fi=動±²³ *?

E i

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 30/52

30<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise =et"p Clonezilla =‡

=aˆe/‰e!tore i3age ˆia Clonezilla =‡ – =elect1in1client/Š"ltica!t

“!e Clonezilla liˆe on =‡

‰"n Clonezilla liˆe ˆia 2H‡

‹igger !ize hard1driˆe re!tore Œ2arted re!ize/create partition

•n1the1#lŽ:di! to di! di! to re3oˆe di!

jkf indow!: ‘‰‹>1winroll

jkf >in"’/“ni’

”dˆanced re!tore #or d"alboot

Clonezilla on “=‹ #la!h

Clonezilla >iˆe ‚ƒ„

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 31/52

31<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

-+ s 8T

比較 MBR GPT

名稱 Master Boot Record GUID Partition Table

可!"# $%&'() (*+ %unliited , base on -S )

.0!1234# *T (+ 5B

236789 :$T ;<$=B-aster +oot ecor

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 32/52

32<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

?@< > *ecure +oot

● ?@<

 – J´qjklÃD¡mni#ie ?'tensible @irm%are <nter#ace, ?@<n´Úàá–—IJOþ»來(oîIJ*IJlÃó!·pÃD¡»|+<O*·qrÓÐsqjklÃD¡Atu–vmO*TnÆwxîIJy÷zw1îIJ*W÷D¡s

● *ecure +oot

 – *ecure boot ?@< Oþ·´XF»{U|  <ntel }°·Oþ»~•é¢£¤€{íé‚s*ecure boot D}Z目·»é˃„…SpÃs|†‡ˆð·éîIJÇÈó‰•

ŠeQ»‹ŒLMÇÈ·程ÔŽ至îIJuvs

 – ‘’EË ?@< ·lû}Z“公”IJ來ñò—¾ð·îIJs&ÀÁ´à€”m lat#orm Eey». H n»y´à˜™”me'c"ane Eey». H?

H n»ñò·ÓðéîIJeQó‰»U|'Eš›mšœ|”›H公_Hn÷z

·žà8Ÿ¥·”¸¹¡»ôõv:ÿ¥·îIJ—¢Š *ecure boot 78|¾ðs

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 33/52

33<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

*ecure +oot 程£  P *olution

*olution – *0: Disable *ecure +oot in +<O*/?@<

 – *1: se buntu base am6. ersion Clonezilla!lie!http%//en!wi"ipedia!org/wi"i/<nified&E3tensible&7irmware&+nterface.!http%//freesf!tw/FpG8!http%//www!arthurtoday!com/.'/'/secure-boot!html6!<0De"7;3>e=

2!http%//msdn!microsoft!com/en-us/windows/hardware/br.12!asp3

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 34/52

3.<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

先…þÔWX

● ance @ormat Tec"noloy

 –

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 35/52

3<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

先…þÔWX

ìí¤¥·{¦¢J§¨©Yª«¬YX·®U»¯°q ?CC±Ÿ²Ÿ¸¹q³\»´µ¶·!¢·µìí¤¥{¦¸來·¹!

● é '56 LMc»ÿº»X¼½ÃľEk| .H+

¿YXPÐIJmå AT@* Æ e't3 Æ @*>等n·ÀEkÁ| .H+

● ~ 12byte YZ需ZÃ外 .0byte | ?CC±Ÿ!

● Ä.Ebyte

YZô需Z100byte

 – Å少 ?CC ·ÆÇ÷¦ ?CC±ŸøÈ

 – ÏÉ÷z .Ebyte YZ!»`先…þÔ„ùÊËÜ220byte

http://zh.wiipedia.org/wii/̇ÍÌÎÍÌÎÎ̇ÏÌÎ9Ì‹8̇<Ì”9Ì‹ĊÍÌ‹CÌÎ<̇ÍÌÎCÌÏ<

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 36/52

36<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

* $D先…þÔ„ ($D ance @ormat) WXE\

ance @ormatÐ

clone뢛]^s

● ance @ormat WX clone ÑÒõ ance @ormat ·WXÁÒõ]^

● ¢õ]^·ÓÔÂéÓWX (1608) ¦§ , cloneÔ來»

ÍGÑÕWX 1T($D1?*)

 – % alin vÖ+û

 – clonezilla > 手動調¶

"tt://rblnc"cort%/#ine!rint"Q at"R/#a;/14D+&4common/34$D4ance4@ormat4isE#a;K34$D4ance4@ormat4isE#a;

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 37/52

3L<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

56×Ø

● +oot loaer ÙØÔ :

 – $ino%s , $inL : ntlr/bootmr 

 – &inu' : 8rub1/2

● estore qù]^×Ø

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 38/52

35<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

estore sinle artition

● estore artition : sa1

● se 58 "ar rie , use source artition table

● o% to :

 – -oi#y artition table

 – aance arameters : !ics

 – estore one but boot #aile SS

Exercise

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 39/52

39<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise =et"p Clonezilla =‡

=aˆe/‰e!tore i3age ˆia Clonezilla =‡

 – =elect1in1client/Š"ltica!t

n1the1#lŽ:di! to di! di! to re3oˆe di!

“!e Clonezilla liˆe on =‡

‰"n Clonezilla liˆe ˆia 2H‡

‹igger !ize hard1driˆe re!tore

Œ2arted re!ize/create partition

jkf >in"’/“ni’ : "!e pre1r"n/po!t1r"n

jkf indow!: ‘‰‹>1winroll

”dˆanced re!tore #or d"alboot

Clonezilla on “=‹ #la!h

Clonezilla >iˆe ‚ƒ„

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 40/52

.0<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

f &inu' ó×Ø

● WÃ[Õ¥

● ÚÞ_H

 – Û動程ÔÜÇ

 – WÃ'(P

()● §Ý×● WXÆÄÅZrÞßà●

 – IJ¦全*pÃ● ˆLZóáâP (lo, root "istory)

● àám¦全áâP (%eb account/ass%)

 – -Ô›H

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 41/52

.1<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

f $ino%s ó×Ø

● WÃ[Õ¥

● ÚÞ_H

 – Û動程ÔÜÇ

 – *ysre

 – WÃ'(P

● ()

 – IJ¦全*pÃ

● ˆLZóáâP (lo)

àám¦全áâP (%eb account/ass%)

 – -Ô›H

● )#vÂ

 – D+&!%inroll

Exercise

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 42/52

.2<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise =et"p Clonezilla =‡

=aˆe/‰e!tore i3age ˆia Clonezilla =‡

 – =elect1in1client/Š"ltica!t

n1the1#lŽ:di! to di! di! to re3oˆe di!

“!e Clonezilla liˆe on =‡

‰"n Clonezilla liˆe ˆia 2H‡

‹igger !ize hard1driˆe re!tore

Œ2arted re!ize/create partition

jkf >in"’/“ni’ : "!e pre1r"n/po!t1r"n

jkf indow!: ‘‰‹>1winroll

”dˆanced re!tore #or d"alboot

Clonezilla on “=‹ #la!h

Clonezilla >iˆe ‚ƒ„

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 43/52

.3<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Clonezilla >iˆe

ãQÝ (Debian base) Âä(Ý /åæÝ;qrÝ (buntu base) Âä(Ý /åæÝ

● çXÝ (iso PÐ )

 – cÇ*»èé <*OPÐêÑçX片{ (¼ëZìêâNýP·ÓÔ»íVÄî»é

-* $ino%sc» Aero +urnin O-|V»$Zì FêâNOP 來ê{à iso

P )»•q&來s● *+ sXšsWXÝ (zi PÐ )

● WXÝ

 – 將Clonezilla lieWé´àïžõîIJíé·WX-

● ?Ý – 將Clonezilla lieWé ?¢£¤{來ðñ^–—透¥ ?()` Clonezilla

lie

● ò©ªÂ

 – "tt://clonezillanc"cort%/clonezilla!lie/

Þ[Õ

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 44/52

..<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Clonezilla &ie ÝÞ[Õ

差異  ä

Ý /

åæ

Ý

 r

Ý

-S baesd Debian>based Ubuntu>based

iso/?ip @A3

3C ( MB 3C3 ( MB

EFHJKLN % OQirare)

F E

$+ PU L

VW

$+ XL iso/?ip YVW

%-Z[IG\M$+]^)

VW%-Z[IG\M_+]^ and

-Z[IG\`+\G5Z5RI]^)

/ fLVW

+ XYVW , $+ XVW

Y

Exercise

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 45/52

.<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

Exercise =et"p Clonezilla =‡

=aˆe/‰e!tore/=elect1in1client i3age ˆia Clonezilla =‡

n1the1#lŽ:di! to di! di! to re3oˆe di! “!e Clonezilla liˆe on =‡/ ‰"n Clonezilla liˆe ˆia 2H‡

‹igger !ize hard1driˆe re!tore / Œ2arted re!ize/create partition

jkf >in"’/“ni’ : "!e pre1r"n/po!t1r"n

jkf indow!: ‘‰‹>1winroll

”dˆanced re!tore #or d"alboot

Clonezilla >iˆe ó

1. Save/restore disk via network fs: sshfs, samba

2. Save/restore partitions from local disk 

3. Create Clonezilla recover CD/DVD

4. install live into usb, hd

5. Customize Clonezilla live

6. Insert customized Clnezilla live into hd

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 46/52

 

åŸôõ

練習

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 47/52

.L<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

 練習

1.利用 dual-boot 印象檔,將其中的 Linux(sda5)! restore "#$%&中

'.利用 dual-boot 印象檔,將其中的 XP (sda1)

! restore "()%&中*+,-的/023456 sda1 27,8確9能:;確啟< Windows XP

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 48/52

 

‘‰‹>1winrollLM*bùD

http://drbl1winroll.nchc.org.tw/

http://www.drbl1winroll.org/ 

öâ

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 49/52

 

Clonezilla …†`

öâ

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 50/52

0<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

öâ● …†`Â Clonezilla *? /Clonezilla &ie

 – Clonezilla lie * Clonezilla *? (*erer ?ition) GH*LMDQ

 – Clonezilla bo' moe DQ

 – nicast, multicast, broacast clone DQ*RSTU

 – å÷ø™üýP-·WXrÞ

 – ? = Clonezilla lie ð

 – å÷ clonezilla lie usb sXšWX

 – ùZúûüýïÑõV´à Clonezilla lie Q

 – ‚„ Clonezilla lie

 – õÒõqùè Clonezilla &ieWÑWX-來eQ Q

 – “ irtualbo'來V Clonezillaã*åæ56

Aote

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 51/52

1<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

 Aote

● 至  te't console ^ root þÈ

 – rblam/iloerbl

● åÿZÕÖ帳ÞÆuÈ amin /0

 – e'ort &C4&&RC

 –

auser your acount7 – auser your account7 amin

● 至  8D- `´般`dþÈ

● 78()çw1至²

 –

auto et"1 – i#ace et"1 inet static

 – aress 1921651012.

 – netmasE 2220

Aote

7/17/2019 Clonezilla Tutorial.v13 (1)

http://slidepdf.com/reader/full/clonezilla-tutorialv13-1 52/52

2<ree =o#tware >ab C0C ?aiwanClonezilla 實務@A課程

 Aote

● "tt://rbnc"cort%

● Clonezilla lie `

 – sae/restore

 – Onet"e#ly

● ()芳鄰:19216516L11

 – at": s"are

 – aministrator/ 7

● Clonezilla lie ‚ƒ„

 – <nclue imae

 – <nclue %it"out imae, customize re!run

 – Debian lie temlet customize