Version 9 vs 10
Version 9 vs 10
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
```
== 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. 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 -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
```