Version 8 vs 30
Version 8 vs 30
Edits
Edits
- Edit by • amcintyre, Version 30
- Nov 5 2020 11:57 AM
- Edit by • igrant, Version 8
- Jul 2 2018 2:25 PM
Edit Older Version 8... | 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 -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
==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