Page MenuHomePhabricator

Cloning
Updated 2,103 Days AgoPublic

Version 14 of 30: You are viewing an older version of this document, as it appeared on Aug 15 2018, 12:38 PM.

Cloning a New Drive

  1. Restart the and machine and boot it to PXE Ubuntu.
  2. Login with ecc-admin.
  3. Get sudo privillages (Password at K11).
$ sudo su
  1. cd into cloning folder
$ cd /netboot/images/
  1. Run clone script.
$ ./clone.py --part_type mbr --disk /dev/sda
  1. Reboot!
$ reboot

Manually Cloning a New Drive

  1. Restart the and machine and boot it to PXE Ubuntu.
  2. Login with ecc-admin.
  3. Get sudo privillages (Password at K11).
  4. cd into cloning folder
$ cd /netboot/images/clone
  1. copy partion table onto drive
$ dd if=mbr/mbr.bin of=/dev/sda
  1. Copy over boot partition
$ dd if=mbr/ecc-mbr-p1.img of=/dev/sda1 bs=4M
  1. use parted on drive
$ sudo parted /dev/sda
$ resizepart 2
$ 325GB #if multicasting, otherwise use the size of the drive (found by using fdisk -l)
$ quit
  1. Copy over root partiton
$ ntfsclone -r -O /dev/sda2 common/ecc-qemu-p4.ntfs
  1. Resize the partition
$ ntfsresize -ff /dev/sda2
  1. Reboot! 😄
$ reboot
Last Author
igrant
Last Edited
Aug 15 2018, 12:38 PM

Event Timeline

apasinski edited the content of this document. (Show Details)
apasinski edited the content of this document. (Show Details)
mabellatan edited the content of this document. (Show Details)
mabellatan edited the content of this document. (Show Details)
amcintyre changed the title from Cloning to Cloning using Netboot.Nov 5 2020, 11:52 AM
amcintyre edited the content of this document. (Show Details)
amcintyre changed the title from Cloning to Cloning using Netboot.Nov 5 2020, 11:55 AM
amcintyre edited the content of this document. (Show Details)
amcintyre published a new version of this document.
amcintyre changed the title from Cloning using Netboot to Cloning.Nov 5 2020, 11:57 AM
amcintyre edited the content of this document. (Show Details)