Page MenuHomePhabricator

Netboot Imaging
Updated 2,461 Days AgoPublic

Version 1 of 3: You are viewing an older version of this document, as it appeared on Aug 21 2017, 10:01 AM.

#Zero out drive
ansible labd_linux -m shell -u root -a "dd if=/dev/zero of=/dev/sda bs=1M count=1024"

#Copy MBR
ansible labd_linux -m shell -u root -a "dd if=/var/local/ecc/mbr.bin of=/dev/sda bs=512 count=1"

#Sanity Check
ansible labd_linux -m shell -u root -a "fdisk -l /dev/sda"

#Copy partition 1
ansible labd_linux -m shell -u root -a "ntfsclone --restore-image --overwrite /dev/sda1 /var/local/ecc/ecc-p1.img"

#Copy partition 2
ansible labd_linux -m shell -u root -a "ntfsclone --restore-image --overwrite /dev/sda2 /var/local/ecc/ecc-p2.img"
Last Author
newellz2
Last Edited
Aug 21 2017, 10:01 AM