usb storage - USB Storage
Interact with USB Mass Storage Devices
usb storage mount - Mount USB Mass Storage Device
Mount a USB Mass Storage Device’s filesystem.
Usage:
- command: usb storage mount <handle>
[id: <usbDeviceID>]
[path: <usbDevicePath>]
[retry: <retryCount>]
Argument |
Description |
---|---|
handle |
Used to refer to this device in further commands. |
usbDeviceID |
Optional: USB device identifiers: |
usbDevicePath |
Optional: USB device path: |
retryCount |
Optional: Number of times to retry the test step. |
Note
If neither usbDeviceID
or usbDevicePath
is set, path: “1” (The DUT USB-C Port) is used.
usb storage unmount - Unmount USB Mass Storage Device
Unmount a previously mounted USB Mass Storage filesystem.
Usage:
- command: usb storage unmount <handle>
[retry: <retryCount>]
Argument |
Description |
---|---|
handle |
Handle of previously mounted USB Mass Storage device. |
retryCount |
Optional: Number of times to retry the test step. |
usb storage write - Write to a USB Mass Storage Device
Write a file to a previously mounted USB Mass Storage Device.
Usage:
- command: usb storage write <handle> <fileName> [<filePath>] [decompress]
[retry: <retryCount>]
Argument |
Description |
---|---|
handle |
Handle of previously mounted USB Mass Storage device. |
fileName |
Name of file to write to device. |
filePath |
Optional: Destination path in device filesystem. Default is |
decompress |
Optional: If this flag is set, the file will be decompressed to the destination instead of copied. |
retryCount |
Optional: Number of times to retry the test step. |
Examples