Version 10 vs 11
Version 10 vs 11
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 -i
```
4. Mount tinkerbell
```lang=bash
mount tinkerbell.engr.unr.edu:/exports/netboot/root/var/local /mnt
```
5. Go to mount
```lang=bash
cd /mnt/clone
```
6. Run clone script.
```lang=bash
./clone.py --part_type mbr --disk /dev/sda
```
7. 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
```
5. cd into cloning folder
```
cd /mnt/clone
```
6. copy partion table onto drive
```
dd if=mbr/mbr.bin of=/dev/sda
```
7. Copy over boot partition
```
dd if=ecc-mbr-p1.img of=/dev/sda1 bs=4M
```
8. use parted on drive
```
sudo parted /dev/sda
resizepart 2
477GB or size of drive found by using fdisk -l
```
9. Copy over root partiton
```
ntfsclone -r -O /dev/sda2 common/ecc-qemu-p4.ntfs
```
10. Resize the partition
```
ntfsresize -ff
```
11. Reboot! ๐
```
reboot
```
==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/clone
```
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
```
10. Reboot! ๐
```
$ reboot
```
==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 -isu
```
4. Mount tinkerbellcd into cloning folder
```lang=bash
mount tinkerbell.engr.unr.edu:/exports$ cd /netboot/root/var/local /mntimages/clone
```
5. Go to mountRun clone script.
```lang=bash
cd /mnt/clone$ ./clone.py --part_type mbr --disk /dev/sda
```
6. Run clone script.Reboot!
```lang=bash
./clone.py --part_type mbr --disk /dev/sda
```
7. 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
```
5. cd into cloning folder
```lang=bash
cd /mnt$ cd /netboot/images/clone
```
65. copy partion table onto drive
```lang=bash
$ dd if=mbr/mbr.bin of=/dev/sda
```
76. Copy over boot partition
```lang=bash
$ dd if=mbr/ecc-mbr-p1.img of=/dev/sda1 bs=4M
```
87. use parted on drive
```lang=bash
$ sudo parted /dev/sda
sudo parted /dev/sda$ resizepart 2
resizepart 2$ 325GB #if multicasting, otherwise use the size of the drive (found by using fdisk -l)
477GB or size of drive found by using fdisk -l$ quit
```
98. Copy over root partiton
```lang=bash
$ ntfsclone -r -O /dev/sda2 common/ecc-qemu-p4.ntfs
```
109. Resize the partition
```lang=bash
$ ntfsresize -ff
```
1110. Reboot! ๐
```
$ reboot
```