How to Restore/Clone Boot Drives

From 45 Drives Technical Information Wiki
Jump to: navigation, search


Restoring Boot Drives

Prepare the Restore Media

Depending on what OS you are running on your computer here is the process preparing the media:

Linux:
Use the 'dd' command to write the image to the device (e.g dd if=/path/to/recovery_image.img of=/dev/sdx) Where x is the device name of the USB stick. Be sure to give the raw device not a partition.

If you are using a Ubuntu/Debian based distro you use USB-ImageWriter

 sudo apt-get install usb-imagewriter


Windows:
Use win32 disk imager: http://sourceforge.net/projects/win32diskimager/

Mac:
Use the ApplePi Baker: http://www.tweaking4all.com/hardware/raspberry-pi/macosx-apple-pi-baker/

Restore OS

1. Plug the USB stick with the appropriate OS images you want to install into a open USB port.

2. Turn on your system. You want to go into the BIOS first to force the system to from boot the USB stick.

Step0 BIOS.jpg

3. When the system boots into the Clonezilla boot menu, select the first option "Clonezilla live (Default settings, VGA 1024x768)"

Step1 RAMboot.jpg

4. Select your desired language and Keymap and the select "Start Clonezilla"

Step2 Language.jpg
Step3 keymap.jpg
Step4 startCZ.jpg


5. Select the option "device-image" then "local_dev"

Step5 devimage.jpg
Step6 whereisimage.jpg


6. Select second partition on the USB stick. Then select the top level directory. (It will be the only option)

Step7 partition2.jpg
Step8 choose dir.jpg

7. Choose the Beginner option, and then "restoredisk" FOR FREENAS INSTALLATION SELECT EXPERT AND SKIP TO STEP 14

Step9 beginner.jpg
Step10a restoredisk.jpg

8. At this step you will be choosing the image to place onto the disk. In the example pictured we are restoring redundant boot drives and have two images to choose from: Disk 1 and 2.
First you must pick the first image on the list, you will notice Disk 1 in the image name. Then you will select what device to put this image on, choose the first device available "sda"

Step11-Chooseimage.jpg
Step12 Choose dev.jpg

9. WAIT. An estimated time of completion will be visible on the screen.

Step13 wait.jpg

10. When this finishes you will presented with the screen pictured below.
If you are restoring a single boot drive select reboot and pull out the USB stick and you will boot into your freshly restored OS!
If you are restoring redundant disks select the option "rerun2"

Step14 rerun if redun.jpg

11. To complete the restore of the redundant boot drives, select the "skip" option.

Step15 dontmount.jpg

12. You will now be back at the "Beginner" Screen. Back track and redo Steps 7 through to 10 but this time around be sure to select "Disk2" as your source image and "sdb" as your destination device.
when this finishes reboot and remove the USB to boot into your freshly restored boot drives.

13. Due to the way Clonezilla works your redundant boot drives will not be synced once the imaging process is complete.
You must manually re-attach the drives. More instructions on how to do this to follow shorty.

14. FREENAS SPECIFIC INSTALLATION BEGINS HERE Select expert mode.

Expert.png

15. Select Restore Disk

Restore disk.png

16. Select the image you wish to burn, you will only have one image on your screen(FreeNAS)

Select image.png

17. Select the destination disk this should be a 128 GB SSD or larger

Select destination.png

18. Select j1 from the list as shown below. This will write the bootloader to the new install.

Select j1.png

19. Select the first option in the next screen.

Use partition table.png

20. Select check check image.

Check image.png

21. Select Do Nothing.

Do nothing.png

22. You now have to press enter and type the letter "y" for yes when prompted.

When the process has completed you will be given an option to shutdown.

Create Back Up of Boot Drives

1. Plug in USB stick with FAT partition into any open USB slot.

2. Turn on your system. You want to go into the BIOS to force the system to boot from the USB stick.

Step 1.jpg

3.When the system boots into the Clonezila boot menu, select the option to boot Clonezilla from RAM.

Step1 RAMboot.jpg

4.Select your desired language and Keymap and then "Start Clonezilla".

Step2 Language.jpg
Step3 keymap.jpg
Step 5.jpg

5. Select the option "device-image", and then "local_dev".

Step 6.jpg
Step 7.jpg

6. Select the second partition on the USB stick, then select the top level directory.

Step 8.jpg
Step 9.jpg

7. Choose the Beginner option, and then "savedisk".

Step 10.jpg
Step 11.jpg

8. Pick a name for your Back up disk, and chose the boot drive you want to back up.

Step 12.jpg
Step 13.jpg

9. Choose to Skip checking/repairing source file system.

Step 14.jpg

10. Choose to check if the saved image is restorable, and Not to encrypt the image.

Step 15.jpg
Step 16.jpg

11. WAIT. An estimated time of completion will be visible on the screen.

Step 17.jpg