Version 22 vs 23
Version 22 vs 23
Edits
Edits
- Edit by • mabellatan, Version 23
- Sep 22 2020 8:24 AM
- Edit by • igrant, Version 22
- Sep 30 2019 4:25 PM
« Previous Change | Next Change » |
Edit Older Version 22... | Edit Older Version 23... |
Content Changes
Content Changes
==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).
```lang=bash
$ sudo -i
```
4. cd into cloning folder
```lang=bash
$ cd /netboot/images/clone
```
5. Run clone script.
```lang=bash
$ ./clone.py --part-type mbr --disk /dev/sda
```
6. Reboot!
```lang=bash
$ reboot
```
7. Now in windows login with ecc-admin
8. On the desktop is a script called activate_labview double click it
9. Join it to the domain
10. open a cmd prompt and run
```
gpupdate /force
```
---
== 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).
5. cd into cloning folder
```lang=bash
$ cd /netboot/images/clone
```
5. copy partion table onto drive
```lang=bash
$ dd if=mbr/mbr.bin of=/dev/sda
```
6. Copy over boot partition
```lang=bash
$ dd if=mbr/ecc-mbr-p1.img of=/dev/sda1 bs=4M
```
7. use parted on drive
```lang=bash
$ sudo parted /dev/sda
$ resizepart 2
$ 325GB #if multicasting, otherwise use the size of the drive (found by using fdisk -l)
$ quit
```
8. Copy over root partiton
```lang=bash
$ ntfsclone -r -O /dev/sda2 common/ecc-qemu-p4.ntfs
```
9. Resize the partition
```lang=bash
$ ntfsresize -ff /dev/sda2
```
10. Reboot! 😄
```
$ reboot
```
==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).
```lang=bash
$ sudo -i
```
4. Run clone_base_ng.sh
```lang=bash
$ ./clone_base_ng.sh -d /dev/sda
```
5. Wait till it reaches 100%
```
6. Once it reaches 100%, reboot!
```lang=bash
$ reboot
```
7. Login with ecc-admin
==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).
```lang=bash
$ sudo -i
```
4. cd into cloning folder
```lang=bash
$ cd /netboot/images/clone
```
5. Run clone script.
```lang=bash
$ ./clone.py --part-type mbr --disk /dev/sda
```
6. Reboot!
```lang=bash
$ reboot
```
7. Now in windows login with ecc-admin
8. On the desktop is a script called activate_labview double click it
9. Join it to the domain
10. open a cmd prompt and run
```
gpupdate /force
```
---
== 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).
5. cd into cloning folder
```lang=bash
$ cd /netboot/images/clone
```
5. copy partion table onto drive
```lang=bash
$ dd if=mbr/mbr.bin of=/dev/sda
```
6.Run clone_base_ng.sh Copy over boot partition
```lang=bash
$ dd if=mbr/ecc-mbr-p1.img of=$ ./clone_base_ng.sh -d /dev/sda1 bs=4M
```
75. use parted on drive
```lang=bash
$ sudo parted /dev/sda
$ resizepart 2
$ 325GB #if multicasting,Wait till it reaches 100% otherwise use the size of the drive (found by using fdisk -l)
$ quit
```
86. Copy over root partiton
```lang=bash
$ ntfsclone -r -O /dev/sda2 common/ecc-qemu-p4.ntfs
```Once it reaches 100%, reboot!
9. Resize the partition
```lang=bash
$ ntfsresize -ff /dev/sda2
```
10. Reboot! 😄
```
$ reboot
```
7. Login with ecc-admin