在此介紹Clonezilla安裝到外接硬碟上,只要把外接硬碟裝上去,用這個硬碟開機,再把系統整個備份到外接樣碟上面即可。這種方法只要外接一個硬碟就可以備份
做法很簡單,只要把外接硬碟分割成兩個區域:
- Clonezilla-live區(~200MB):這區用來開機與放置Clonezilla系統
- Clonezilla-backup區:這區用來放置備份映像檔
以下的做法是在Linux上面完成,參考《GNU/Linux Method B: 手動》這篇文章
Step 1:下載Clonezilla的zip檔案
到Clonezilla的載點,下載 穩定-替代版 - 20160210-wily ,用checksum確認下載無誤$ md5sum clonezilla-live-20160210-wily-amd64.zip
78d1998cd9223c793316d669e6d23a24 clonezilla-live-20160210-wily-amd64.zip
Step 2:分割要用到的硬碟
在此硬碟用fdisk分割成兩區,Clonezilla-live用256MB放在/dev/sdc1分割區上,剩下的空間/dev/sdc2則是備份存放區。此處的外接硬碟是 /dev/sdc$ sudo fdisk -l /dev/sdc
Disk /dev/sdc: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00036e21
Device Boot Start End Blocks Id System
/dev/sdc1 2048 526335 262144 b W95 FAT32
/dev/sdc2 526336 1465147391 732310528 83 Linux
將Clonezilla-live區做成FAT32的檔案格式,並掛載到/mnt
$ sudo mkfs.vfat -F 32 /dev/sdc1
mkfs.fat 3.0.26 (2014-03-07)
$ sudo mount /dev/sdc1 /mnt
Step 3:將Clonezilla-live安裝到硬碟上面
首先將資料解壓縮到Clonezilla-live區域
$ sudo unzip clonezilla-live-20160210-wily-amd64.zip -d /mnt/
Archive: clonezilla-live-20160210-wily-amd64.zip
inflating: /mnt/GPL
creating: /mnt/syslinux/
inflating: /mnt/syslinux/libutil.c32
inflating: /mnt/syslinux/chain.c32
...
...
inflating: /mnt/live/filesystem.packages
inflating: /mnt/live/memtest
inflating: /mnt/live/filesystem.squashfs
$ sudo bash ./utils/linux/makeboot.sh /dev/sdc1
This command will install MBR and syslinux bootloader on this machine
...
...
A filesystem supporting Unix file mode for syslinux is required. Copying syslinux from FAT to /tmp/...
'/mnt/utils/linux/syslinux' -> '/tmp/syslinux_tmp.5rAOtI/syslinux'
Running: /tmp/syslinux_tmp.5rAOtI/syslinux -d syslinux -f -i /dev/sdc1
done!
//NOTE// If your USB flash drive fails to boot (maybe buggy BIOS), try to use "syslinux -d syslinux -fs /dev/sdc1", i.e. running with "-fs".
這樣就做好了,直接用這個外接硬碟開機,再按照螢幕上面的說明就可以把系統備份到這個外接硬碟上面了~
_EOF_
沒有留言:
張貼留言