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 an Ubuntu Computer

In the following steps, use the AWS DeepRacer vehicle computer module as an Ubuntu computer. The same instructions apply to a Linux computer running Ubuntu. The instructions on other flavors of Linux or Unix operating systems are similar. Just replace the apt-get * commands with their corresponding commands supported by the other Linux or Unix system of your choosing.

To partition the USB drive and make it bootable

  1. To format the USB drive by running Ubuntu commands on the AWS DeepRacer vehicle or a computer running Ubuntu, do the following.

    1. On the AWS DeepRacer vehicle compute module, run the following commands to install and launch GParted.

      sudo apt-get update; sudo apt-get install gparted sudo gparted
      
                                    Image: Open the GParted console.
    2. On the newly created GParted console, choose /dev/sda in the drop-down menu on the top-right corner and then delete all existing partitions.

      If the partitions are locked, open the context (right-click) menu and choose unmount.

    3. To create the FAT32 partition of 2 GB capacity, choose the file icon on the top-left, set the parameters similar to the following, and then choose Add.

      Free space preceding: 1

      New size:2048

      Free space following: 27951

      Align to: MiB

      Create as: Primary Partition

      Partition name::

      File system: fat32

      Label: BOOT

      
                                    Image: Create the FAT32 partition on the GParted
                                        console.
    4. To create the NTFS partition of at least 16 GB capacity, choose the file icon again, set the parameters similar to the following, and choose Add.

      Free space preceding: 0

      New size:27951

      Free space following: 0

      Align to: MiB

      Create as: Primary Partition

      Partition name:

      File system: nfts

      Label: Flash

      
                                    Image: Create the NTFS partition on the GParted
                                        console.
    5. To apply the changes, choose the green tick.

      
                                    Image: Apply the partitions on the GParted console.
  2. To make the USB drive bootable from the FAT32 partition, follow these steps.

    1. Download the customized Ubuntu ISO image.

    2. Use UNetbootin on your AWS DeepRacer device, to do the following:

      1. On your AWS DeepRacer compute module, run the following command to install and launch UNetbootin.

        sudo apt-get update; sudo apt-get install unetbootin sudo unetbootin
      2. On the UNetbootin window, 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, and

    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