AWS DeepRacer
Developer Guide

This is prerelease documentation for a service in preview release. It is subject to change.

Partition a USB Drive and Make it Bootable by Using a MacOS Computer

Follow the instructions here to use a MacOS computer to prepare the USB drive for factory reset.

To partition the USB drive and make it bootable by using a MacOS computer

  1. To format the USB drive, follow these steps.

    1. Plug in the USB drive to your MacOS computer.

    2. Press command + space to open the search tool bar and then type Disk Utility.

      Alternatively, you can choose Finder->Applications->Utilties->Disk Utility to open the Disk Utility.

    3. Choose Generic Flash Disk on the left pane of Disk Utility. Then choose Erase on the top.

      
                                    Image: Open the MacOS Disk Utility console.
    4. On the Erase "Generic Flash Disk Media"? page, choose Mac OS Extended (Journaled) for Format, choose GUID Partition Map for Scheme, and then choose Erase.

      
                                    Image: Clean up USB drive on the MacOS Disk Utility
                                        console.
    5. On the Disk Utility console, choose Partition from the menu on the top and then choose the + button on the Partition device … pop-up.

    6. To create the FAT32 partition of 2 GB capacity, under Partition Information type Boot (or another name of your choosing) for Name, choose MS-DOS (FAT) for Format, set Size to 2 GB. Do not choose Apply yet.

      
                                    Image: Create the FAT32 partition on the MacOS Disk
                                        Utility console.
    7. To create the partition for the updated AWS DeepRacer image, choose a point in the other (Untitled) partition. Under Partition Information, type Flash (or another name of your choosing) for Name, choose ExFat for Format, leave the remaining capacity (in GB) of the USB drive in Size. Choose Apply.

      
                                    Image: Create the NTFS partition on the MacOS Disk Utility
                                        console.
    8. On the ensuing pop-up window, choose Partition to confirm creation of the specified new partitions.

      
                                    Image: Confirm FAT32 and NTFS partitions on the MacOS Disk
                                        Utility console.
    9. On the Disk Utility console, choose the BOOT partition on the left pane, and then choose Info from the menu on the top. Make note of the BSD device node value. In this tutorial, the value is dsa1. You need to supply this path when making the USB drive bootable from the FAT32 partition.

  2. To make the USB drive bootable from the FAT32 partition, follow these steps.

    1. Download the customized Ubuntu image.

    2. Go to https://unetbootin.github.io/ to download the UNetbootin software. Then start the UNetbootin console.

    3. On the UNetbootin console, do the following:

      1. Check the Disimage radio button.

      2. For the disk image, choose ISO from the drop-down menu.

      3. Open the file picker to choose the downloaded Ubuntu ISO file.

      4. For Type, choose USB Drive.

      5. For Drive, choose /dev/sda1.

      6. Choose OK.

      
                                    Image: Set ISO file for boot disk image
                                        (Ubuntu).

      Note

      The customized Ubuntu image may be more recent than what's shown here. If so, use the most recent version of the Ubuntu image.

      If you get a /dev/sda1 not mounted alert message, choose OK to close the message, unplug the USB drive, replug the drive, and then follow the steps above create the Ubuntu ISO image.

  3. To copy the factory restore files to the NTFS partition of the USB drive, follow these steps.

    1. Download the compressed factory restore package. It's about 3.5 GB in size.

    2. Unzip the downloaded package.

    3. Copy the following uncompressed files to the second (NTFS) partition of the USB drive:

      • Image files. About 9 GB:

        • image_dlrc_1109_18WW45.5-2.bin

        • image_dlrc_1109_18WW45.5-2.bin.md5

      • Script files:

        • usb_flash.sh

        • set_hostname.py

        • dlrc_key.py