Version 7 vs 8
Version 7 vs 8
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. Go to root home directory
```lang=bash
cd /root/
```
5. Run clone script.
```lang=bash
./clone.sh
```
== 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-qemu-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 -i
```
4. Go to root home directory
```lang=bash
cd /root/
```
5. Run clone script.
```lang=bash
./clone.sh
```
== 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 -i
```
4. Go to root home directory
```lang=bash
cd /root/
```
5. Run clone script.
```lang=bash
./clone.sh
```
== 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-qemu-p1mbr-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
```