Version 6 vs 7
Version 6 vs 7
Edits
Edits
- Edit by • amcintyre, Version 7
- Nov 20 2020 11:32 AM
- Edit by • amcintyre, Version 6
- Nov 20 2020 11:32 AM
« Previous Change | Most Recent Change |
Edit Older Version 6... | Edit Current Version 7... |
Content Changes
Content Changes
The following steps will make use of Netboot to install Windows. If the computer is not able to Netboot, refer to:
https://ph.engr.unr.edu/w/ecc/cloning/cloning_live_disk/
===General imaging process
1. Boot the machine. If machine does not automatically boot on the network, the boot order will need to be changed in BIOS. (Press F12 on a Dell system)
2. Select Onboard NIC(IPV4)
3. Select Debian Netboot
4. Login with ecc-admin.
5. Applications -> Utilities -> Terminal
6. Get sudo privileges by typing:
```lang=bash
$ sudo -i
```
7. Check list of drives connected to system:
```lang=bash
$ lsblk
```
After choosing which drive to install on, run ONE of the scripts shown below depending on what the computer needs.
===Clean image install (with no engineering software)
8a. Run clone_base_ng.sh
```lang=bash
$ ./clone_base_ng.sh -d $DRIVE
```
===ECC image install (with all engineering software)
8b. Run clone.sh
```lang=bash
$ ./clone.sh -d $DRIVE
```
9. Wait until it reaches 100%
===Cleaning up
A couple of extra commands need to be run before rebooting. The disk will be in a state where it's not properly utilizing all available space, so we need to fix that.
10. Once it reaches 100%, run sync to force-write all cached data to disk. This ensures that all data was properly written to disk.
```lang=bash
$ sync
```
11. Run the command `parted`
12. Inside parted, run `print`. It will ask you if you would like to fix the partitions. Type `fix` to accept.
13. Afterwards, you should see information about the drive, as well as the partitions on it. Note the total size of the device and the partition number of the partition with the flag `msftdata`. This partition is the main data partition for Windows.
14. Enter `resizepart $PARTITION_NUMBER`. The `$PARTITION_NUMBER` is the number of the partition detailed in the previous step. i.e.:
```lang=bash
resizepart 4 100%
```
15. Enter the total size of the drive
16. Type `quit` to exit the parted application.
17. Reboot the machine into Windows.
18. Open an elevated command prompt (run as administrator).
19. Enter `diskpart`.
20. DiskPart should start. This tool is used to configure volumes/partitions.
21. Type `list vol` to show a list of volumes on the system.
22. Look for the volume that has the ltr (letter) C. You're gonna want to expand the filesystem on this volume, since this is where Windows is located. Note the number of this volume.
23. Type `select $VOLUME_NUMBER` to select the previously mentioned volume.
24. Enter `extend filesystem`. This will allow Windows to fully utilize the space available on disk.
25. Enter `exit` to close DiskPart.
The following steps will make use of Netboot to install Windows. If the computer is not able to Netboot, refer to:
https://ph.engr.unr.edu/w/ecc/cloning/cloning_live_disk/
===General imaging process
1. Boot the machine. If machine does not automatically boot on the network, the boot order will need to be changed in BIOS. (Press F12 on a Dell system)
2. Select Onboard NIC(IPV4)
3. Select Debian Netboot
4. Login with ecc-admin.
5. Applications -> Utilities -> Terminal
6. Get sudo privileges by typing:
```lang=bash
$ sudo -i
```
7. Check list of drives connected to system:
```lang=bash
$ lsblk
```
After choosing which drive to install on, run ONE of the scripts shown below depending on what the computer needs.
===Clean image install (with no engineering software)
8a. Run clone_base_ng.sh
```lang=bash
$ ./clone_base_ng.sh -d $DRIVE
```
===ECC image install (with all engineering software)
8b. Run clone.sh
```lang=bash
$ ./clone.sh -d $DRIVE
```
9. Wait until it reaches 100%
===Cleaning up
A couple of extra commands need to be run before rebooting. The disk will be in a state where it's not properly utilizing all available space, so we need to fix that.
10. Once it reaches 100%, run sync to force-write all cached data to disk. This ensures that all data was properly written to disk.
```lang=bash
$ sync
```
11. Run the command `parted`
12. Inside parted, run `print`. It will ask you if you would like to fix the partitions. Type `fix` to accept.
13. Afterwards, you should see information about the drive, as well as the partitions on it. Note the total size of the device and the partition number of the partition with the flag `msftdata`. This partition is the main data partition for Windows.
14. Enter `resizepart $PARTITION_NUMBER`. The `$PARTITION_NUMBER` is the number of the partition detailed in the previous step. i.e.:
```lang=bash
resizepart 4
```
15. Enter the total size of the drive
16. Type `quit` to exit the parted application.
17. Reboot the machine into Windows.
18. Open an elevated command prompt (run as administrator).
19. Enter `diskpart`.
20. DiskPart should start. This tool is used to configure volumes/partitions.
21. Type `list vol` to show a list of volumes on the system.
22. Look for the volume that has the ltr (letter) C. You're gonna want to expand the filesystem on this volume, since this is where Windows is located. Note the number of this volume.
23. Type `select $VOLUME_NUMBER` to select the previously mentioned volume.
24. Enter `extend filesystem`. This will allow Windows to fully utilize the space available on disk.
25. Enter `exit` to close DiskPart.
The following steps will make use of Netboot to install Windows. If the computer is not able to Netboot, refer to:
https://ph.engr.unr.edu/w/ecc/cloning/cloning_live_disk/
===General imaging process
1. Boot the machine. If machine does not automatically boot on the network, the boot order will need to be changed in BIOS. (Press F12 on a Dell system)
2. Select Onboard NIC(IPV4)
3. Select Debian Netboot
4. Login with ecc-admin.
5. Applications -> Utilities -> Terminal
6. Get sudo privileges by typing:
```lang=bash
$ sudo -i
```
7. Check list of drives connected to system:
```lang=bash
$ lsblk
```
After choosing which drive to install on, run ONE of the scripts shown below depending on what the computer needs.
===Clean image install (with no engineering software)
8a. Run clone_base_ng.sh
```lang=bash
$ ./clone_base_ng.sh -d $DRIVE
```
===ECC image install (with all engineering software)
8b. Run clone.sh
```lang=bash
$ ./clone.sh -d $DRIVE
```
9. Wait until it reaches 100%
===Cleaning up
A couple of extra commands need to be run before rebooting. The disk will be in a state where it's not properly utilizing all available space, so we need to fix that.
10. Once it reaches 100%, run sync to force-write all cached data to disk. This ensures that all data was properly written to disk.
```lang=bash
$ sync
```
11. Run the command `parted`
12. Inside parted, run `print`. It will ask you if you would like to fix the partitions. Type `fix` to accept.
13. Afterwards, you should see information about the drive, as well as the partitions on it. Note the total size of the device and the partition number of the partition with the flag `msftdata`. This partition is the main data partition for Windows.
14. Enter `resizepart $PARTITION_NUMBER`. The `$PARTITION_NUMBER` is the number of the partition detailed in the previous step. i.e.:
```lang=bash
resizepart 4 100%
```
15. Enter the total size of the drive
16. Type `quit` to exit the parted application.
17. Reboot the machine into Windows.
18. Open an elevated command prompt (run as administrator).
19. Enter `diskpart`.
20. DiskPart should start. This tool is used to configure volumes/partitions.
21. Type `list vol` to show a list of volumes on the system.
22. Look for the volume that has the ltr (letter) C. You're gonna want to expand the filesystem on this volume, since this is where Windows is located. Note the number of this volume.
23. Type `select $VOLUME_NUMBER` to select the previously mentioned volume.
24. Enter `extend filesystem`. This will allow Windows to fully utilize the space available on disk.
25. Enter `exit` to close DiskPart.