Page MenuHomePhabricator

Cloning using Netboot
Updated 1,417 Days AgoPublic

The following steps will make use of Netboot to install Windows. If the computer is not able to Netboot, refer to:
https://ph.engr.unr.edu/w/ecc/cloning/cloning_live_disk/

General imaging process

  1. Boot the machine. If machine does not automatically boot on the network, the boot order will need to be changed in BIOS. (Press F12 on a Dell system)
  2. Select Onboard NIC(IPV4)
  3. Select Debian Netboot
  4. Login with ecc-admin.
  5. Applications -> Utilities -> Terminal
  6. Get sudo privileges by typing:
$ sudo -i
  1. Check list of drives connected to system:
$ lsblk

After choosing which drive to install on, run ONE of the scripts shown below depending on what the computer needs.

Clean image install (with no engineering software)

8a. Run clone_base_ng.sh

$ ./clone_base_ng.sh -d $DRIVE

ECC image install (with all engineering software)

8b. Run clone.sh

$ ./clone.sh -d $DRIVE
  1. Wait until it reaches 100%

Cleaning up

A couple of extra commands need to be run before rebooting. The disk will be in a state where it's not properly utilizing all available space, so we need to fix that.

  1. Once it reaches 100%, run sync to force-write all cached data to disk. This ensures that all data was properly written to disk.
$ sync
  1. Run the command parted
  1. Inside parted, run print. It will ask you if you would like to fix the partitions. Type fix to accept.
  1. Afterwards, you should see information about the drive, as well as the partitions on it. Note the total size of the device and the partition number of the partition with the flag msftdata. This partition is the main data partition for Windows.
  1. Enter resizepart $PARTITION_NUMBER. The $PARTITION_NUMBER is the number of the partition detailed in the previous step. i.e.:
resizepart 4
  1. Enter the total size of the drive
  1. Type quit to exit the parted application.
  1. Reboot the machine into Windows.
  1. Open an elevated command prompt (run as administrator).
  1. Enter diskpart.
  1. DiskPart should start. This tool is used to configure volumes/partitions.
  1. Type list vol to show a list of volumes on the system.
  1. Look for the volume that has the ltr (letter) C. You're gonna want to expand the filesystem on this volume, since this is where Windows is located. Note the number of this volume.
  1. Type select $VOLUME_NUMBER to select the previously mentioned volume.
  1. Enter extend filesystem. This will allow Windows to fully utilize the space available on disk.
  1. Enter exit to close DiskPart.
Last Author
amcintyre
Last Edited
Nov 20 2020, 11:32 AM

Event Timeline

amcintyre changed the title from Cloning Netboot to Cloning using Netboot.Nov 5 2020, 11:58 AM
amcintyre edited the content of this document. (Show Details)
amcintyre created this object.
amcintyre edited the content of this document. (Show Details)