1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300
|
.. _usb_storage_initialization:
(optional) Initialize USB Storage
=================================
This section will describe how format the USB storage drive and put the BusKill software on it.
.. note::
The BusKill software cannot run on the USB drive. It must be run from your computer.
As such, this is an **optional** step. It's documented here as a guide for how Alt Shift International prepares the USB Storage Drives when selling BusKill kits to customers. Having the software on the USB drive simply makes it easier for the end-user (so they can just copy the software from the USB drive to their computer instead of downloading it from the Internet).
If you're building a BusKill cable for your own use, you should probably **skip this step and just** :ref:`Download the app <download_app>`.
Windows 10
----------
Step 1: Assemble Cable
^^^^^^^^^^^^^^^^^^^^^^
If you haven't yet, :ref:`assemble the BusKill cable <hardware_assembly>`
Step 2: Plug Into Computer
^^^^^^^^^^^^^^^^^^^^^^^^^^
Plug the assembled BusKill Cable (with the USB drive attached *through* the Magnetic breakaway) into your computer
.. figure:: /images/buskill_usb_storage_plug_in.jpg
:alt: picture showing the fully-assembled BusKill cable with the USB Storage Drive connected to the magnetic breakaway connected to a laptop's USB port
:align: center
:target: ../_images/buskill_usb_storage_plug_in.jpg
.. note:: By plugging in the USB Storage Drive into the computer *via* the magnetic breakaway cable (as opposed to plugging the USB Storage Drive directly into the machine), you also verify the functionality of the cable's pinout.
.. _format_usb_drive:
Step 3: Format
^^^^^^^^^^^^^^
Open Windows Explorer (Start -> File Explorer)
.. figure:: /images/buskill_usb_storage_win_open_file_explorer.png
:align: center
Click on "This PC"
.. figure:: /images/buskill_usb_storage_win_click_this_pc.png
:align: center
Under ``Devices and drives``, right-click on the USB drive and choose ``Format``
.. figure:: /images/buskill_usb_storage_win_click_format.png
:align: center
.. warning::
Make absolutely sure you've selected the correct drive!!
If you select the **wrong drive**, it may result in **irrevocable deletion of all your data!**
If you're not sure, unplug the BusKill cable and plug it back in again. The drive will disappear and reappear. **Make absolutely sure you're choosing the BusKill USB Storage Drive** before proceeding with the format.
In the new window:
#. Set the ``File system`` to ``FAT32``
#. Leave the ``Allocation unit size`` at the default ``4096 bytes``
#. For ``Volume label``, type ``BusKill``
#. Leave the ``Quick Format`` option checked
#. Click ``Start``
.. figure:: /images/buskill_usb_storage_win_format_options.png
:align: center
.. note::
Make sure the ``Volume label`` is ``BusKill`` with an upper-case ``B`` and ``K`` -- not ``Buskill`` nor ``buskill``.
Double-check that you've selected the **correct drive** before clicking ``OK`` in the WARNING prompt. If you proceed with formatting the wrong drive, it will immediately lead to **loss of all your data** on that drive.
.. figure:: /images/buskill_usb_storage_win_format_warning.png
:align: center
After the format completes, close the windows.
.. figure:: /images/buskill_usb_storage_win_format_complete.png
:align: center
In the File Explorer, you should now see a drive named ``BusKill``
.. figure:: /images/buskill_usb_storage_win_this_pc_now_says_buskill_label_on_drive.png
:alt: screenshot shows the USB Drive under "This PC" is named "BUSKILL"
:align: center
:target: ../_images/buskill_usb_storage_win_open_new_file_explorer_window.png
Step 4: Download, Verify, Extract Archive
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. note::
You only need to do this step once. If you've already downloaded, verified, and extracted the archive to your computer, then skip this step
You should have already received:
#. A download link to the "usbRoot" compressed archive and
#. A SHA256 Hash for this file
Download the archive using the provided link and put it in your ``Downloads`` folder. This archive contains the files that will be extracted onto the newly formatted USB Storage Drive.
.. note:: Advanced users can build the .zip archive themselves using docker by checking out the git repo and executing the following script.
* https://github.com/BusKill/buskill-app/blob/dev/build/usb/debianWrapper.sh
Open a new File Explorer Window (File -> New Window) and open your Downloads folder. Find the .zip archive.
.. list-table::
* - .. figure:: /images/buskill_usb_storage_win_open_new_file_explorer_window.png
:alt: screenshot shows how to open a new File Explorer Window (File -> New Window)
:align: center
:target: ../_images/buskill_usb_storage_win_open_new_file_explorer_window.png
- .. figure:: /images/buskill_usb_storage_win_click_downloads.png
:alt: screenshot shows where to click "Downloads"
:align: center
:target: ../_images/buskill_usb_storage_win_click_downloads.png
Before extracting the archive's contents, check the integrity of the compressed archive via its SHA256 checksum. This is the "hash" or "checksum" that you should have received with the download link.
Check the integrity of the archive in PowerShell (Start -> Windows PowerShell).
.. figure:: /images/buskill_usb_storage_win_open_powershell.png
:alt: screenshot shows how to open Windows PowerShell (Start -> PowerShell)
:align: center
:target: ../_images/buskill_usb_storage_win_open_powershell.png
Type the following command:
::
Get-FileHash Downloads\buskill*.zip
.. figure:: /images/buskill_usb_storage_win_get_filehash.png
:alt: screenshot shows the SHA256 output from the File-GetHash command
:align: center
:target: ../_images/buskill_usb_storage_win_get_filehash.png
Check that the ``Hash`` exactly matches the hash provided along with the download link.
.. warning::
Do *not* proceed if the hash doesn't match.
If the hash does not match, it's an indication that the compressed archive is corrupted. This means the **software won't work for the customer**, so this is a critical QA step.
If the hash matches, close the PowerShell window and extract its contents.
.. figure:: /images/buskill_usb_storage_win_close_powershell.png
:alt: screenshot shows how to close the PowerShell window (click the "X")
:align: center
:target: ../_images/buskill_usb_storage_win_close_powershell.png
Right-click on the archive and click ``Extract All...``
.. figure:: /images/buskill_usb_storage_win_extract_all.png
:alt: screenshot shows
:align: center
:target: ../_images/buskill_usb_storage_win_extract_all.png
Click ``Extract``
.. figure:: /images/buskill_usb_storage_win_extract.png
:alt: screenshot shows the "Extract Compressed (Zipped) Folders" wizard and highlights the "Extract" button to proceed
:align: center
:target: ../_images/buskill_usb_storage_win_extract.png
Step 4: Copy Files
^^^^^^^^^^^^^^^^^^
In the extracted archive's directory, enter the ``usbRoot`` directory.
Double-click ``usbRoot``
.. figure:: /images/buskill_usb_storage_win_click_usbRoot.png
:alt: screenshot shows the extracted archive's contents root with one folder titled "usbRoot"
:align: center
:target: ../_images/buskill_usb_storage_win_click_usbRoot.png
.. note ::
Do not copy the ``usbRoot`` folder to the USB Storage Drive. Copy the *contents* of the ``usbRoot`` folder to the USB Storage Drive.
Click ``Home`` -> ``Select All``
.. figure:: /images/buskill_usb_storage_win_select_all.png
:alt: screenshot shows the process to click Home -> Select All
:align: center
:target: ../_images/buskill_usb_storage_win_select_all.png
Click ``Home`` -> ``Copy to`` -> ``Choose location...``
.. figure:: /images/buskill_usb_storage_win_copy_to.png
:alt: screenshot shows the process to click Home -> Copy to -> Choose location...
:align: center
:target: ../_images/buskill_usb_storage_win_copy_to.png
Under ``This PC`` select the ``BUSKILL`` USB Storage Drive and click ``Copy``
.. figure:: /images/buskill_usb_storage_win_copy_to_usb.png
:alt: screenshot shows the "Copy Items" popup window and "BUSKILL" selected as the destination, with the "Copy" button selected
:align: center
:target: ../_images/buskill_usb_storage_win_copy_to_usb.png
When the copy finishes, close the top two File Explorer windows
.. list-table::
* - .. figure:: /images/buskill_usb_storage_win_close_window_1.png
:alt: screenshot shows three File Explorer windows with the "X" highlighted on the top-most window
:align: center
:target: ../_images/buskill_usb_storage_win_close_window_1.png
- .. figure:: /images/buskill_usb_storage_win_close_window_2.png
:alt: screenshot shows two File Explorer windows with the "X" highlighted on the top-most window
:align: center
:target: ../_images/buskill_usb_storage_win_close_window_2.png
Step 4: Safely Eject
^^^^^^^^^^^^^^^^^^^^
Right-click on the ``BUSKILL`` USB Storage Drive and click ``Eject``
.. figure:: /images/buskill_usb_storage_win_eject.png
:alt: screenshot shows the right-click menu for the "BUSKILL" drive and the "Eject" option highlighted
:align: center
:target: ../_images/buskill_usb_storage_win_eject.png
.. warning::
Do *not* simply remove the USB Storage Drive from your computer without first ejecting it as shown above!!
Physically removing the drive from the computer before clicking ``Eject`` can cause data to not be written, even after the copy finishes successfully.
If the data isn't fully written to the disk before it's removed, the software on the USB Storage Drive could be corrupt. This means the **software won't work for the customer**, so this is a **critical QA step**.
Wait until the drive disappears from the File Explorer window.
.. figure:: /images/buskill_usb_storage_win_physically_remove.png
:alt: screenshot shows that the USB Drive named "BusKill" is no longer visible in the File Explorer window
:align: center
:target: ../_images/buskill_usb_storage_win_physically_remove.png
After the drive is no longer visible, physically remove the USB Storage Drive.
Step 5: Verify Integrity
^^^^^^^^^^^^^^^^^^^^^^^^
Plug the BusKill Cable into the computer again.
.. figure:: /images/buskill_usb_storage_plug_in.jpg
:alt: picture showing the fully-assembled BusKill cable with the USB Storage Drive connected to the magnetic breakaway connected to a laptop's USB port
:align: center
:target: ../_images/buskill_usb_storage_plug_in.jpg
Double-click the ``BUSKILL`` drive when it appears
.. figure:: /images/buskill_usb_storage_win_this_pc_now_says_buskill_label_on_drive.png
:alt: screenshot shows the USB Drive under "This PC" is named "BUSKILL"
:align: center
:target: ../_images/buskill_usb_storage_win_open_new_file_explorer_window.png
Double-click ``provision``
.. figure:: /images/buskill_usb_storage_win_click_provision.png
:alt: screenshot shows the file "provision" selected at the root of the USB Storage Drive
:align: center
:target: ../_images/buskill_usb_storage_win_click_provision.png
If the window says ``FAIL``, then something is wrong with the drive. Go back to the :ref:`Format <format_usb_drive>` step above and retry.
If the window says ``PASS`` then everything worked. Close the command prompt window and safely eject the drive.
.. list-table::
* - .. figure:: /images/buskill_usb_storage_win_pass.png
:alt: screenshot shows how to close the command prompt window, with the "X" on the top-right highlighted
:align: center
:target: ../_images/buskill_usb_storage_win_pass.png
- .. figure:: /images/buskill_usb_storage_win_eject.png
:alt: screenshot shows the right-click menu for the "BUSKILL" drive and the "Eject" option highlighted
:align: center
:target: ../_images/buskill_usb_storage_win_eject.png
After the drive is no longer visible, physically remove the USB Storage Drive.
Linux
-----
TODO
MacOS
-----
TODO
|