2014年3月21日 星期五

自製Ubuntu開機 + Clonezilla 備份還原USB碟

只是自己的一些筆記....人老了...總是作完就忘了...Orz
寫下來,  以後比較好找...(明明就是懶的再爬一次文...XD)

1. make a bootable ubuntu pen drive.
    (1) download the ubuntu iso file. http://www.ubuntu.com/download
    (2) download the install tool
            a. In windows, you could download the tools, "Universal USB installer".
                http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/   (or google "usb installer")
                It is a very useful tool. You could use it to create a bootable ubuntu USB pen drive, a bootable clonezallia USB pen drive, and so on.
                In the official web page, it will guide you how to install the iso to your pen drive.
            b. In ubuntu, you could use "startup disk creator" to make a bootable pen drive.
                Here is the detail steps. http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-ubuntu


2. Copy the clonezilla file system to your pen drive.
   (ref. http://kinmenalex.blogspot.tw/2011/08/ubuntu-usb-clonezilla.html)
    (1) download the clonezilla file system (zip file).
    (2) copy the file system of clonezilla to your bootable ubuntu pen drive.
             a. create /cloneusb/686
             b. extract the file system of clonezilla to /cloneusb/686/.
    (3) edit the booting menu
             a. edit /syslinux/txt.cfg. Add a label for clonezilla as following.
                =======================================================
                default live
                label live
                  menu label ^Try Ubuntu without installing
                  kernel /casper/vmlinuz.efi
                  append  file=/cdrom/preseed/ubuntu.seed noprompt cdrom-detect/try-usb=true persistent boot=casper initrd=/casper/initrd.lz quiet splash --

                label clonezilla-live-1.2.9-19-i686-pae menu label clonezilla-live kernel /cloneusb/686/live/vmlinuz append initrd=/cloneusb/686/live/initrd.img boot=live config noswap nolocales edd=on live-media-path=/cloneusb/686/live/ nomodeset noprompt ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="NONE" ocs_live_batch="no" ocs_lang="zh_TW.UTF-8" vga=788 toram=filesystem.squashfs ip=frommedia nosplash  

                label live-install
                  menu label ^Install Ubuntu
                  kernel /casper/vmlinuz.efi
                  append  file=/cdrom/preseed/ubuntu.seed noprompt cdrom-detect/try-usb=true persistent boot=casper only-ubiquity initrd=/casper/initrd.lz quiet splash --

                label check
                  menu label ^Check disc for defects
                  kernel /casper/vmlinuz.efi
                  append  noprompt cdrom-detect/try-usb=true persistent                                 boot=casper integrity-check initrd=/casper/initrd.lz quiet splash --

                label memtest
                  menu label Test ^memory
                  kernel /install/mt86plus

                label hd
                  menu label ^Boot from first hard disk
                  localboot 0x80
                =======================================================
     For now, you could reboot the system to try if this pendrive is working.

3. setup the clonezilla images to this pen drive
    (1) copy the clonezilla images to this pen drive
          Just find a place you like to store them. I put them under /cloneusb/686/home/partimg/.
    (2) verify the images checksums - "MD5sums"

4. verify clonezilla images in clonezilla system.


    

沒有留言:

張貼留言