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 Windows Computer

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

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

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

    1. Open the Windows command prompt, type diskmgmt.msc, and choose OK to launch the Windows Disk Management Console.

      
                                    Image: Open the Windows Disk Management console.
    2. From the Disk Management console, choose the USB drive. Delete all the partitions and make the drive unallocated. The example in the screenshot here shows Disk 1 Removable (D:) as the USB drive.

      
                                    Image: Clean up USB drive on the Windows Disk Management console.
    3. To create the FAT32 partition of 2 GB capacity, open the Disk Management console and choose the USB drive. Open the context (right-click) menu and choose New Simple Volume from the context menu.

      
                                    Image: Create the FAT32 partition on the Windows Disk Management console.
    4. On the New Simple Volume Wizard, choose 2048 for Simple volume size in MB and then choose Next.

      
                                    Image: Create the FAT32 partition on the Windows Disk Management console.
    5. On the New Simple Volume Wizard page and under Format Partition, choose the Format this volume with the following settings. Then, choose FAT32 for File system, Default for Allocation unit size and any label (e.g., BOOT) for Volume label. Finally, choose Next to create the FAT32 partition.

      
                                    Image: Create the FAT32 partition on the Windows Disk Management console.
    6. To create the NTFS partition of the remaining disk capacity, open the Disk Management console. Choose the USB drive and open the context (right-click) menu to choose New Simple Volume. Choose the Format this volume with the following settings option. Choose NTFS for File system, Default for Allocation unit size, and a label (e.g, Flask) for Volume label. Finally, choose Next to start creating the NTFS partition.

      
                                    Image: Create the NTFS partition on the Windows Disk Management console.
  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