Skip to content

Formatting a USB drive

While DogLog supports logging to the roboRIO’s internal storage, using a USB drive is the preferred method for storing logs.

Some benefits of using a USB drive for logging include:

  • Having an easy way to access logs when the robot is turned off
  • Ensuring you always have enough storage for logs, without worrying about old ones being overwritten to make
  • A safer way to store logs than on the roboRIO’s storage
    • On the roboRIO 1, using a USB drive for logs avoids bricking the internal flash storage
      • Read more about this failure mode here
    • On the roboRIO 2, the microSD card frequently comes loose during hard collisions, causing log writes to fail without a USB

This guide will walk you through the steps of formatting a USB drive to get it ready for use with DogLog on a robot.

Steps

Steps for Windows

  1. Plug the USB drive into your computer

  2. Open a File Explorer window and look for your USB drive in the sidebar

    A screenshot of a File Explorer window, with a USB drive in the sidebar highlighted

  3. Right click the USB drive and click the “Format…” option

    A screenshot of a File Explorer window, with the context menu for the USB drive opened, and the "Format..." option hovered

  4. In the window that opens, enter a name for the USB drive, and under the “File system” section, select “FAT32 (Default)” if it isn’t already selected

    A screenshot of the format window, with the "File system" option set to "FAT32 (Default)" and the "Volume label" set to "Logging"

  5. In the dialog that opens, click “OK” to confirm formatting the USB drive

    A screenshot of the confirm format dialog, with the "OK" button highlighted

  6. After formatting, click “OK” in the dialog that opens

    A screenshot of the after format dialog, with the "OK" button highlighted

  7. Right click the USB drive and click the “Eject” option, then remove the drive from your computer

    A screenshot of a File Explorer window, with the context menu for the USB drive opened, and the "Eject" option hovered

  8. Insert the USB drive into one of the roboRIO’s USB ports

    The next time your robot code starts up, logs will automatically be saved to the USB drive.

Steps for macOS

  1. Plug the USB drive into your computer

  2. Open a Finder window and look for your USB drive in the sidebar, under “Locations”

    A screenshot of a Finder window, with a USB drive under the "Locations" tab highlighted

  3. Right click the USB drive and click the “Erase” option

    A screenshot of a Finder window, with the USB drive highlighted and the "Erase" option hovered

  4. In the dialog that opens, enter a name for the USB drive, and under the “Format” section, select “MS-DOS (FAT)”

    A screenshot from Finder with a dialog for erasing a USB drive

  5. Click “Erase” and wait for the drive to be formatted

  6. Eject the drive from your computer, then remove it from your computer

    A screenshot from a Finder window, showing a USB drive under the "Locations" tab with the eject button highlighted

  7. Insert the USB drive into one of the roboRIO’s USB ports

    The next time your robot code starts up, logs will automatically be saved to the USB drive.