Version 10 vs 30
Version 10 vs 30
Edits
Edits
- Edit by • amcintyre, Version 30
- Nov 5 2020 11:57 AM
- Edit by lanle, Version 10
- Jul 16 2018 3:24 PM
Edit Older Version 10... | 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. 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
==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