Page MenuHomePhabricator

Cloning
Updated 2,133 Days AgoPublic

Version 10 of 30: You are viewing an older version of this document, as it appeared on Jul 16 2018, 3:24 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 -i
  1. Mount tinkerbell
mount tinkerbell.engr.unr.edu:/exports/netboot/root/var/local /mnt
  1. Go to mount
cd /mnt/clone
  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. Mount tinkerbell if it is not mounted
mount tinkerbell.engr.unr.edu:/exports/netboot/root/var/local /mnt
  1. cd into cloning folder
cd /mnt/clone
  1. copy partion table onto drive
dd if=mbr/mbr.bin of=/dev/sda
  1. Copy over boot partition
dd if=ecc-mbr-p1.img of=/dev/sda1 bs=4M
  1. use parted on drive
sudo parted /dev/sda
resizepart 2
477GB or size of drive found by using fdisk -l
  1. Copy over root partiton
ntfsclone -r -O /dev/sda2 common/ecc-qemu-p4.ntfs
  1. Resize the partition
ntfsresize -ff
  1. Reboot! 😄
reboot
Last Author
lanle
Last Edited
Jul 16 2018, 3:24 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)