Page MenuHomePhabricator

Cloning
Updated 1,699 Days AgoPublic

Version 21 of 30: You are viewing an older version of this document, as it appeared on Sep 23 2019, 1:49 PM.

Cloning a Drive

  1. Restart the and machine and boot it to Ubuntu Netboot
  2. Login with ecc-admin.
  3. Get sudo privillages (Password at K30).
$ sudo -i
  1. cd into cloning folder
$ cd /netboot/images/clone
  1. Run clone script.
$ ./clone.py --part-type mbr --disk /dev/sda
  1. Reboot!
$ reboot
  1. Now in windows login with ecc-admin
  2. On the desktop is a script called activate_labview double click it
  3. Join it to the domain
  4. open a cmd prompt and run
gpupdate /force
  1. In C:\ECC there is a file called SEMPrinters, double click on it and spam next ---

Manually Cloning a 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
Sep 23 2019, 1:49 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)