diff --git a/CreatingBootMedia.md b/CreatingBootMedia.md new file mode 100644 index 0000000..1103b32 --- /dev/null +++ b/CreatingBootMedia.md @@ -0,0 +1,34 @@ +# How to create an install media +## From Windows +1. Install [rufus](https://rufus.ie) +2. Select the desired device **ensure it is the correct device, all data will be DELETED** +3. On the right side click `SELECT` and select the desired .iso file +4. Re-verify correct device and click `START` +Note, for linux iso files select dd mode when prompted. + +## From Linux +### For linux .iso +1. use `lsblk` or other methods to determine correct device, such as `sda` +2. **Ensure it is the correct device, all data will be DELETED** +3. Ensure the device is not mounted +4. run `sudo pv -Y -o /dev/sda /path/to/iso` where `sda` is the desired storage device + +### For Windows install .iso +1. use `lsblk` or other methods to determine correct device, such as `sda` +2. **Ensure it is the correct device, all data will be DELETED** +3. Ensure the device is not mounted +4. run `sudo wipefs -a /dev/sda` where sda is the desired device **all data will be deleted** +5. Use a partition tool such as `cfdisk` to create 2 partitions, the first one will be 2GB big, the other will use the rest of the space. +6. Assuming the disk is sda (replace to match yours) run + - `sudo mkfs.fat -F 32 /dev/sda1` + - `sudo mkfs.exfat /dev/sda2` exfat-utils may need to be installed +7. Mount the iso file to access it + 1. `sudo mkdir /media/windows-iso` + 2. `sudo mount /path/to/iso /media/windows-iso` +8. Mount both partitions + 1. `sudo mkdir /media/win-boot && sudo mkdir /media/win-data` + 2. `sudo mount /dev/sda1 /media/win-boot && sudo mount /dev/sda2 /media/win-data` +9. Copy everything from `/media/windows-iso` **except** for `sources` folder to `/media/win-boot` +10. Create a `sources` in `/media/win-boot` and copy over `/media/windows-iso/sources/boot.wim` into it. +11. Copy everything from `/media/windows-iso/` into `/media/win-data` +12. Unmount everything, USB should now function as a windows install media