Version 14 vs 30
Version 14 vs 30
Edits
Edits
- Edit by • amcintyre, Version 30
- Nov 5 2020 11:57 AM
- Edit by • igrant, Version 14
- Aug 15 2018 12:38 PM
Edit Older Version 14... | Edit Current Version 30... |
Content Changes
Content Changes
==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).
```lang=bash
$ sudo su
```
4. cd into cloning folder
```lang=bash
$ cd /netboot/images/
```
5. Run clone script.
```lang=bash
$ ./clone.py --part_type mbr --disk /dev/sda
```
6. Reboot!
```lang=bash
$ 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).
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
==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).
```lang=bash
$ sudo su
```
4. cd into cloning folder
```lang=bash
$ cd /netboot/images/
```
5. Run clone script.
```lang=bash
$ ./clone.py --part_type mbr --disk /dev/sda
```
6. Reboot!
```lang=bash
$ 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).
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